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

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

There is a newer version: 5.0.29
Show newest version
// 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 DescribeInstancesRequest} extends {@link RequestModel}
 *
 * 

DescribeInstancesRequest

*/ public class DescribeInstancesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Filter") private java.util.List < Filter> filter; @com.aliyun.core.annotation.Host @com.aliyun.core.annotation.NameInMap("SourceRegionId") private String sourceRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AdditionalAttributes") private java.util.List < String > additionalAttributes; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeviceAvailable") private Boolean deviceAvailable; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EipAddresses") private String eipAddresses; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HpcClusterId") private String hpcClusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HttpEndpoint") private String httpEndpoint; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HttpPutResponseHopLimit") private Integer httpPutResponseHopLimit; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HttpTokens") private String httpTokens; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InnerIpAddresses") private String innerIpAddresses; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceChargeType") private String instanceChargeType; @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("InstanceNetworkType") private String instanceNetworkType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceTypeFamily") private String instanceTypeFamily; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InternetChargeType") private String internetChargeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IoOptimized") private Boolean ioOptimized; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6Address") private java.util.List < String > ipv6Address; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("KeyPairName") private String keyPairName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LockReason") private String lockReason; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NeedSaleCycle") private Boolean needSaleCycle; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @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") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrivateIpAddresses") private String privateIpAddresses; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PublicIpAddresses") private String publicIpAddresses; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RdmaIpAddresses") private String rdmaIpAddresses; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityGroupId") private String securityGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List < Tag> tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; private DescribeInstancesRequest(Builder builder) { super(builder); this.filter = builder.filter; this.sourceRegionId = builder.sourceRegionId; this.additionalAttributes = builder.additionalAttributes; this.deviceAvailable = builder.deviceAvailable; this.dryRun = builder.dryRun; this.eipAddresses = builder.eipAddresses; this.hpcClusterId = builder.hpcClusterId; this.httpEndpoint = builder.httpEndpoint; this.httpPutResponseHopLimit = builder.httpPutResponseHopLimit; this.httpTokens = builder.httpTokens; this.imageId = builder.imageId; this.innerIpAddresses = builder.innerIpAddresses; this.instanceChargeType = builder.instanceChargeType; this.instanceIds = builder.instanceIds; this.instanceName = builder.instanceName; this.instanceNetworkType = builder.instanceNetworkType; this.instanceType = builder.instanceType; this.instanceTypeFamily = builder.instanceTypeFamily; this.internetChargeType = builder.internetChargeType; this.ioOptimized = builder.ioOptimized; this.ipv6Address = builder.ipv6Address; this.keyPairName = builder.keyPairName; this.lockReason = builder.lockReason; this.maxResults = builder.maxResults; this.needSaleCycle = builder.needSaleCycle; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.privateIpAddresses = builder.privateIpAddresses; this.publicIpAddresses = builder.publicIpAddresses; this.rdmaIpAddresses = builder.rdmaIpAddresses; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.securityGroupId = builder.securityGroupId; this.status = builder.status; this.tag = builder.tag; this.vSwitchId = builder.vSwitchId; this.vpcId = builder.vpcId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DescribeInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return filter */ public java.util.List < Filter> getFilter() { return this.filter; } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return additionalAttributes */ public java.util.List < String > getAdditionalAttributes() { return this.additionalAttributes; } /** * @return deviceAvailable */ public Boolean getDeviceAvailable() { return this.deviceAvailable; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return eipAddresses */ public String getEipAddresses() { return this.eipAddresses; } /** * @return hpcClusterId */ public String getHpcClusterId() { return this.hpcClusterId; } /** * @return httpEndpoint */ public String getHttpEndpoint() { return this.httpEndpoint; } /** * @return httpPutResponseHopLimit */ public Integer getHttpPutResponseHopLimit() { return this.httpPutResponseHopLimit; } /** * @return httpTokens */ public String getHttpTokens() { return this.httpTokens; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return innerIpAddresses */ public String getInnerIpAddresses() { return this.innerIpAddresses; } /** * @return instanceChargeType */ public String getInstanceChargeType() { return this.instanceChargeType; } /** * @return instanceIds */ public String getInstanceIds() { return this.instanceIds; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instanceNetworkType */ public String getInstanceNetworkType() { return this.instanceNetworkType; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return instanceTypeFamily */ public String getInstanceTypeFamily() { return this.instanceTypeFamily; } /** * @return internetChargeType */ public String getInternetChargeType() { return this.internetChargeType; } /** * @return ioOptimized */ public Boolean getIoOptimized() { return this.ioOptimized; } /** * @return ipv6Address */ public java.util.List < String > getIpv6Address() { return this.ipv6Address; } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return lockReason */ public String getLockReason() { return this.lockReason; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return needSaleCycle */ public Boolean getNeedSaleCycle() { return this.needSaleCycle; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return privateIpAddresses */ public String getPrivateIpAddresses() { return this.privateIpAddresses; } /** * @return publicIpAddresses */ public String getPublicIpAddresses() { return this.publicIpAddresses; } /** * @return rdmaIpAddresses */ public String getRdmaIpAddresses() { return this.rdmaIpAddresses; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return securityGroupId */ public String getSecurityGroupId() { return this.securityGroupId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder extends Request.Builder { private java.util.List < Filter> filter; private String sourceRegionId; private java.util.List < String > additionalAttributes; private Boolean deviceAvailable; private Boolean dryRun; private String eipAddresses; private String hpcClusterId; private String httpEndpoint; private Integer httpPutResponseHopLimit; private String httpTokens; private String imageId; private String innerIpAddresses; private String instanceChargeType; private String instanceIds; private String instanceName; private String instanceNetworkType; private String instanceType; private String instanceTypeFamily; private String internetChargeType; private Boolean ioOptimized; private java.util.List < String > ipv6Address; private String keyPairName; private String lockReason; private Integer maxResults; private Boolean needSaleCycle; private String nextToken; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String privateIpAddresses; private String publicIpAddresses; private String rdmaIpAddresses; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String securityGroupId; private String status; private java.util.List < Tag> tag; private String vSwitchId; private String vpcId; private String zoneId; private Builder() { super(); } private Builder(DescribeInstancesRequest request) { super(request); this.filter = request.filter; this.sourceRegionId = request.sourceRegionId; this.additionalAttributes = request.additionalAttributes; this.deviceAvailable = request.deviceAvailable; this.dryRun = request.dryRun; this.eipAddresses = request.eipAddresses; this.hpcClusterId = request.hpcClusterId; this.httpEndpoint = request.httpEndpoint; this.httpPutResponseHopLimit = request.httpPutResponseHopLimit; this.httpTokens = request.httpTokens; this.imageId = request.imageId; this.innerIpAddresses = request.innerIpAddresses; this.instanceChargeType = request.instanceChargeType; this.instanceIds = request.instanceIds; this.instanceName = request.instanceName; this.instanceNetworkType = request.instanceNetworkType; this.instanceType = request.instanceType; this.instanceTypeFamily = request.instanceTypeFamily; this.internetChargeType = request.internetChargeType; this.ioOptimized = request.ioOptimized; this.ipv6Address = request.ipv6Address; this.keyPairName = request.keyPairName; this.lockReason = request.lockReason; this.maxResults = request.maxResults; this.needSaleCycle = request.needSaleCycle; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.privateIpAddresses = request.privateIpAddresses; this.publicIpAddresses = request.publicIpAddresses; this.rdmaIpAddresses = request.rdmaIpAddresses; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.securityGroupId = request.securityGroupId; this.status = request.status; this.tag = request.tag; this.vSwitchId = request.vSwitchId; this.vpcId = request.vpcId; this.zoneId = request.zoneId; } /** * Filter. */ public Builder filter(java.util.List < Filter> filter) { this.putQueryParameter("Filter", filter); this.filter = filter; return this; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** *

