com.volcengine.vedbm.model.DescribeDBInstanceDetailResponse 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.ChargeDetailForDescribeDBInstanceDetailOutput;
import com.volcengine.vedbm.model.EndpointForDescribeDBInstanceDetailOutput;
import com.volcengine.vedbm.model.InstanceDetailForDescribeDBInstanceDetailOutput;
import com.volcengine.vedbm.model.NodeForDescribeDBInstanceDetailOutput;
import com.volcengine.vedbm.model.TagForDescribeDBInstanceDetailOutput;
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;
/**
* DescribeDBInstanceDetailResponse
*/
public class DescribeDBInstanceDetailResponse extends com.volcengine.model.AbstractResponse {
@SerializedName("ChargeDetail")
private ChargeDetailForDescribeDBInstanceDetailOutput chargeDetail = null;
@SerializedName("Endpoints")
private List endpoints = null;
@SerializedName("InstanceDetail")
private InstanceDetailForDescribeDBInstanceDetailOutput instanceDetail = null;
@SerializedName("Nodes")
private List nodes = null;
@SerializedName("Tags")
private List tags = null;
public DescribeDBInstanceDetailResponse chargeDetail(ChargeDetailForDescribeDBInstanceDetailOutput chargeDetail) {
this.chargeDetail = chargeDetail;
return this;
}
/**
* Get chargeDetail
* @return chargeDetail
**/
@Valid
@Schema(description = "")
public ChargeDetailForDescribeDBInstanceDetailOutput getChargeDetail() {
return chargeDetail;
}
public void setChargeDetail(ChargeDetailForDescribeDBInstanceDetailOutput chargeDetail) {
this.chargeDetail = chargeDetail;
}
public DescribeDBInstanceDetailResponse endpoints(List endpoints) {
this.endpoints = endpoints;
return this;
}
public DescribeDBInstanceDetailResponse addEndpointsItem(EndpointForDescribeDBInstanceDetailOutput endpointsItem) {
if (this.endpoints == null) {
this.endpoints = new ArrayList();
}
this.endpoints.add(endpointsItem);
return this;
}
/**
* Get endpoints
* @return endpoints
**/
@Valid
@Schema(description = "")
public List getEndpoints() {
return endpoints;
}
public void setEndpoints(List endpoints) {
this.endpoints = endpoints;
}
public DescribeDBInstanceDetailResponse instanceDetail(InstanceDetailForDescribeDBInstanceDetailOutput instanceDetail) {
this.instanceDetail = instanceDetail;
return this;
}
/**
* Get instanceDetail
* @return instanceDetail
**/
@Valid
@Schema(description = "")
public InstanceDetailForDescribeDBInstanceDetailOutput getInstanceDetail() {
return instanceDetail;
}
public void setInstanceDetail(InstanceDetailForDescribeDBInstanceDetailOutput instanceDetail) {
this.instanceDetail = instanceDetail;
}
public DescribeDBInstanceDetailResponse nodes(List nodes) {
this.nodes = nodes;
return this;
}
public DescribeDBInstanceDetailResponse addNodesItem(NodeForDescribeDBInstanceDetailOutput 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 DescribeDBInstanceDetailResponse tags(List tags) {
this.tags = tags;
return this;
}
public DescribeDBInstanceDetailResponse addTagsItem(TagForDescribeDBInstanceDetailOutput 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DescribeDBInstanceDetailResponse describeDBInstanceDetailResponse = (DescribeDBInstanceDetailResponse) o;
return Objects.equals(this.chargeDetail, describeDBInstanceDetailResponse.chargeDetail) &&
Objects.equals(this.endpoints, describeDBInstanceDetailResponse.endpoints) &&
Objects.equals(this.instanceDetail, describeDBInstanceDetailResponse.instanceDetail) &&
Objects.equals(this.nodes, describeDBInstanceDetailResponse.nodes) &&
Objects.equals(this.tags, describeDBInstanceDetailResponse.tags);
}
@Override
public int hashCode() {
return Objects.hash(chargeDetail, endpoints, instanceDetail, nodes, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DescribeDBInstanceDetailResponse {\n");
sb.append(" chargeDetail: ").append(toIndentedString(chargeDetail)).append("\n");
sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n");
sb.append(" instanceDetail: ").append(toIndentedString(instanceDetail)).append("\n");
sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).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