All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ens20171110.models.DescribeInstancesRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeInstancesRequest} extends {@link RequestModel}
 *
 * 

DescribeInstancesRequest

*/ public class DescribeInstancesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnsRegionId") private String ensRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnsRegionIds") private String ensRegionIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnsServiceId") private String ensServiceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") private String instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceResourceType") private String instanceResourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IntranetIp") private String intranetIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkId") private String networkId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OrderByParams") private String orderByParams; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SearchKey") private String searchKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityGroupId") private String securityGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServiceStatus") private java.util.List serviceStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; private DescribeInstancesRequest(Builder builder) { super(builder); this.ensRegionId = builder.ensRegionId; this.ensRegionIds = builder.ensRegionIds; this.ensServiceId = builder.ensServiceId; this.imageId = builder.imageId; this.instanceId = builder.instanceId; this.instanceIds = builder.instanceIds; this.instanceName = builder.instanceName; this.instanceResourceType = builder.instanceResourceType; this.instanceType = builder.instanceType; this.intranetIp = builder.intranetIp; this.networkId = builder.networkId; this.orderByParams = builder.orderByParams; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.searchKey = builder.searchKey; this.securityGroupId = builder.securityGroupId; this.serviceStatus = builder.serviceStatus; this.status = builder.status; this.tags = builder.tags; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static DescribeInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ensRegionId */ public String getEnsRegionId() { return this.ensRegionId; } /** * @return ensRegionIds */ public String getEnsRegionIds() { return this.ensRegionIds; } /** * @return ensServiceId */ public String getEnsServiceId() { return this.ensServiceId; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceIds */ public String getInstanceIds() { return this.instanceIds; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instanceResourceType */ public String getInstanceResourceType() { return this.instanceResourceType; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return intranetIp */ public String getIntranetIp() { return this.intranetIp; } /** * @return networkId */ public String getNetworkId() { return this.networkId; } /** * @return orderByParams */ public String getOrderByParams() { return this.orderByParams; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return searchKey */ public String getSearchKey() { return this.searchKey; } /** * @return securityGroupId */ public String getSecurityGroupId() { return this.securityGroupId; } /** * @return serviceStatus */ public java.util.List getServiceStatus() { return this.serviceStatus; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List getTags() { return this.tags; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder extends Request.Builder { private String ensRegionId; private String ensRegionIds; private String ensServiceId; private String imageId; private String instanceId; private String instanceIds; private String instanceName; private String instanceResourceType; private String instanceType; private String intranetIp; private String networkId; private String orderByParams; private Integer pageNumber; private String pageSize; private String searchKey; private String securityGroupId; private java.util.List serviceStatus; private String status; private java.util.List tags; private String vSwitchId; private Builder() { super(); } private Builder(DescribeInstancesRequest request) { super(request); this.ensRegionId = request.ensRegionId; this.ensRegionIds = request.ensRegionIds; this.ensServiceId = request.ensServiceId; this.imageId = request.imageId; this.instanceId = request.instanceId; this.instanceIds = request.instanceIds; this.instanceName = request.instanceName; this.instanceResourceType = request.instanceResourceType; this.instanceType = request.instanceType; this.intranetIp = request.intranetIp; this.networkId = request.networkId; this.orderByParams = request.orderByParams; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.searchKey = request.searchKey; this.securityGroupId = request.securityGroupId; this.serviceStatus = request.serviceStatus; this.status = request.status; this.tags = request.tags; this.vSwitchId = request.vSwitchId; } /** *

The region ID.

* * example: *

cn-beijing-cmcc

*/ public Builder ensRegionId(String ensRegionId) { this.putQueryParameter("EnsRegionId", ensRegionId); this.ensRegionId = ensRegionId; return this; } /** *

The IDs of the regions. The value is a JSON array that consists of up to 100 IDs. Separate multiple IDs with commas (,).

* * example: *

["cn-suzhou-telecom","cn-chengdu-telecom"]

*/ public Builder ensRegionIds(String ensRegionIds) { this.putQueryParameter("EnsRegionIds", ensRegionIds); this.ensRegionIds = ensRegionIds; return this; } /** *

The ID of the edge service. You can use the ID to query information about the instances that are created in the edge service.

* * example: *

ens-20190730202316s****

*/ public Builder ensServiceId(String ensServiceId) { this.putQueryParameter("EnsServiceId", ensServiceId); this.ensServiceId = ensServiceId; return this; } /** *

The ID of the image.

* * example: *

centos_6_08_64_20G_alibase_****

*/ public Builder imageId(String imageId) { this.putQueryParameter("ImageId", imageId); this.imageId = imageId; return this; } /** *

The ID of the instance.

* * example: *

i-5iqczfxps7csjrxeca****

*/ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** *

