public static final class DescribeInstancesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DescribeInstancesRequest.Builder |
additionalAttributes(List<String> additionalAttributes)
The value of attribute N.
|
DescribeInstancesRequest |
build() |
DescribeInstancesRequest.Builder |
deviceAvailable(Boolean deviceAvailable)
> This parameter is currently in invitational preview and unavailable for general users.
|
DescribeInstancesRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to check the validity of the request without actually making the 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 currently in invitational preview and unavailable for general users.
|
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 IDs of instances.
|
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 I/O optimized.
|
DescribeInstancesRequest.Builder |
ipv6Address(List<String> ipv6Address)
IPv6 address N of the elastic network interface (ENI).
|
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 to return on each page.
|
DescribeInstancesRequest.Builder |
needSaleCycle(Boolean needSaleCycle)
> This parameter is currently in invitational preview and unavailable for general users.
|
DescribeInstancesRequest.Builder |
nextToken(String nextToken)
The query token.
|
DescribeInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DescribeInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DescribeInstancesRequest.Builder |
pageNumber(Integer pageNumber)
The number of the page to return.
|
DescribeInstancesRequest.Builder |
pageSize(Integer pageSize)
The number of entries to return on each page.
|
DescribeInstancesRequest.Builder |
privateIpAddresses(String privateIpAddresses)
The private IP addresses of instances located in VPCs.
|
DescribeInstancesRequest.Builder |
publicIpAddresses(String publicIpAddresses)
The public IP addresses of instances.
|
DescribeInstancesRequest.Builder |
rdmaIpAddresses(String rdmaIpAddresses)
The Remote Direct Memory Access (RDMA) IP address of the HPC instance.
|
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 state of the instance.
|
DescribeInstancesRequest.Builder |
tag(List<DescribeInstancesRequest.Tag> tag)
The tags.
|
DescribeInstancesRequest.Builder |
vpcId(String vpcId)
The ID of the virtual private cloud (VPC) to which the instance belongs.
|
DescribeInstancesRequest.Builder |
vSwitchId(String vSwitchId)
The ID of the vSwitch to which the instance is connected.
|
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)
public DescribeInstancesRequest.Builder deviceAvailable(Boolean deviceAvailable)
public DescribeInstancesRequest.Builder dryRun(Boolean dryRun)
* true: The validity of the request is checked but the request is not made. Check items include whether your AccessKey pair is valid, whether RAM users are granted required permissions, and whether the required parameters are specified. If the check fails, the corresponding error is returned. If the check succeeds, the DryRunOperation error code is returned. * false: The validity of the request is checked. If the check succeeds, a 2XX HTTP status code is returned and the request is made.
public DescribeInstancesRequest.Builder eipAddresses(String eipAddresses)
public DescribeInstancesRequest.Builder hpcClusterId(String hpcClusterId)
public DescribeInstancesRequest.Builder httpEndpoint(String httpEndpoint)
* enabled * disabled Default value: enabled. > For more information about instance metadata, see [Overview of ECS 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 more information about modes of accessing instance metadata, see [Access mode of 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: classic network * vpc: VPC
public DescribeInstancesRequest.Builder instanceType(String instanceType)
public DescribeInstancesRequest.Builder instanceTypeFamily(String instanceTypeFamily)
public DescribeInstancesRequest.Builder internetChargeType(String internetChargeType)
* PayByBandwidth: pay-by-bandwidth * PayByTraffic: pay-by-traffic > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidth values are used as upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instances, use the **pay-by-bandwidth** billing method for network usage.
public DescribeInstancesRequest.Builder ioOptimized(Boolean ioOptimized)
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 this parameter is not specified or is set to a value smaller than 10, the default value is 10. * If this parameter is set to a value 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)
Maximum value: 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 © 2023. All rights reserved.