The additional attributes. Valid values of N: 1 to 20. Valid values:

*
    *
  • META_OPTIONS: instance metadata
  • *
  • DDH_CLUSTER: dedicated host cluster
  • *
  • NETWORK_PRIMARY_ENI_IP: secondary IP address associated with the primary ENI
  • *
  • CPU_OPTIONS_TOPOLOGY_TYPE: CPU topology type of the instance
  • *
* * example: *

META_OPTIONS

*/ public Builder additionalAttributes(java.util.List < String > additionalAttributes) { this.putQueryParameter("AdditionalAttributes", additionalAttributes); this.additionalAttributes = additionalAttributes; return this; } /** *
*

This parameter is in invitational preview and is not publicly available.

*
* * example: *

false

*/ public Builder deviceAvailable(Boolean deviceAvailable) { this.putQueryParameter("DeviceAvailable", deviceAvailable); this.deviceAvailable = deviceAvailable; return this; } /** *

Specifies whether to perform only a dry run, without performing the actual request. Valid values:

*
    *
  • true: performs only a dry run. The system checks the request for potential issues, including invalid AccessKey pairs, unauthorized RAM users, and missing parameter values. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
  • *
  • false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
  • *
*

Default value: false.

* * example: *

false

*/ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** *

The elastic IP addresses (EIPs) of instances. This parameter is valid when InstanceNetworkType is set to vpc. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,).

