com.aliyun.sdk.service.ecs20140526.models.DescribeAutoProvisioningGroupInstancesResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ecs20140526 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeAutoProvisioningGroupInstancesResponseBody} extends {@link TeaModel}
*
* DescribeAutoProvisioningGroupInstancesResponseBody
*/
public class DescribeAutoProvisioningGroupInstancesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Instances")
private Instances instances;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeAutoProvisioningGroupInstancesResponseBody(Builder builder) {
this.instances = builder.instances;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAutoProvisioningGroupInstancesResponseBody create() {
return builder().build();
}
/**
* @return instances
*/
public Instances getInstances() {
return this.instances;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Instances instances;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* An array consisting of Instance data.
*/
public Builder instances(Instances instances) {
this.instances = instances;
return this;
}
/**
* The page number of the returned page.
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries returned per page.
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The number of queried instances in the auto provisioning group.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeAutoProvisioningGroupInstancesResponseBody build() {
return new DescribeAutoProvisioningGroupInstancesResponseBody(this);
}
}
public static class Instance extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CPU")
private Integer CPU;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("IoOptimized")
private Boolean ioOptimized;
@com.aliyun.core.annotation.NameInMap("IsSpot")
private Boolean isSpot;
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.NameInMap("OsType")
private String osType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private Instance(Builder builder) {
this.CPU = builder.CPU;
this.creationTime = builder.creationTime;
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.ioOptimized = builder.ioOptimized;
this.isSpot = builder.isSpot;
this.memory = builder.memory;
this.networkType = builder.networkType;
this.osType = builder.osType;
this.regionId = builder.regionId;
this.status = builder.status;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Instance create() {
return builder().build();
}
/**
* @return CPU
*/
public Integer getCPU() {
return this.CPU;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return ioOptimized
*/
public Boolean getIoOptimized() {
return this.ioOptimized;
}
/**
* @return isSpot
*/
public Boolean getIsSpot() {
return this.isSpot;
}
/**
* @return memory
*/
public Integer getMemory() {
return this.memory;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return osType
*/
public String getOsType() {
return this.osType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private Integer CPU;
private String creationTime;
private String instanceId;
private String instanceType;
private Boolean ioOptimized;
private Boolean isSpot;
private Integer memory;
private String networkType;
private String osType;
private String regionId;
private String status;
private String zoneId;
/**
* The number of vCPUs.
*/
public Builder CPU(Integer CPU) {
this.CPU = CPU;
return this;
}
/**
* The time when the instance was created.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* The ID of the instance.
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The instance type of the ECS instance.
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* Indicates whether the instance is I/O optimized.
*/
public Builder ioOptimized(Boolean ioOptimized) {
this.ioOptimized = ioOptimized;
return this;
}
/**
* Indicates whether the instance is a preemptible instance.
*/
public Builder isSpot(Boolean isSpot) {
this.isSpot = isSpot;
return this;
}
/**
* The memory size of the instance. Unit: MiB.
*/
public Builder memory(Integer memory) {
this.memory = memory;
return this;
}
/**
* The network type of the instance. Valid values:
*
*
* * vpc
* * classic
*/
public Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
/**
* The operating system type of the instance. Valid values:
*
*
* * windows
* * linux
*/
public Builder osType(String osType) {
this.osType = osType;
return this;
}
/**
* The region ID of the instance.
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* The status of the instance.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The zone ID of the instance.
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public Instance build() {
return new Instance(this);
}
}
}
public static class Instances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Instance")
private java.util.List < Instance> instance;
private Instances(Builder builder) {
this.instance = builder.instance;
}
public static Builder builder() {
return new Builder();
}
public static Instances 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 Instances build() {
return new Instances(this);
}
}
}
}