com.aliyun.sdk.service.ecs20140526.models.DescribeInstanceAttachmentAttributesResponseBody 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 com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeInstanceAttachmentAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceAttachmentAttributesResponseBody
*/
public class DescribeInstanceAttachmentAttributesResponseBody extends TeaModel {
@NameInMap("Instances")
private Instances instances;
@NameInMap("PageNumber")
private Integer pageNumber;
@NameInMap("PageSize")
private Integer pageSize;
@NameInMap("RequestId")
private String requestId;
@NameInMap("TotalCount")
private Integer totalCount;
private DescribeInstanceAttachmentAttributesResponseBody(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 DescribeInstanceAttachmentAttributesResponseBody 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;
/**
* Details about the private pools that the instances match.
*/
public Builder instances(Instances instances) {
this.instances = instances;
return this;
}
/**
* The page number.
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of entries returned.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeInstanceAttachmentAttributesResponseBody build() {
return new DescribeInstanceAttachmentAttributesResponseBody(this);
}
}
public static class Instance extends TeaModel {
@NameInMap("InstanceId")
private String instanceId;
@NameInMap("PrivatePoolOptionsId")
private String privatePoolOptionsId;
@NameInMap("PrivatePoolOptionsMatchCriteria")
private String privatePoolOptionsMatchCriteria;
private Instance(Builder builder) {
this.instanceId = builder.instanceId;
this.privatePoolOptionsId = builder.privatePoolOptionsId;
this.privatePoolOptionsMatchCriteria = builder.privatePoolOptionsMatchCriteria;
}
public static Builder builder() {
return new Builder();
}
public static Instance create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return privatePoolOptionsId
*/
public String getPrivatePoolOptionsId() {
return this.privatePoolOptionsId;
}
/**
* @return privatePoolOptionsMatchCriteria
*/
public String getPrivatePoolOptionsMatchCriteria() {
return this.privatePoolOptionsMatchCriteria;
}
public static final class Builder {
private String instanceId;
private String privatePoolOptionsId;
private String privatePoolOptionsMatchCriteria;
/**
* The ID of the instance.
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The ID of the private pool. If the value of `PrivatePoolOptionsMatchCriteria` is `Open`, the value of PrivatePoolOptionsId is the ID of the private pool that is automatically matched to the instance.
*/
public Builder privatePoolOptionsId(String privatePoolOptionsId) {
this.privatePoolOptionsId = privatePoolOptionsId;
return this;
}
/**
* The match mode of the private pool. Valid values:
*
*
* * Open: open private pool. Instances automatically match an open private pool.
* * Target: specified private pool. Instances match a specified private pool.
* * None: no private pool. Instances do not use private pools.
*/
public Builder privatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) {
this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria;
return this;
}
public Instance build() {
return new Instance(this);
}
}
}
public static class Instances extends TeaModel {
@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);
}
}
}
}