All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openshift.cloud.api.kas.models.EnterpriseClusterRegistrationResponse Maven / Gradle / Ivy

/*
 * Kafka Management API
 * Kafka Management API is a REST API to manage Kafka instances
 *
 * The version of the OpenAPI document: 1.14.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.openshift.cloud.api.kas.models;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.openshift.cloud.api.kas.models.EnterpriseClusterRegistrationResponseAllOf;
import com.openshift.cloud.api.kas.models.FleetshardParameter;
import com.openshift.cloud.api.kas.models.ObjectReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * Enterprise cluster registration endpoint response
 */
@ApiModel(description = "Enterprise cluster registration endpoint response")
@JsonPropertyOrder({
  EnterpriseClusterRegistrationResponse.JSON_PROPERTY_ID,
  EnterpriseClusterRegistrationResponse.JSON_PROPERTY_KIND,
  EnterpriseClusterRegistrationResponse.JSON_PROPERTY_HREF,
  EnterpriseClusterRegistrationResponse.JSON_PROPERTY_CLUSTER_ID,
  EnterpriseClusterRegistrationResponse.JSON_PROPERTY_STATUS,
  EnterpriseClusterRegistrationResponse.JSON_PROPERTY_FLEETSHARD_PARAMETERS
})
@JsonTypeName("EnterpriseClusterRegistrationResponse")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EnterpriseClusterRegistrationResponse {
  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_KIND = "kind";
  private String kind;

  public static final String JSON_PROPERTY_HREF = "href";
  private String href;

  public static final String JSON_PROPERTY_CLUSTER_ID = "cluster_id";
  private String clusterId;

  public static final String JSON_PROPERTY_STATUS = "status";
  private String status;

  public static final String JSON_PROPERTY_FLEETSHARD_PARAMETERS = "fleetshard_parameters";
  private List fleetshardParameters = null;

  public EnterpriseClusterRegistrationResponse() { 
  }

  public EnterpriseClusterRegistrationResponse id(String id) {
    
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setId(String id) {
    this.id = id;
  }


  public EnterpriseClusterRegistrationResponse kind(String kind) {
    
    this.kind = kind;
    return this;
  }

   /**
   * Get kind
   * @return kind
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_KIND)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getKind() {
    return kind;
  }


  @JsonProperty(JSON_PROPERTY_KIND)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setKind(String kind) {
    this.kind = kind;
  }


  public EnterpriseClusterRegistrationResponse href(String href) {
    
    this.href = href;
    return this;
  }

   /**
   * Get href
   * @return href
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_HREF)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getHref() {
    return href;
  }


  @JsonProperty(JSON_PROPERTY_HREF)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setHref(String href) {
    this.href = href;
  }


  public EnterpriseClusterRegistrationResponse clusterId(String clusterId) {
    
    this.clusterId = clusterId;
    return this;
  }

   /**
   * OCM cluster id of the registered Enterprise cluster
   * @return clusterId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "OCM cluster id of the registered Enterprise cluster")
  @JsonProperty(JSON_PROPERTY_CLUSTER_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getClusterId() {
    return clusterId;
  }


  @JsonProperty(JSON_PROPERTY_CLUSTER_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setClusterId(String clusterId) {
    this.clusterId = clusterId;
  }


  public EnterpriseClusterRegistrationResponse status(String status) {
    
    this.status = status;
    return this;
  }

   /**
   * status of registered Enterprise cluster
   * @return status
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "status of registered Enterprise cluster")
  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getStatus() {
    return status;
  }


  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStatus(String status) {
    this.status = status;
  }


  public EnterpriseClusterRegistrationResponse fleetshardParameters(List fleetshardParameters) {
    
    this.fleetshardParameters = fleetshardParameters;
    return this;
  }

  public EnterpriseClusterRegistrationResponse addFleetshardParametersItem(FleetshardParameter fleetshardParametersItem) {
    if (this.fleetshardParameters == null) {
      this.fleetshardParameters = new ArrayList<>();
    }
    this.fleetshardParameters.add(fleetshardParametersItem);
    return this;
  }

   /**
   * Get fleetshardParameters
   * @return fleetshardParameters
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_FLEETSHARD_PARAMETERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getFleetshardParameters() {
    return fleetshardParameters;
  }


  @JsonProperty(JSON_PROPERTY_FLEETSHARD_PARAMETERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFleetshardParameters(List fleetshardParameters) {
    this.fleetshardParameters = fleetshardParameters;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EnterpriseClusterRegistrationResponse enterpriseClusterRegistrationResponse = (EnterpriseClusterRegistrationResponse) o;
    return Objects.equals(this.id, enterpriseClusterRegistrationResponse.id) &&
        Objects.equals(this.kind, enterpriseClusterRegistrationResponse.kind) &&
        Objects.equals(this.href, enterpriseClusterRegistrationResponse.href) &&
        Objects.equals(this.clusterId, enterpriseClusterRegistrationResponse.clusterId) &&
        Objects.equals(this.status, enterpriseClusterRegistrationResponse.status) &&
        Objects.equals(this.fleetshardParameters, enterpriseClusterRegistrationResponse.fleetshardParameters);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, kind, href, clusterId, status, fleetshardParameters);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EnterpriseClusterRegistrationResponse {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    kind: ").append(toIndentedString(kind)).append("\n");
    sb.append("    href: ").append(toIndentedString(href)).append("\n");
    sb.append("    clusterId: ").append(toIndentedString(clusterId)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    fleetshardParameters: ").append(toIndentedString(fleetshardParameters)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy