public class DescribePriceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
DescribePriceRequest.DescribePriceRequestDataDisk |
static class |
DescribePriceRequest.DescribePriceRequestSchedulerOptions |
static class |
DescribePriceRequest.DescribePriceRequestSystemDisk |
限定符和类型 | 字段和说明 |
---|---|
Integer |
amount
The number of ECS instances.
|
String |
assuranceTimes
The total number of times that the elasticity assurance can be applied.
|
Integer |
capacity
The storage capacity.
|
List<DescribePriceRequest.DescribePriceRequestDataDisk> |
dataDisk |
String |
dedicatedHostType
The type of the dedicated host.
|
String |
imageId
This parameter takes effect only when ResourceType is set to instance.
|
Integer |
instanceAmount
The total number of reserved instances for an instance type.
|
Integer |
instanceCpuCoreCount
The total number of vCPUs supported by the elasticity assurance.
|
String |
instanceNetworkType
The network type of the instance.
|
String |
instanceType
The instance type.
|
List<String> |
instanceTypeList
The instance types.
|
String |
internetChargeType
The billing method for network usage.
|
Integer |
internetMaxBandwidthOut
The maximum outbound public bandwidth.
|
String |
ioOptimized
Specifies whether the instance is I/O optimized.
|
String |
isp
The Internet service provider (ISP).
|
String |
offeringType
The payment option of the reserved instance.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The billing cycle of the ECS instance.
|
String |
platform
The operating system of the image that is used by the instance.
|
String |
priceUnit
The pricing unit of the ECS resource.
|
String |
regionId
The region ID.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
resourceType
The resource type.
|
DescribePriceRequest.DescribePriceRequestSchedulerOptions |
schedulerOptions |
String |
scope
The scope of the reserved instance.
|
Integer |
spotDuration
The protection period of the preemptible instance.
|
String |
spotStrategy
The bidding policy for the pay-as-you-go instance.
|
DescribePriceRequest.DescribePriceRequestSystemDisk |
systemDisk |
String |
zoneId
The zone ID.
|
构造器和说明 |
---|
DescribePriceRequest() |
@NameInMap(value="DataDisk") public List<DescribePriceRequest.DescribePriceRequestDataDisk> dataDisk
@NameInMap(value="SchedulerOptions") public DescribePriceRequest.DescribePriceRequestSchedulerOptions schedulerOptions
@NameInMap(value="SystemDisk") public DescribePriceRequest.DescribePriceRequestSystemDisk systemDisk
@NameInMap(value="Amount") public Integer amount
The number of ECS instances. You can specify this parameter when you want to query the prices of multiple instances that have specific specifications. Valid values: 1 to 1000.
Default value: 1.
example:1
@NameInMap(value="AssuranceTimes") public String assuranceTimes
The total number of times that the elasticity assurance can be applied. Set the value to Unlimited. This value indicates that the elasticity assurance can be applied an unlimited number of times within its effective period.
Default value: Unlimited.
example:Unlimited
@NameInMap(value="Capacity") public Integer capacity
The storage capacity. Unit: GiB.
example:1024
@NameInMap(value="DedicatedHostType") public String dedicatedHostType
The type of the dedicated host. You can call the DescribeDedicatedHostTypes operation to query the most recent list of dedicated host types.
example:ddh.c5
@NameInMap(value="ImageId") public String imageId
This parameter takes effect only when ResourceType is set to instance.
The image ID. Images contain the runtime environments to load when instances start. You can call the DescribeImages operation to query available images. If you do not specify this parameter, the system queries the prices of Linux images.
example:centos_7_05_64_20G_alibase_20181212.vhd
@NameInMap(value="InstanceAmount") public Integer instanceAmount
The total number of reserved instances for an instance type.
Valid values: 1 to 1000.
example:100
@NameInMap(value="InstanceCpuCoreCount") public Integer instanceCpuCoreCount
The total number of vCPUs supported by the elasticity assurance. When you call this API operation, the system calculates the number of instances that an elasticity assurance must support based on the specified value of InstanceType. The calculated value is rounded up to the nearest integer.
example:When you call this API operation to query the price of an elasticity assurance, you can only specify either InstanceCoreCpuCount or InstanceAmount.
1024
@NameInMap(value="InstanceNetworkType") public String instanceNetworkType
The network type of the instance. Valid values:
Default value: vpc.
example:vpc
@NameInMap(value="InstanceType") public String instanceType
The instance type. When ResourceType
is set to instance
, you must specify this parameter. For more information, see Instance families or call the DescribeInstanceTypes operation to query the most recent list of instance types.
ecs.g6.large
@NameInMap(value="InstanceTypeList") public List<String> instanceTypeList
The instance types. You can select only a single instance type when you configure an elasticity assurance in unlimited mode.
example:ecs.g6.xlarge
@NameInMap(value="InternetChargeType") public String internetChargeType
The billing method for network usage. Valid values:
Default value: PayByTraffic
example:PayByTraffic
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.
Default value: 0.
example:5
@NameInMap(value="IoOptimized") public String ioOptimized
Specifies whether the instance is I/O optimized. Valid values:
When the instance type specified by the InstanceType parameter belongs to Generation I instance families, the default value of this parameter is none.
When the instance type specified by the InstanceType parameter does not belong to Generation I instance families, the default value of this parameter is optimized.
example:optimized
@NameInMap(value="Isp") public String isp
The Internet service provider (ISP). Valid values:
cmcc
@NameInMap(value="OfferingType") public String offeringType
The payment option of the reserved instance. Valid values:
All Upfront
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The billing cycle of the ECS instance. Valid values:
Default value: 1.
example:1
@NameInMap(value="Platform") public String platform
The operating system of the image that is used by the instance. Valid values:
Linux
@NameInMap(value="PriceUnit") public String priceUnit
The pricing unit of the ECS resource. Valid values:
Year
@NameInMap(value="RegionId") public String regionId
The region ID. You can call the DescribeRegions operation to query the most recent list of regions.
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 resource type. Valid values:
instance
, you must specify InstanceType
.disk
, you must specify DataDisk.1.Category
and DataDisk.1.Size
.ElasticityAssurance
, you must specify InstanceType
.CapacityReservation
, you must specify InstanceType
.Default value: instance.
example:instance
@NameInMap(value="Scope") public String scope
The scope of the reserved instance. Valid values:
Default value: Region.
example:Zone
@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 when SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
1
@NameInMap(value="SpotStrategy") public String spotStrategy
The bidding policy for the pay-as-you-go instance. Valid values:
Default value: NoSpot.
example:This parameter takes effect only when
PriceUnit
is set to Hour andPeriod
is set to 1. The default value ofPriceUnit
isHour
and the default value ofPeriod
is1
. Therefore, you do not need to setPriceUnit
orPeriod
when you set SpotStrategy.
NoSpot
@NameInMap(value="ZoneId") public String zoneId
The zone ID.
example:Prices of preemptible instances vary based on zones. When you query the price of a preemptible instance, specify ZoneId.
cn-hagzhou-i
public static DescribePriceRequest build(Map<String,?> map) throws Exception
Exception
public DescribePriceRequest setDataDisk(List<DescribePriceRequest.DescribePriceRequestDataDisk> dataDisk)
public List<DescribePriceRequest.DescribePriceRequestDataDisk> getDataDisk()
public DescribePriceRequest setSchedulerOptions(DescribePriceRequest.DescribePriceRequestSchedulerOptions schedulerOptions)
public DescribePriceRequest.DescribePriceRequestSchedulerOptions getSchedulerOptions()
public DescribePriceRequest setSystemDisk(DescribePriceRequest.DescribePriceRequestSystemDisk systemDisk)
public DescribePriceRequest.DescribePriceRequestSystemDisk getSystemDisk()
public DescribePriceRequest setAmount(Integer amount)
public Integer getAmount()
public DescribePriceRequest setAssuranceTimes(String assuranceTimes)
public String getAssuranceTimes()
public DescribePriceRequest setCapacity(Integer capacity)
public Integer getCapacity()
public DescribePriceRequest setDedicatedHostType(String dedicatedHostType)
public String getDedicatedHostType()
public DescribePriceRequest setImageId(String imageId)
public String getImageId()
public DescribePriceRequest setInstanceAmount(Integer instanceAmount)
public Integer getInstanceAmount()
public DescribePriceRequest setInstanceCpuCoreCount(Integer instanceCpuCoreCount)
public Integer getInstanceCpuCoreCount()
public DescribePriceRequest setInstanceNetworkType(String instanceNetworkType)
public String getInstanceNetworkType()
public DescribePriceRequest setInstanceType(String instanceType)
public String getInstanceType()
public DescribePriceRequest setInstanceTypeList(List<String> instanceTypeList)
public DescribePriceRequest setInternetChargeType(String internetChargeType)
public String getInternetChargeType()
public DescribePriceRequest setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public Integer getInternetMaxBandwidthOut()
public DescribePriceRequest setIoOptimized(String ioOptimized)
public String getIoOptimized()
public DescribePriceRequest setIsp(String isp)
public String getIsp()
public DescribePriceRequest setOfferingType(String offeringType)
public String getOfferingType()
public DescribePriceRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribePriceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribePriceRequest setPeriod(Integer period)
public Integer getPeriod()
public DescribePriceRequest setPlatform(String platform)
public String getPlatform()
public DescribePriceRequest setPriceUnit(String priceUnit)
public String getPriceUnit()
public DescribePriceRequest setRegionId(String regionId)
public String getRegionId()
public DescribePriceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribePriceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribePriceRequest setResourceType(String resourceType)
public String getResourceType()
public DescribePriceRequest setScope(String scope)
public String getScope()
public DescribePriceRequest setSpotDuration(Integer spotDuration)
public Integer getSpotDuration()
public DescribePriceRequest setSpotStrategy(String spotStrategy)
public String getSpotStrategy()
public DescribePriceRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.