
com.aliyun.sdk.service.edas20170801.models.ListConvertableEcuResponseBody Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.edas20170801.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ListConvertableEcuResponseBody} extends {@link TeaModel}
*
* ListConvertableEcuResponseBody
*/
public class ListConvertableEcuResponseBody extends TeaModel {
@NameInMap("Code")
private Integer code;
@NameInMap("InstanceList")
private InstanceList instanceList;
@NameInMap("Message")
private String message;
@NameInMap("RequestId")
private String requestId;
private ListConvertableEcuResponseBody(Builder builder) {
this.code = builder.code;
this.instanceList = builder.instanceList;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListConvertableEcuResponseBody create() {
return builder().build();
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return instanceList
*/
public InstanceList getInstanceList() {
return this.instanceList;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer code;
private InstanceList instanceList;
private String message;
private String requestId;
/**
* The HTTP status code that is returned.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* The ECS instances that can be imported to the cluster.
*/
public Builder instanceList(InstanceList instanceList) {
this.instanceList = instanceList;
return this;
}
/**
* The additional information that is returned.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListConvertableEcuResponseBody build() {
return new ListConvertableEcuResponseBody(this);
}
}
public static class Instance extends TeaModel {
@NameInMap("Cpu")
private Integer cpu;
@NameInMap("EcuId")
private String ecuId;
@NameInMap("Eip")
private String eip;
@NameInMap("Expired")
private Boolean expired;
@NameInMap("InnerIp")
private String innerIp;
@NameInMap("InstanceId")
private String instanceId;
@NameInMap("InstanceName")
private String instanceName;
@NameInMap("Mem")
private Integer mem;
@NameInMap("PrivateIp")
private String privateIp;
@NameInMap("PublicIp")
private String publicIp;
@NameInMap("RegionId")
private String regionId;
@NameInMap("Status")
private String status;
@NameInMap("VpcId")
private String vpcId;
@NameInMap("VpcName")
private String vpcName;
private Instance(Builder builder) {
this.cpu = builder.cpu;
this.ecuId = builder.ecuId;
this.eip = builder.eip;
this.expired = builder.expired;
this.innerIp = builder.innerIp;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.mem = builder.mem;
this.privateIp = builder.privateIp;
this.publicIp = builder.publicIp;
this.regionId = builder.regionId;
this.status = builder.status;
this.vpcId = builder.vpcId;
this.vpcName = builder.vpcName;
}
public static Builder builder() {
return new Builder();
}
public static Instance create() {
return builder().build();
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return ecuId
*/
public String getEcuId() {
return this.ecuId;
}
/**
* @return eip
*/
public String getEip() {
return this.eip;
}
/**
* @return expired
*/
public Boolean getExpired() {
return this.expired;
}
/**
* @return innerIp
*/
public String getInnerIp() {
return this.innerIp;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return mem
*/
public Integer getMem() {
return this.mem;
}
/**
* @return privateIp
*/
public String getPrivateIp() {
return this.privateIp;
}
/**
* @return publicIp
*/
public String getPublicIp() {
return this.publicIp;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return vpcName
*/
public String getVpcName() {
return this.vpcName;
}
public static final class Builder {
private Integer cpu;
private String ecuId;
private String eip;
private Boolean expired;
private String innerIp;
private String instanceId;
private String instanceName;
private Integer mem;
private String privateIp;
private String publicIp;
private String regionId;
private String status;
private String vpcId;
private String vpcName;
/**
* The number of CPU cores of the ECS instance.
*/
public Builder cpu(Integer cpu) {
this.cpu = cpu;
return this;
}
/**
* The ID of the elastic compute units (ECU).
*/
public Builder ecuId(String ecuId) {
this.ecuId = ecuId;
return this;
}
/**
* The elastic IP address (EIP) associated with the ECS instance. The EIP can be changed.
*/
public Builder eip(String eip) {
this.eip = eip;
return this;
}
/**
* Indicates whether the ECS instance has expired.
*/
public Builder expired(Boolean expired) {
this.expired = expired;
return this;
}
/**
* The private IP address of the ECS instance. This parameter is valid only when the ECS instance is deployed in a VPC.
*/
public Builder innerIp(String innerIp) {
this.innerIp = innerIp;
return this;
}
/**
* The ID of the ECS instance.
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The name of the ECS instance.
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* The size of memory for the ECS instance.
*/
public Builder mem(Integer mem) {
this.mem = mem;
return this;
}
/**
* The private IP address of the ECS instance. This parameter is valid only when the ECS instance is deployed in a VPC.
*/
public Builder privateIp(String privateIp) {
this.privateIp = privateIp;
return this;
}
/**
* The public IP address of the ECS instance. This IP address can be used only by the ECS instance.
*/
public Builder publicIp(String publicIp) {
this.publicIp = publicIp;
return this;
}
/**
* The ID of the region where the ECS instance is located.
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* The state of the instance. Valid values:
*
*
* * Pending: The instance is being created.
* * Running: The instance is running.
* * Starting: The instance is being started.
* * Stopping: The instance is being stopped.
* * Stopped: The instance is stopped.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The ID of the virtual private cloud (VPC).
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* The name of the VPC.
*/
public Builder vpcName(String vpcName) {
this.vpcName = vpcName;
return this;
}
public Instance build() {
return new Instance(this);
}
}
}
public static class InstanceList extends TeaModel {
@NameInMap("Instance")
private java.util.List < Instance> instance;
private InstanceList(Builder builder) {
this.instance = builder.instance;
}
public static Builder builder() {
return new Builder();
}
public static InstanceList create() {
return builder().build();
}
/**
* @return instance
*/
public java.util.List < Instance> getInstance() {
return this.instance;
}
public static final class Builder {
private java.util.List < Instance> instance;
/**
* Instance.
*/
public Builder instance(java.util.List < Instance> instance) {
this.instance = instance;
return this;
}
public InstanceList build() {
return new InstanceList(this);
}
}
}
}