* * example: *

["42.1.1.", "42.1.2.", … "42.1.10.**"]

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

The ID of the high-performance computing (HPC) cluster to which the instance belongs.

* * example: *

hpc-bp67acfmxazb4p****

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

Specifies whether the access channel is enabled for instance metadata. Valid values:

*
    *
  • enabled
  • *
  • disabled
  • *
*

Default value: enabled.

*
*

For information about instance metadata, see Access instance metadata.

*
* * example: *

enabled

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

This parameter is in invitational preview and is not publicly available.

*
* * example: *

0

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

Specifies whether the security hardening mode (IMDSv2) is forcefully used to access instance metadata. Valid values:

*
    *
  • optional: The security hardening mode (IMDSv2) is not forcefully used.
  • *
  • required: The security hardening mode (IMDSv2) is forcefully used. After you set this parameter to required, you cannot access instance metadata in normal mode.
  • *
*

Default value: optional.

*
*

For information about modes of accessing instance metadata, see Access instance metadata.

*
* * example: *

optional

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

The ID of the image.

* * example: *

m-bp67acfmxazb4p****

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

The internal IP addresses of instances located in the classic network. This parameter is valid when InstanceNetworkType is set to classic. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,).

* * example: *

["10.1.1.1", "10.1.2.1", … "10.1.10.1"]

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

The billing method of the instance. Valid values:

*
    *
  • PostPaid: pay-as-you-go
  • *
  • PrePaid: subscription
  • *
* * example: *

PostPaid

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

The ID of the instance. The value can be a JSON array that consists of up to 100 instance IDs. Separate the IDs with commas (,).

* * example: *

["i-bp67acfmxazb4p****", "i-bp67acfmxazb4p****", … "i-bp67acfmxazb4p****"]

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

The name of the instance. Fuzzy search with asterisk (*) wildcard characters is supported.

* * example: *

Test

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

The network type of the instance. Valid values:

*
    *
  • classic
  • *
  • vpc
  • *
* * example: *

vpc

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

The instance type of the instance.

* * example: *

ecs.g5.large

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

The instance family of the instance.

* * example: *

ecs.g5

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

The billing method for network usage. Valid values:

*
    *
  • PayByBandwidth
  • *
  • PayByTraffic
  • *
*
*

When the pay-by-traffic billing method is used for network usage, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios in which demands exceed resource supplies, the maximum bandwidths may not be reached. If you want guaranteed bandwidths for your instance, use the pay-by-bandwidth billing method for network usage.

*
* * example: *

PayByTraffic

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

Specifies whether the instance is an I/O optimized instance. Valid values:

*
    *
  • true
  • *
  • false
  • *
* * example: *

true

*/ public Builder ioOptimized(Boolean ioOptimized) { this.putQueryParameter("IoOptimized", ioOptimized); this.ioOptimized = ioOptimized; return this; } /** *

The IPv6 addresses assigned to elastic network interfaces (ENIs).

*/ public Builder ipv6Address(java.util.List < String > ipv6Address) { this.putQueryParameter("Ipv6Address", ipv6Address); this.ipv6Address = ipv6Address; return this; } /** *

The name of the SSH key pair bound to the instance.

* * example: *

KeyPairNameTest

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

The reason why the instance is locked. Valid values:

*
    *
  • financial: The instance is locked due to overdue payments.
  • *
  • security: The instance is locked due to security reasons.
  • *
  • recycling: The preemptible instance is locked and pending release.
  • *
  • dedicatedhostfinancial: The instance is locked due to overdue payments for the dedicated host.
  • *
  • refunded: The instance is locked because a refund is made for the instance.
  • *
* * example: *

security

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

The maximum number of entries per page. Valid values: 1 to 100.

*

Default value:

*
    *
  • If you do not specify this parameter or if you set this parameter to a value that is smaller than 10, the default value is 10.
  • *
  • If you set this parameter to a value that is greater than 100, the default value is 100.
  • *
* * example: *

10

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

This parameter is in invitational preview and is not publicly available.

*
* * example: *

false

*/ public Builder needSaleCycle(Boolean needSaleCycle) { this.putQueryParameter("NeedSaleCycle", needSaleCycle); this.needSaleCycle = needSaleCycle; return this; } /** *

The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.

* * example: *

caeba0bbb2be03f84eb48b699f0a4883

*/ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; 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 per page.

*

Valid values: 1 to 100.

*

Default value: 10.

* * example: *

10

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

The private IP addresses of instances located in a VPC. This parameter is valid when InstanceNetworkType is set to vpc. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,).

* * example: *

["172.16.1.1", "172.16.2.1", … "172.16.10.1"]

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

The public IP addresses of instances. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,).

* * example: *

["42.1.1.", "42.1.2.", … "42.1.10.**"]

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

The remote direct memory access (RDMA) IP addresses of the instance in the HPC cluster.

* * example: *

10.10.10.102

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

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

*

This parameter is required.

* * example: *

cn-hangzhou

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

The ID of the resource group to which the instance belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.

*
*

Resources in the default resource group are displayed in the response regardless of how this parameter is set.

*
* * example: *

rg-bp67acfmxazb4p****

*/ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** *

The ID of the security group to which the instance belongs.

* * example: *

sg-bp67acfmxazb4p****

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

The status 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.
  • *
* * example: *

Running

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

The tags of the instance.

*/ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** *

The ID of the vSwitch.

* * example: *

vsw-bp67acfmxazb4p****

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

The ID of the virtual private cloud (VPC).

* * example: *

v-bp67acfmxazb4p****

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

The zone ID of the instance.

* * example: *

cn-hangzhou-g

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

DescribeInstancesRequest

*/ public static class Filter extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Filter(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Filter 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 filter 1 used to query resources. Set the value to CreationStartTime. You can specify a time by setting both Filter.1.Key and Filter.1.Value to query resources that were created after the specified time.

* * example: *

CreationStartTime

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

The value of filter 1 used to query resources. Set the value to a time. If you specify this parameter, you must also specify Filter.1.Key. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

* * example: *

2017-12-05T22:40Z

*/ public Builder value(String value) { this.value = value; return this; } public Filter build() { return new Filter(this); } } } /** * * {@link DescribeInstancesRequest} extends {@link TeaModel} * *

DescribeInstancesRequest

*/ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag 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 tag N of the instance. Valid values of N: 1 to 20.

*

If you specify a single tag to query resources, up to 1,000 resources to which the tag is added are returned. If you specify multiple tags to query resources, up to 1,000 resources to which all specified tags are added are returned. To query more than 1,000 resources that have specified tags added, call the ListTagResources operation.

* * example: *

TestKey

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

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

* * example: *

TestValue

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy