
com.huaweicloud.sdk.bcs.v2.model.CreateRequestBodyCceClusterInfo Maven / Gradle / Ivy
package com.huaweicloud.sdk.bcs.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.function.Consumer;
import java.util.Objects;
/**
* 使用已有CCE集群信息
*/
public class CreateRequestBodyCceClusterInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="cluster_id")
private String clusterId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="cluster_name")
private String clusterName;
public CreateRequestBodyCceClusterInfo withClusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* 集群ID
* @return clusterId
*/
public String getClusterId() {
return clusterId;
}
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
}
public CreateRequestBodyCceClusterInfo withClusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* 集群名称
* @return clusterName
*/
public String getClusterName() {
return clusterName;
}
public void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateRequestBodyCceClusterInfo createRequestBodyCceClusterInfo = (CreateRequestBodyCceClusterInfo) o;
return Objects.equals(this.clusterId, createRequestBodyCceClusterInfo.clusterId) &&
Objects.equals(this.clusterName, createRequestBodyCceClusterInfo.clusterName);
}
@Override
public int hashCode() {
return Objects.hash(clusterId, clusterName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateRequestBodyCceClusterInfo {\n");
sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n");
sb.append(" clusterName: ").append(toIndentedString(clusterName)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy