public static final class DescribeInstancesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DescribeInstancesRequest.Builder |
additionalAttributes(List<String> additionalAttributes)
The additional attributes.
|
DescribeInstancesRequest |
build() |
DescribeInstancesRequest.Builder |
deviceAvailable(Boolean deviceAvailable)
> This parameter is in invitational preview and is not publicly available.
|
DescribeInstancesRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
DescribeInstancesRequest.Builder |
eipAddresses(String eipAddresses)
The elastic IP addresses (EIPs) of instances.
|
DescribeInstancesRequest.Builder |
filter(List<DescribeInstancesRequest.Filter> filter)
Filter.
|
DescribeInstancesRequest.Builder |
hpcClusterId(String hpcClusterId)
The ID of the high-performance computing (HPC) cluster to which the instance belongs.
|
DescribeInstancesRequest.Builder |
httpEndpoint(String httpEndpoint)
Specifies whether the access channel is enabled for instance metadata.
|
DescribeInstancesRequest.Builder |
httpPutResponseHopLimit(Integer httpPutResponseHopLimit)
> This parameter is in invitational preview and is not publicly available.
|
DescribeInstancesRequest.Builder |
httpTokens(String httpTokens)
Specifies whether the security hardening mode (IMDSv2) is forcefully used to access instance metadata.
|
DescribeInstancesRequest.Builder |
imageId(String imageId)
The ID of the image.
|
DescribeInstancesRequest.Builder |
innerIpAddresses(String innerIpAddresses)
The internal IP addresses of instances located in the classic network.
|
DescribeInstancesRequest.Builder |
instanceChargeType(String instanceChargeType)
The billing method of the instance.
|
DescribeInstancesRequest.Builder |
instanceIds(String instanceIds)
The ID of the instance.
|
DescribeInstancesRequest.Builder |
instanceName(String instanceName)
The name of the instance.
|
DescribeInstancesRequest.Builder |
instanceNetworkType(String instanceNetworkType)
The network type of the instance.
|
DescribeInstancesRequest.Builder |
instanceType(String instanceType)
The instance type of the instance.
|
DescribeInstancesRequest.Builder |
instanceTypeFamily(String instanceTypeFamily)
The instance family of the instance.
|
DescribeInstancesRequest.Builder |
internetChargeType(String internetChargeType)
The billing method for network usage.
|
DescribeInstancesRequest.Builder |
ioOptimized(Boolean ioOptimized)
Specifies whether the instance is an I/O optimized instance.
|
DescribeInstancesRequest.Builder |
ipv6Address(List<String> ipv6Address)
The IPv6 addresses assigned to elastic network interfaces (ENIs).
|
DescribeInstancesRequest.Builder |
keyPairName(String keyPairName)
The name of the SSH key pair bound to the instance.
|
DescribeInstancesRequest.Builder |
lockReason(String lockReason)
The reason why the instance is locked.
|
DescribeInstancesRequest.Builder |
maxResults(Integer maxResults)
The maximum number of entries per page.
|
DescribeInstancesRequest.Builder |
needSaleCycle(Boolean needSaleCycle)
> This parameter is in invitational preview and is not publicly available.
|
DescribeInstancesRequest.Builder |
nextToken(String nextToken)
The pagination token that is used in the next request to retrieve a new page of results.
|
DescribeInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DescribeInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DescribeInstancesRequest.Builder |
pageNumber(Integer pageNumber)
The page number.
|
DescribeInstancesRequest.Builder |
pageSize(Integer pageSize)
The number of entries per page.
|
DescribeInstancesRequest.Builder |
privateIpAddresses(String privateIpAddresses)
The private IP addresses of instances located in a VPC.
|
DescribeInstancesRequest.Builder |
publicIpAddresses(String publicIpAddresses)
The public IP addresses of instances.
|
DescribeInstancesRequest.Builder |
rdmaIpAddresses(String rdmaIpAddresses)
The remote direct memory access (RDMA) IP addresses of the instance in the HPC cluster.
|
DescribeInstancesRequest.Builder |
regionId(String regionId)
The region ID of the instance.
|
DescribeInstancesRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs.
|
DescribeInstancesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DescribeInstancesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DescribeInstancesRequest.Builder |
securityGroupId(String securityGroupId)
The ID of the security group to which the instance belongs.
|
DescribeInstancesRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
DescribeInstancesRequest.Builder |
status(String status)
The status of the instance.
|
DescribeInstancesRequest.Builder |
tag(List<DescribeInstancesRequest.Tag> tag)
The tags of the instance.
|
DescribeInstancesRequest.Builder |
vpcId(String vpcId)
The ID of the virtual private cloud (VPC).
|
DescribeInstancesRequest.Builder |
vSwitchId(String vSwitchId)
The ID of the vSwitch.
|
DescribeInstancesRequest.Builder |
zoneId(String zoneId)
The zone ID of the instance.
|
public DescribeInstancesRequest.Builder filter(List<DescribeInstancesRequest.Filter> filter)
public DescribeInstancesRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeInstancesRequest.Builder additionalAttributes(List<String> additionalAttributes)
* 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
public DescribeInstancesRequest.Builder deviceAvailable(Boolean deviceAvailable)
public DescribeInstancesRequest.Builder dryRun(Boolean dryRun)
* 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.
public DescribeInstancesRequest.Builder eipAddresses(String eipAddresses)
public DescribeInstancesRequest.Builder hpcClusterId(String hpcClusterId)
public DescribeInstancesRequest.Builder httpEndpoint(String httpEndpoint)
* enabled * disabled Default value: enabled. > For information about instance metadata, see [Access instance metadata](~~49122~~).
public DescribeInstancesRequest.Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit)
public DescribeInstancesRequest.Builder httpTokens(String httpTokens)
* 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](~~150575~~).
public DescribeInstancesRequest.Builder imageId(String imageId)
public DescribeInstancesRequest.Builder innerIpAddresses(String innerIpAddresses)
public DescribeInstancesRequest.Builder instanceChargeType(String instanceChargeType)
* PostPaid: pay-as-you-go * PrePaid: subscription
public DescribeInstancesRequest.Builder instanceIds(String instanceIds)
public DescribeInstancesRequest.Builder instanceName(String instanceName)
public DescribeInstancesRequest.Builder instanceNetworkType(String instanceNetworkType)
* classic * vpc
public DescribeInstancesRequest.Builder instanceType(String instanceType)
public DescribeInstancesRequest.Builder instanceTypeFamily(String instanceTypeFamily)
public DescribeInstancesRequest.Builder internetChargeType(String internetChargeType)
* 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.
public DescribeInstancesRequest.Builder ioOptimized(Boolean ioOptimized)
* true * false
public DescribeInstancesRequest.Builder ipv6Address(List<String> ipv6Address)
public DescribeInstancesRequest.Builder keyPairName(String keyPairName)
public DescribeInstancesRequest.Builder lockReason(String lockReason)
* 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.
public DescribeInstancesRequest.Builder maxResults(Integer maxResults)
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.
public DescribeInstancesRequest.Builder needSaleCycle(Boolean needSaleCycle)
public DescribeInstancesRequest.Builder nextToken(String nextToken)
public DescribeInstancesRequest.Builder ownerAccount(String ownerAccount)
public DescribeInstancesRequest.Builder ownerId(Long ownerId)
public DescribeInstancesRequest.Builder pageNumber(Integer pageNumber)
Pages start from page 1. Default value: 1.
public DescribeInstancesRequest.Builder pageSize(Integer pageSize)
Valid values: 1 to 100. Default value: 10.
public DescribeInstancesRequest.Builder privateIpAddresses(String privateIpAddresses)
public DescribeInstancesRequest.Builder publicIpAddresses(String publicIpAddresses)
public DescribeInstancesRequest.Builder rdmaIpAddresses(String rdmaIpAddresses)
public DescribeInstancesRequest.Builder regionId(String regionId)
public DescribeInstancesRequest.Builder resourceGroupId(String resourceGroupId)
> Resources in the default resource group are displayed in the response regardless of how this parameter is set.
public DescribeInstancesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeInstancesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeInstancesRequest.Builder securityGroupId(String securityGroupId)
public DescribeInstancesRequest.Builder status(String status)
* 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 DescribeInstancesRequest.Builder tag(List<DescribeInstancesRequest.Tag> tag)
public DescribeInstancesRequest.Builder vSwitchId(String vSwitchId)
public DescribeInstancesRequest.Builder vpcId(String vpcId)
public DescribeInstancesRequest.Builder zoneId(String zoneId)
public DescribeInstancesRequest build()
Copyright © 2024. All rights reserved.