/*
 * WSO2 API Manager - Store
 * This document specifies a **RESTful API** for WSO2 **API Manager** - Store.  It is written with [swagger 2](http://swagger.io/). 
 *
 * OpenAPI spec version: v1.1
 * Contact: architecture@wso2.com
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package org.wso2.am.integration.clients.store.api.v1.dto;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * APIDeploymentClusterInfoDTO
 */

public class APIDeploymentClusterInfoDTO {
  @SerializedName("clusterName")
  private String clusterName = null;

  @SerializedName("ingressURL")
  private String ingressURL = null;

  public APIDeploymentClusterInfoDTO clusterName(String clusterName) {
    this.clusterName = clusterName;
    return this;
  }

   /**
   * name of the cluster
   * @return clusterName
  **/
  @ApiModelProperty(example = "minikube", required = true, value = "name of the cluster")
  public String getClusterName() {
    return clusterName;
  }

  public void setClusterName(String clusterName) {
    this.clusterName = clusterName;
  }

  public APIDeploymentClusterInfoDTO ingressURL(String ingressURL) {
    this.ingressURL = ingressURL;
    return this;
  }

   /**
   * ingress URL
   * @return ingressURL
  **/
  @ApiModelProperty(example = "http://wso2.com:9443", required = true, value = "ingress URL")
  public String getIngressURL() {
    return ingressURL;
  }

  public void setIngressURL(String ingressURL) {
    this.ingressURL = ingressURL;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    APIDeploymentClusterInfoDTO apIDeploymentClusterInfo = (APIDeploymentClusterInfoDTO) o;
    return Objects.equals(this.clusterName, apIDeploymentClusterInfo.clusterName) &&
        Objects.equals(this.ingressURL, apIDeploymentClusterInfo.ingressURL);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clusterName, ingressURL);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class APIDeploymentClusterInfoDTO {\n");
    
    sb.append("    clusterName: ").append(toIndentedString(clusterName)).append("\n");
    sb.append("    ingressURL: ").append(toIndentedString(ingressURL)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

