public class DescribeAvailableResourceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Integer |
cores
The number of vCPUs of the instance type.
|
String |
dataDiskCategory
The type of the data disk.
|
String |
dedicatedHostId
The ID of the dedicated host.
|
String |
destinationResource
The resource type to query.
|
String |
instanceChargeType
The billing method of the resource.
|
String |
instanceType
The instance types.
|
String |
ioOptimized
Specifies whether the instance is an I/O optimized instance.
|
Float |
memory
The memory size of the instance type.
|
String |
networkCategory
The network type of the cluster.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The ID of the region for which to query resources.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
resourceType
The type of the resource.
|
String |
scope
The scope of the reserved instance.
|
Integer |
spotDuration
The protection period of the preemptible instance.
|
String |
spotStrategy
The bidding policy for pay-as-you-go instances.
|
String |
systemDiskCategory
The category of the system disk.
|
String |
zoneId
The ID of the zone where the instance resides.
|
构造器和说明 |
---|
DescribeAvailableResourceRequest() |
@NameInMap(value="Cores") public Integer cores
The number of vCPUs of the instance type. For more information, see [Instance families](~~25378~~).
The Cores parameter takes effect only when the DestinationResource parameter is set to InstanceType.
@NameInMap(value="DataDiskCategory") public String dataDiskCategory
The type of the data disk. Valid values:
* cloud: basic disk.
* cloud_efficiency: ultra disk.
* cloud_ssd: standard SSD.
* ephemeral_ssd: local SSD.
* cloud_essd: ESSD.
@NameInMap(value="DedicatedHostId") public String dedicatedHostId
The ID of the dedicated host.
@NameInMap(value="DestinationResource") public String destinationResource
The resource type to query. Valid values:
* 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.
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the resource. For more information, see [Billing overview](~~25398~~). Valid values:
* PrePaid: subscription.
* PostPaid: pay-as-you-go.
Default value: PostPaid.
@NameInMap(value="InstanceType") public String instanceType
The instance types. For more information, see [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list.
For more information about how to configure the InstanceType parameter, see the **Description** section of this topic.
@NameInMap(value="IoOptimized") public String ioOptimized
Specifies whether the instance is an I/O optimized instance. Valid values:
* none: The instance is a non-I/O optimized instance.
* optimized: The instance is an I/O optimized instance.
Default value: optimized.
@NameInMap(value="Memory") public Float memory
The memory size of the instance type. Unit: GiB. For more information, see [Instance families](~~25378~~).
The Memory parameter takes effect only when the DestinationResource parameter is set to InstanceType.
@NameInMap(value="NetworkCategory") public String networkCategory
The network type of the cluster. Valid values:
* vpc
* classic
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The ID of the region for which to query resources. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="ResourceType") public String resourceType
The type of the resource. Valid values:
* instance: ECS instance.
* disk: cloud disk.
* reservedinstance: reserved instance.
* ddh: dedicated host.
@NameInMap(value="Scope") public String scope
The scope of the reserved instance. Valid values:
* Region: regional.
* Zone: zonal.
@NameInMap(value="SpotDuration") public Integer spotDuration
The protection period of the preemptible instance. Unit: hours. Valid values: 0, 1, 2, 3, 4, 5, and 6.
* The following protection periods are available in invitational preview: 2, 3, 4, 5, and 6 hours. If you want to set this parameter to one of these values, submit a ticket.
* If this parameter is set to 0, no protection period is configured for the preemptible instance.
Default value: 1.
@NameInMap(value="SpotStrategy") public String spotStrategy
The bidding policy for pay-as-you-go instances. Valid values:
* 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.
@NameInMap(value="SystemDiskCategory") public String systemDiskCategory
The category of the system disk. Valid values:
* cloud: basic disk.
* cloud_efficiency: ultra disk.
* cloud_ssd: standard SSD.
* ephemeral_ssd: local SSD.
* cloud_essd: enhanced SSD (ESSD).
Default value: cloud_efficiency.
> When the ResourceType parameter is set to instance and the DestinationResource parameter is set to DataDisk, you must set the SystemDiskCategory parameter. If you do not set this parameter, the default value takes effect.
@NameInMap(value="ZoneId") public String zoneId
The ID of the zone where the instance resides.
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 static DescribeAvailableResourceRequest build(Map<String,?> map) throws Exception
Exception
public DescribeAvailableResourceRequest setCores(Integer cores)
public Integer getCores()
public DescribeAvailableResourceRequest setDataDiskCategory(String dataDiskCategory)
public String getDataDiskCategory()
public DescribeAvailableResourceRequest setDedicatedHostId(String dedicatedHostId)
public String getDedicatedHostId()
public DescribeAvailableResourceRequest setDestinationResource(String destinationResource)
public String getDestinationResource()
public DescribeAvailableResourceRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public DescribeAvailableResourceRequest setInstanceType(String instanceType)
public String getInstanceType()
public DescribeAvailableResourceRequest setIoOptimized(String ioOptimized)
public String getIoOptimized()
public DescribeAvailableResourceRequest setMemory(Float memory)
public Float getMemory()
public DescribeAvailableResourceRequest setNetworkCategory(String networkCategory)
public String getNetworkCategory()
public DescribeAvailableResourceRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribeAvailableResourceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribeAvailableResourceRequest setRegionId(String regionId)
public String getRegionId()
public DescribeAvailableResourceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribeAvailableResourceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribeAvailableResourceRequest setResourceType(String resourceType)
public String getResourceType()
public DescribeAvailableResourceRequest setScope(String scope)
public String getScope()
public DescribeAvailableResourceRequest setSpotDuration(Integer spotDuration)
public Integer getSpotDuration()
public DescribeAvailableResourceRequest setSpotStrategy(String spotStrategy)
public String getSpotStrategy()
public DescribeAvailableResourceRequest setSystemDiskCategory(String systemDiskCategory)
public String getSystemDiskCategory()
public DescribeAvailableResourceRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2023. All rights reserved.