com.huaweicloud.sdk.gaussdbforopengauss.v3.model.InstanceInfoResult Maven / Gradle / Ivy
package com.huaweicloud.sdk.gaussdbforopengauss.v3.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;
/**
* InstanceInfoResult
*/
public class InstanceInfoResult {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="instance_id")
private String instanceId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="instance_name")
private String instanceName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="instance_status")
private String instanceStatus;
public InstanceInfoResult withInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* 实例ID。
* @return instanceId
*/
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public InstanceInfoResult withInstanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* 实例名称。
* @return instanceName
*/
public String getInstanceName() {
return instanceName;
}
public void setInstanceName(String instanceName) {
this.instanceName = instanceName;
}
public InstanceInfoResult withInstanceStatus(String instanceStatus) {
this.instanceStatus = instanceStatus;
return this;
}
/**
* 实例状态。
* @return instanceStatus
*/
public String getInstanceStatus() {
return instanceStatus;
}
public void setInstanceStatus(String instanceStatus) {
this.instanceStatus = instanceStatus;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InstanceInfoResult instanceInfoResult = (InstanceInfoResult) o;
return Objects.equals(this.instanceId, instanceInfoResult.instanceId) &&
Objects.equals(this.instanceName, instanceInfoResult.instanceName) &&
Objects.equals(this.instanceStatus, instanceInfoResult.instanceStatus);
}
@Override
public int hashCode() {
return Objects.hash(instanceId, instanceName, instanceStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InstanceInfoResult {\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" instanceName: ").append(toIndentedString(instanceName)).append("\n");
sb.append(" instanceStatus: ").append(toIndentedString(instanceStatus)).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 ");
}
}