The IDs of the instances. The value is a JSON array that consists of up to 100 IDs. Separate IDs with commas (,).

* * example: *

["i-5iqczfxps7csjrxeca07****", "i-5iqczfxps7csjrxeca07****"]]

*/ public Builder instanceIds(String instanceIds) { this.putQueryParameter("InstanceIds", instanceIds); this.instanceIds = instanceIds; return this; } /** *

The name of the instance.

* * example: *

TestName

*/ public Builder instanceName(String instanceName) { this.putQueryParameter("InstanceName", instanceName); this.instanceName = instanceName; return this; } /** *

The condition that you want to use to filter instances by category. Valid values:

*
    *
  • EnsInstance: ENS instances that you purchase.
  • *
  • EnsService: ENS instances that belong to edge services.
  • *
  • BuildMachine: ENS instances that are configured with image builders.
  • *
  • EnsPostPaidInstance: Pay-as-you-go ENS instances that you purchase.
  • *
* * example: *

EnsService

*/ public Builder instanceResourceType(String instanceResourceType) { this.putQueryParameter("InstanceResourceType", instanceResourceType); this.instanceResourceType = instanceResourceType; return this; } /** *

The instance type.

* * example: *

ens.se1.tiny

*/ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** *

The internal IP address of the instance.

* * example: *

47.100.XX.XX

*/ public Builder intranetIp(String intranetIp) { this.putQueryParameter("IntranetIp", intranetIp); this.intranetIp = intranetIp; return this; } /** *

The ID of the network.

* * example: *

n-2zeuphj08tt7q3brd****

*/ public Builder networkId(String networkId) { this.putQueryParameter("NetworkId", networkId); this.networkId = networkId; return this; } /** *

The method that you want to use to sort instances. The value of this parameter is in the JSON format.

*

You can sort instances by name, expiration time, node ID, or creation time. You can specify one or more methods.

* * example: *

{"InstanceNameSort":"asc","ExpireTimeSort":"asc","CreationTimeSort":"desc"}}

*/ public Builder orderByParams(String orderByParams) { this.putQueryParameter("OrderByParams", orderByParams); this.orderByParams = orderByParams; return this; } /** *

The page number. Pages start from page 1.

*

Default value: 1.

* * example: *

1

*/ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** *

The number of entries to return on each page. The maximum value is 100.

*

Default value: 10.

* * example: *

10

*/ public Builder pageSize(String pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** *

The keyword that you use to query the logs of the service. You can specify the values of parameters such as ip, InstanceName, and InstanceId as the keyword.

* * example: *

Joshua

*/ public Builder searchKey(String searchKey) { this.putQueryParameter("SearchKey", searchKey); this.searchKey = searchKey; return this; } /** *

The ID of the security group.

* * example: *

sg-5kyicq2kfcapxrdds6tar7jqb

*/ public Builder securityGroupId(String securityGroupId) { this.putQueryParameter("SecurityGroupId", securityGroupId); this.securityGroupId = securityGroupId; return this; } /** * ServiceStatus. */ public Builder serviceStatus(java.util.List serviceStatus) { String serviceStatusShrink = shrink(serviceStatus, "ServiceStatus", "json"); this.putQueryParameter("ServiceStatus", serviceStatusShrink); this.serviceStatus = serviceStatus; return this; } /** *

The status of the instance. Valid values:

*
    *
  • Running
  • *
  • Stopped
  • *
  • Expired
  • *
* * example: *

Running

*/ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** *

The tags that are added to the resource. This operation does not return tag information. You can call this operation in combination with the tag-related operations.

*/ public Builder tags(java.util.List tags) { String tagsShrink = shrink(tags, "Tags", "json"); this.putQueryParameter("Tags", tagsShrink); this.tags = tags; return this; } /** *

The ID of the vSwitch.

* * example: *

vsw-2zeh0r1pabwtg6wcs****

*/ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } @Override public DescribeInstancesRequest build() { return new DescribeInstancesRequest(this); } } /** * * {@link DescribeInstancesRequest} extends {@link TeaModel} * *

DescribeInstancesRequest

*/ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** *

The key of the tag that are to add to the instance. Valid values: 1 to 20.

* * example: *

tag

*/ public Builder key(String key) { this.key = key; return this; } /** *

The tag value of the instance. Valid values: 1 to 20.

* * example: *

2

*/ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy