public class DescribeAvailableResourceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Integer |
cores
The number of vCPUs of the instance type.
|
String |
dataDiskCategory
The category 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.
The Cores parameter takes effect only when the DestinationResource parameter is set to InstanceType.
example:2
@NameInMap(value="DataDiskCategory") public String dataDiskCategory
The category of the data disk. Valid values:
cloud_ssd
@NameInMap(value="DedicatedHostId") public String dedicatedHostId
The ID of the dedicated host.
example:dh-bp165p6xk2tlw61e****
@NameInMap(value="DestinationResource") public String destinationResource
The resource type to query. Valid values:
For more information about how to configure the DestinationResource parameter, see the Description section of this topic.
This parameter is required.
example:InstanceType
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the resource. For more information, see Billing overview. Valid values:
Default value: PostPaid.
example:PrePaid
@NameInMap(value="InstanceType") public String instanceType
The instance types. For more information, see Instance families or call the DescribeInstanceTypes 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.
example:ecs.g5.large
@NameInMap(value="IoOptimized") public String ioOptimized
Specifies whether the instance is an I/O optimized instance. Valid values:
Default value: optimized.
example:optimized
@NameInMap(value="Memory") public Float memory
The memory size of the instance type. Unit: GiB. For more information, see Instance families.
The Memory parameter takes effect only when the DestinationResource parameter is set to InstanceType.
example:8.0
@NameInMap(value="NetworkCategory") public String networkCategory
The network type of the cluster. Valid values:
vpc
@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 operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@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
@NameInMap(value="Scope") public String scope
The scope of the reserved instance. Valid values:
Region
@NameInMap(value="SpotDuration") public Integer spotDuration
The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values:
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.
example:This parameter takes effect only if SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
1
@NameInMap(value="SpotStrategy") public String spotStrategy
The bidding policy for pay-as-you-go instances. Valid values:
Default value: NoSpot.
The SpotStrategy parameter takes effect only when the InstanceChargeType parameter is set to PostPaid.
example:NoSpot
@NameInMap(value="SystemDiskCategory") public String systemDiskCategory
The category of the system disk. Valid values:
Default value: cloud_efficiency.
example: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.
cloud_ssd
@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
.
cn-hangzhou-e
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 © 2024. All rights reserved.