/*
 * 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;
import java.util.ArrayList;
import java.util.List;
import org.wso2.am.integration.clients.store.api.v1.dto.APIDeploymentClusterInfoDTO;

/**
 * APIIngressURLsDTO
 */

public class APIIngressURLsDTO {
  @SerializedName("deploymentEnvironmentName")
  private String deploymentEnvironmentName = null;

  @SerializedName("clusterDetails")
  private List<APIDeploymentClusterInfoDTO> clusterDetails = null;

  public APIIngressURLsDTO deploymentEnvironmentName(String deploymentEnvironmentName) {
    this.deploymentEnvironmentName = deploymentEnvironmentName;
    return this;
  }

   /**
   * Get deploymentEnvironmentName
   * @return deploymentEnvironmentName
  **/
  @ApiModelProperty(example = "kubernetes", value = "")
  public String getDeploymentEnvironmentName() {
    return deploymentEnvironmentName;
  }

  public void setDeploymentEnvironmentName(String deploymentEnvironmentName) {
    this.deploymentEnvironmentName = deploymentEnvironmentName;
  }

  public APIIngressURLsDTO clusterDetails(List<APIDeploymentClusterInfoDTO> clusterDetails) {
    this.clusterDetails = clusterDetails;
    return this;
  }

  public APIIngressURLsDTO addClusterDetailsItem(APIDeploymentClusterInfoDTO clusterDetailsItem) {
    if (this.clusterDetails == null) {
      this.clusterDetails = new ArrayList<>();
    }
    this.clusterDetails.add(clusterDetailsItem);
    return this;
  }

   /**
   * Get clusterDetails
   * @return clusterDetails
  **/
  @ApiModelProperty(value = "")
  public List<APIDeploymentClusterInfoDTO> getClusterDetails() {
    return clusterDetails;
  }

  public void setClusterDetails(List<APIDeploymentClusterInfoDTO> clusterDetails) {
    this.clusterDetails = clusterDetails;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    APIIngressURLsDTO apIIngressURLs = (APIIngressURLsDTO) o;
    return Objects.equals(this.deploymentEnvironmentName, apIIngressURLs.deploymentEnvironmentName) &&
        Objects.equals(this.clusterDetails, apIIngressURLs.clusterDetails);
  }

  @Override
  public int hashCode() {
    return Objects.hash(deploymentEnvironmentName, clusterDetails);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class APIIngressURLsDTO {\n");
    
    sb.append("    deploymentEnvironmentName: ").append(toIndentedString(deploymentEnvironmentName)).append("\n");
    sb.append("    clusterDetails: ").append(toIndentedString(clusterDetails)).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    ");
  }

}

