com.volcengine.vedbm.model.InstanceForDescribeDBInstancesOutput Maven / Gradle / Ivy
/*
* vedbm
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* 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 com.volcengine.vedbm.model;
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 com.volcengine.vedbm.model.ChargeDetailForDescribeDBInstancesOutput;
import com.volcengine.vedbm.model.NodeForDescribeDBInstancesOutput;
import com.volcengine.vedbm.model.TagForDescribeDBInstancesOutput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* InstanceForDescribeDBInstancesOutput
*/
public class InstanceForDescribeDBInstancesOutput {
@SerializedName("ChargeDetail")
private ChargeDetailForDescribeDBInstancesOutput chargeDetail = null;
@SerializedName("CreateTime")
private String createTime = null;
@SerializedName("DBEngineVersion")
private String dbEngineVersion = null;
@SerializedName("InstanceId")
private String instanceId = null;
@SerializedName("InstanceName")
private String instanceName = null;
@SerializedName("InstanceStatus")
private String instanceStatus = null;
@SerializedName("Nodes")
private List nodes = null;
@SerializedName("PrePaidStorageInGB")
private Integer prePaidStorageInGB = null;
@SerializedName("ProjectName")
private String projectName = null;
@SerializedName("RegionId")
private String regionId = null;
@SerializedName("StorageUsedGiB")
private Double storageUsedGiB = null;
@SerializedName("SubnetId")
private String subnetId = null;
@SerializedName("Tags")
private List tags = null;
@SerializedName("TenantId")
private String tenantId = null;
@SerializedName("TimeZone")
private String timeZone = null;
@SerializedName("VpcId")
private String vpcId = null;
@SerializedName("ZoneIds")
private String zoneIds = null;
public InstanceForDescribeDBInstancesOutput chargeDetail(ChargeDetailForDescribeDBInstancesOutput chargeDetail) {
this.chargeDetail = chargeDetail;
return this;
}
/**
* Get chargeDetail
* @return chargeDetail
**/
@Valid
@Schema(description = "")
public ChargeDetailForDescribeDBInstancesOutput getChargeDetail() {
return chargeDetail;
}
public void setChargeDetail(ChargeDetailForDescribeDBInstancesOutput chargeDetail) {
this.chargeDetail = chargeDetail;
}
public InstanceForDescribeDBInstancesOutput createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Get createTime
* @return createTime
**/
@Schema(description = "")
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public InstanceForDescribeDBInstancesOutput dbEngineVersion(String dbEngineVersion) {
this.dbEngineVersion = dbEngineVersion;
return this;
}
/**
* Get dbEngineVersion
* @return dbEngineVersion
**/
@Schema(description = "")
public String getDbEngineVersion() {
return dbEngineVersion;
}
public void setDbEngineVersion(String dbEngineVersion) {
this.dbEngineVersion = dbEngineVersion;
}
public InstanceForDescribeDBInstancesOutput instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* Get instanceId
* @return instanceId
**/
@Schema(description = "")
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public InstanceForDescribeDBInstancesOutput instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* Get instanceName
* @return instanceName
**/
@Schema(description = "")
public String getInstanceName() {
return instanceName;
}
public void setInstanceName(String instanceName) {
this.instanceName = instanceName;
}
public InstanceForDescribeDBInstancesOutput instanceStatus(String instanceStatus) {
this.instanceStatus = instanceStatus;
return this;
}
/**
* Get instanceStatus
* @return instanceStatus
**/
@Schema(description = "")
public String getInstanceStatus() {
return instanceStatus;
}
public void setInstanceStatus(String instanceStatus) {
this.instanceStatus = instanceStatus;
}
public InstanceForDescribeDBInstancesOutput nodes(List nodes) {
this.nodes = nodes;
return this;
}
public InstanceForDescribeDBInstancesOutput addNodesItem(NodeForDescribeDBInstancesOutput nodesItem) {
if (this.nodes == null) {
this.nodes = new ArrayList();
}
this.nodes.add(nodesItem);
return this;
}
/**
* Get nodes
* @return nodes
**/
@Valid
@Schema(description = "")
public List getNodes() {
return nodes;
}
public void setNodes(List nodes) {
this.nodes = nodes;
}
public InstanceForDescribeDBInstancesOutput prePaidStorageInGB(Integer prePaidStorageInGB) {
this.prePaidStorageInGB = prePaidStorageInGB;
return this;
}
/**
* Get prePaidStorageInGB
* @return prePaidStorageInGB
**/
@Schema(description = "")
public Integer getPrePaidStorageInGB() {
return prePaidStorageInGB;
}
public void setPrePaidStorageInGB(Integer prePaidStorageInGB) {
this.prePaidStorageInGB = prePaidStorageInGB;
}
public InstanceForDescribeDBInstancesOutput projectName(String projectName) {
this.projectName = projectName;
return this;
}
/**
* Get projectName
* @return projectName
**/
@Schema(description = "")
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public InstanceForDescribeDBInstancesOutput regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* Get regionId
* @return regionId
**/
@Schema(description = "")
public String getRegionId() {
return regionId;
}
public void setRegionId(String regionId) {
this.regionId = regionId;
}
public InstanceForDescribeDBInstancesOutput storageUsedGiB(Double storageUsedGiB) {
this.storageUsedGiB = storageUsedGiB;
return this;
}
/**
* Get storageUsedGiB
* @return storageUsedGiB
**/
@Schema(description = "")
public Double getStorageUsedGiB() {
return storageUsedGiB;
}
public void setStorageUsedGiB(Double storageUsedGiB) {
this.storageUsedGiB = storageUsedGiB;
}
public InstanceForDescribeDBInstancesOutput subnetId(String subnetId) {
this.subnetId = subnetId;
return this;
}
/**
* Get subnetId
* @return subnetId
**/
@Schema(description = "")
public String getSubnetId() {
return subnetId;
}
public void setSubnetId(String subnetId) {
this.subnetId = subnetId;
}
public InstanceForDescribeDBInstancesOutput tags(List tags) {
this.tags = tags;
return this;
}
public InstanceForDescribeDBInstancesOutput addTagsItem(TagForDescribeDBInstancesOutput tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@Valid
@Schema(description = "")
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
public InstanceForDescribeDBInstancesOutput tenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
/**
* Get tenantId
* @return tenantId
**/
@Schema(description = "")
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public InstanceForDescribeDBInstancesOutput timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
/**
* Get timeZone
* @return timeZone
**/
@Schema(description = "")
public String getTimeZone() {
return timeZone;
}
public void setTimeZone(String timeZone) {
this.timeZone = timeZone;
}
public InstanceForDescribeDBInstancesOutput vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Get vpcId
* @return vpcId
**/
@Schema(description = "")
public String getVpcId() {
return vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
public InstanceForDescribeDBInstancesOutput zoneIds(String zoneIds) {
this.zoneIds = zoneIds;
return this;
}
/**
* Get zoneIds
* @return zoneIds
**/
@Schema(description = "")
public String getZoneIds() {
return zoneIds;
}
public void setZoneIds(String zoneIds) {
this.zoneIds = zoneIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InstanceForDescribeDBInstancesOutput instanceForDescribeDBInstancesOutput = (InstanceForDescribeDBInstancesOutput) o;
return Objects.equals(this.chargeDetail, instanceForDescribeDBInstancesOutput.chargeDetail) &&
Objects.equals(this.createTime, instanceForDescribeDBInstancesOutput.createTime) &&
Objects.equals(this.dbEngineVersion, instanceForDescribeDBInstancesOutput.dbEngineVersion) &&
Objects.equals(this.instanceId, instanceForDescribeDBInstancesOutput.instanceId) &&
Objects.equals(this.instanceName, instanceForDescribeDBInstancesOutput.instanceName) &&
Objects.equals(this.instanceStatus, instanceForDescribeDBInstancesOutput.instanceStatus) &&
Objects.equals(this.nodes, instanceForDescribeDBInstancesOutput.nodes) &&
Objects.equals(this.prePaidStorageInGB, instanceForDescribeDBInstancesOutput.prePaidStorageInGB) &&
Objects.equals(this.projectName, instanceForDescribeDBInstancesOutput.projectName) &&
Objects.equals(this.regionId, instanceForDescribeDBInstancesOutput.regionId) &&
Objects.equals(this.storageUsedGiB, instanceForDescribeDBInstancesOutput.storageUsedGiB) &&
Objects.equals(this.subnetId, instanceForDescribeDBInstancesOutput.subnetId) &&
Objects.equals(this.tags, instanceForDescribeDBInstancesOutput.tags) &&
Objects.equals(this.tenantId, instanceForDescribeDBInstancesOutput.tenantId) &&
Objects.equals(this.timeZone, instanceForDescribeDBInstancesOutput.timeZone) &&
Objects.equals(this.vpcId, instanceForDescribeDBInstancesOutput.vpcId) &&
Objects.equals(this.zoneIds, instanceForDescribeDBInstancesOutput.zoneIds);
}
@Override
public int hashCode() {
return Objects.hash(chargeDetail, createTime, dbEngineVersion, instanceId, instanceName, instanceStatus, nodes, prePaidStorageInGB, projectName, regionId, storageUsedGiB, subnetId, tags, tenantId, timeZone, vpcId, zoneIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InstanceForDescribeDBInstancesOutput {\n");
sb.append(" chargeDetail: ").append(toIndentedString(chargeDetail)).append("\n");
sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n");
sb.append(" dbEngineVersion: ").append(toIndentedString(dbEngineVersion)).append("\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(" nodes: ").append(toIndentedString(nodes)).append("\n");
sb.append(" prePaidStorageInGB: ").append(toIndentedString(prePaidStorageInGB)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n");
sb.append(" storageUsedGiB: ").append(toIndentedString(storageUsedGiB)).append("\n");
sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n");
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n");
sb.append(" zoneIds: ").append(toIndentedString(zoneIds)).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 - 2024 Weber Informatics LLC | Privacy Policy