com.volcengine.escloud.model.DescribeNodeAvailableSpecsResponse Maven / Gradle / Ivy
/*
* escloud
* 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.escloud.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.escloud.model.AZAvailableSpecsSoldOutForDescribeNodeAvailableSpecsOutput;
import com.volcengine.escloud.model.NetworkSpecForDescribeNodeAvailableSpecsOutput;
import com.volcengine.escloud.model.NodeAvailableSpecForDescribeNodeAvailableSpecsOutput;
import com.volcengine.escloud.model.ResourceSpecForDescribeNodeAvailableSpecsOutput;
import com.volcengine.escloud.model.StorageSpecForDescribeNodeAvailableSpecsOutput;
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;
/**
* DescribeNodeAvailableSpecsResponse
*/
public class DescribeNodeAvailableSpecsResponse extends com.volcengine.model.AbstractResponse {
@SerializedName("AZAvailableSpecsSoldOut")
private AZAvailableSpecsSoldOutForDescribeNodeAvailableSpecsOutput azAvailableSpecsSoldOut = null;
@SerializedName("ConfigurationCode")
private String configurationCode = null;
@SerializedName("NetworkSpecs")
private List networkSpecs = null;
@SerializedName("NodeAvailableSpecs")
private List nodeAvailableSpecs = null;
@SerializedName("ResourceSpecs")
private List resourceSpecs = null;
@SerializedName("StorageSpecs")
private List storageSpecs = null;
public DescribeNodeAvailableSpecsResponse azAvailableSpecsSoldOut(AZAvailableSpecsSoldOutForDescribeNodeAvailableSpecsOutput azAvailableSpecsSoldOut) {
this.azAvailableSpecsSoldOut = azAvailableSpecsSoldOut;
return this;
}
/**
* Get azAvailableSpecsSoldOut
* @return azAvailableSpecsSoldOut
**/
@Valid
@Schema(description = "")
public AZAvailableSpecsSoldOutForDescribeNodeAvailableSpecsOutput getAzAvailableSpecsSoldOut() {
return azAvailableSpecsSoldOut;
}
public void setAzAvailableSpecsSoldOut(AZAvailableSpecsSoldOutForDescribeNodeAvailableSpecsOutput azAvailableSpecsSoldOut) {
this.azAvailableSpecsSoldOut = azAvailableSpecsSoldOut;
}
public DescribeNodeAvailableSpecsResponse configurationCode(String configurationCode) {
this.configurationCode = configurationCode;
return this;
}
/**
* Get configurationCode
* @return configurationCode
**/
@Schema(description = "")
public String getConfigurationCode() {
return configurationCode;
}
public void setConfigurationCode(String configurationCode) {
this.configurationCode = configurationCode;
}
public DescribeNodeAvailableSpecsResponse networkSpecs(List networkSpecs) {
this.networkSpecs = networkSpecs;
return this;
}
public DescribeNodeAvailableSpecsResponse addNetworkSpecsItem(NetworkSpecForDescribeNodeAvailableSpecsOutput networkSpecsItem) {
if (this.networkSpecs == null) {
this.networkSpecs = new ArrayList();
}
this.networkSpecs.add(networkSpecsItem);
return this;
}
/**
* Get networkSpecs
* @return networkSpecs
**/
@Valid
@Schema(description = "")
public List getNetworkSpecs() {
return networkSpecs;
}
public void setNetworkSpecs(List networkSpecs) {
this.networkSpecs = networkSpecs;
}
public DescribeNodeAvailableSpecsResponse nodeAvailableSpecs(List nodeAvailableSpecs) {
this.nodeAvailableSpecs = nodeAvailableSpecs;
return this;
}
public DescribeNodeAvailableSpecsResponse addNodeAvailableSpecsItem(NodeAvailableSpecForDescribeNodeAvailableSpecsOutput nodeAvailableSpecsItem) {
if (this.nodeAvailableSpecs == null) {
this.nodeAvailableSpecs = new ArrayList();
}
this.nodeAvailableSpecs.add(nodeAvailableSpecsItem);
return this;
}
/**
* Get nodeAvailableSpecs
* @return nodeAvailableSpecs
**/
@Valid
@Schema(description = "")
public List getNodeAvailableSpecs() {
return nodeAvailableSpecs;
}
public void setNodeAvailableSpecs(List nodeAvailableSpecs) {
this.nodeAvailableSpecs = nodeAvailableSpecs;
}
public DescribeNodeAvailableSpecsResponse resourceSpecs(List resourceSpecs) {
this.resourceSpecs = resourceSpecs;
return this;
}
public DescribeNodeAvailableSpecsResponse addResourceSpecsItem(ResourceSpecForDescribeNodeAvailableSpecsOutput resourceSpecsItem) {
if (this.resourceSpecs == null) {
this.resourceSpecs = new ArrayList();
}
this.resourceSpecs.add(resourceSpecsItem);
return this;
}
/**
* Get resourceSpecs
* @return resourceSpecs
**/
@Valid
@Schema(description = "")
public List getResourceSpecs() {
return resourceSpecs;
}
public void setResourceSpecs(List resourceSpecs) {
this.resourceSpecs = resourceSpecs;
}
public DescribeNodeAvailableSpecsResponse storageSpecs(List storageSpecs) {
this.storageSpecs = storageSpecs;
return this;
}
public DescribeNodeAvailableSpecsResponse addStorageSpecsItem(StorageSpecForDescribeNodeAvailableSpecsOutput storageSpecsItem) {
if (this.storageSpecs == null) {
this.storageSpecs = new ArrayList();
}
this.storageSpecs.add(storageSpecsItem);
return this;
}
/**
* Get storageSpecs
* @return storageSpecs
**/
@Valid
@Schema(description = "")
public List getStorageSpecs() {
return storageSpecs;
}
public void setStorageSpecs(List storageSpecs) {
this.storageSpecs = storageSpecs;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DescribeNodeAvailableSpecsResponse describeNodeAvailableSpecsResponse = (DescribeNodeAvailableSpecsResponse) o;
return Objects.equals(this.azAvailableSpecsSoldOut, describeNodeAvailableSpecsResponse.azAvailableSpecsSoldOut) &&
Objects.equals(this.configurationCode, describeNodeAvailableSpecsResponse.configurationCode) &&
Objects.equals(this.networkSpecs, describeNodeAvailableSpecsResponse.networkSpecs) &&
Objects.equals(this.nodeAvailableSpecs, describeNodeAvailableSpecsResponse.nodeAvailableSpecs) &&
Objects.equals(this.resourceSpecs, describeNodeAvailableSpecsResponse.resourceSpecs) &&
Objects.equals(this.storageSpecs, describeNodeAvailableSpecsResponse.storageSpecs);
}
@Override
public int hashCode() {
return Objects.hash(azAvailableSpecsSoldOut, configurationCode, networkSpecs, nodeAvailableSpecs, resourceSpecs, storageSpecs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DescribeNodeAvailableSpecsResponse {\n");
sb.append(" azAvailableSpecsSoldOut: ").append(toIndentedString(azAvailableSpecsSoldOut)).append("\n");
sb.append(" configurationCode: ").append(toIndentedString(configurationCode)).append("\n");
sb.append(" networkSpecs: ").append(toIndentedString(networkSpecs)).append("\n");
sb.append(" nodeAvailableSpecs: ").append(toIndentedString(nodeAvailableSpecs)).append("\n");
sb.append(" resourceSpecs: ").append(toIndentedString(resourceSpecs)).append("\n");
sb.append(" storageSpecs: ").append(toIndentedString(storageSpecs)).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