public static final class DescribeAvailableResourceRequest.Builder extends Object
public DescribeAvailableResourceRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeAvailableResourceRequest.Builder cores(Integer cores)
The Cores parameter takes effect only when the DestinationResource parameter is set to InstanceType.
public DescribeAvailableResourceRequest.Builder dataDiskCategory(String dataDiskCategory)
* cloud: basic disk * cloud_efficiency: ultra disk * cloud_ssd: standard SSD * ephemeral_ssd: local SSD * cloud_essd: ESSD * cloud_auto: ESSD AutoPL disk
public DescribeAvailableResourceRequest.Builder dedicatedHostId(String dedicatedHostId)
public DescribeAvailableResourceRequest.Builder destinationResource(String destinationResource)
* Zone: zone. * IoOptimized: I/O optimized resource. * InstanceType: instance type. * SystemDisk: system disk. * DataDisk: data disk. * Network: network type. * ddh: dedicated host. For more information about how to configure the DestinationResource parameter, see the **Description** section of this topic.
public DescribeAvailableResourceRequest.Builder instanceChargeType(String instanceChargeType)
* PrePaid: subscription. * PostPaid: pay-as-you-go. Default value: PostPaid.
public DescribeAvailableResourceRequest.Builder instanceType(String instanceType)
For more information about how to configure the InstanceType parameter, see the **Description** section of this topic.
public DescribeAvailableResourceRequest.Builder ioOptimized(String ioOptimized)
* none: The instance is a non-I/O optimized instance. * optimized: The instance is an I/O optimized instance. Default value: optimized.
public DescribeAvailableResourceRequest.Builder memory(Float memory)
The Memory parameter takes effect only when the DestinationResource parameter is set to InstanceType.
public DescribeAvailableResourceRequest.Builder networkCategory(String networkCategory)
* vpc * classic
public DescribeAvailableResourceRequest.Builder ownerAccount(String ownerAccount)
public DescribeAvailableResourceRequest.Builder ownerId(Long ownerId)
public DescribeAvailableResourceRequest.Builder regionId(String regionId)
public DescribeAvailableResourceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeAvailableResourceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeAvailableResourceRequest.Builder resourceType(String resourceType)
* instance: ECS instance. * disk: cloud disk. * reservedinstance: reserved instance. * ddh: dedicated host.
public DescribeAvailableResourceRequest.Builder scope(String scope)
* Region: regional. * Zone: zonal.
public DescribeAvailableResourceRequest.Builder spotDuration(Integer spotDuration)
* 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance. * 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance. Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released. Preemptible instances are billed by second. We recommend that you specify a protection period based on your business requirements. > This parameter takes effect only if SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
public DescribeAvailableResourceRequest.Builder spotStrategy(String spotStrategy)
* NoSpot: The instance is a pay-as-you-go instance. * SpotWithPriceLimit: The instance is a preemptible instance with a user-defined maximum hourly price. * SpotAsPriceGo: The instance is a preemptible instance for which the market price is automatically used as the bid price. The market price can be up to the pay-as-you-go price. Default value: NoSpot. The SpotStrategy parameter takes effect only when the InstanceChargeType parameter is set to PostPaid.
public DescribeAvailableResourceRequest.Builder systemDiskCategory(String systemDiskCategory)
* cloud: basic disk * cloud_efficiency: ultra disk * cloud_ssd: standard SSD * ephemeral_ssd: local SSD * cloud_essd: Enterprise SSD (ESSD) * cloud_auto: ESSD AutoPL disk Default value: cloud_efficiency. > This parameter must be specified when ResourceType is set to instance and DestinationResource is set to DataDisk. If you do not specify this parameter, the default value takes effect.
public DescribeAvailableResourceRequest.Builder zoneId(String zoneId)
This parameter is empty by default. When this parameter is empty, the system returns resources that match the other criteria in all zones within the region specified by `RegionId`.
public DescribeAvailableResourceRequest build()
Copyright © 2024. All rights reserved.