public static final class DescribePriceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DescribePriceRequest.Builder |
amount(Integer amount)
The number of ECS instances.
|
DescribePriceRequest.Builder |
assuranceTimes(String assuranceTimes)
The total number of times that the elasticity assurance can be applied.
|
DescribePriceRequest |
build() |
DescribePriceRequest.Builder |
capacity(Integer capacity)
The storage capacity.
|
DescribePriceRequest.Builder |
dataDisk(List<DescribePriceRequest.DataDisk> dataDisk)
DataDisk.
|
DescribePriceRequest.Builder |
dedicatedHostType(String dedicatedHostType)
The dedicated host type.
|
DescribePriceRequest.Builder |
imageId(String imageId)
The ID of the image.
|
DescribePriceRequest.Builder |
instanceAmount(Integer instanceAmount)
The total number of instances for which to reserve the capacity of an instance type.
|
DescribePriceRequest.Builder |
instanceCpuCoreCount(Integer instanceCpuCoreCount)
The total number of vCPUs supported by the elasticity assurance.
|
DescribePriceRequest.Builder |
instanceNetworkType(String instanceNetworkType)
The network type of the instance.
|
DescribePriceRequest.Builder |
instanceType(String instanceType)
The instance type of the instance.
|
DescribePriceRequest.Builder |
instanceTypeList(List<String> instanceTypeList)
The instance type.
|
DescribePriceRequest.Builder |
internetChargeType(String internetChargeType)
The billing method for network usage.
|
DescribePriceRequest.Builder |
internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
The maximum outbound public bandwidth.
|
DescribePriceRequest.Builder |
ioOptimized(String ioOptimized)
Specifies whether the instance is I/O optimized.
|
DescribePriceRequest.Builder |
isp(String isp)
The Internet service provider (ISP).
|
DescribePriceRequest.Builder |
offeringType(String offeringType)
The payment option of the reserved instance.
|
DescribePriceRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DescribePriceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DescribePriceRequest.Builder |
period(Integer period)
The billing duration of the ECS instance.
|
DescribePriceRequest.Builder |
platform(String platform)
The operating system of the image used by the instance.
|
DescribePriceRequest.Builder |
priceUnit(String priceUnit)
The pricing unit of the ECS resource.
|
DescribePriceRequest.Builder |
regionId(String regionId)
The ID of the region.
|
DescribePriceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DescribePriceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DescribePriceRequest.Builder |
resourceType(String resourceType)
The type of the resource.
|
DescribePriceRequest.Builder |
schedulerOptions(DescribePriceRequest.SchedulerOptions schedulerOptions)
SchedulerOptions.
|
DescribePriceRequest.Builder |
scope(String scope)
The scope of the reserved instance.
|
DescribePriceRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
DescribePriceRequest.Builder |
spotDuration(Integer spotDuration)
The protection period of the preemptible instance.
|
DescribePriceRequest.Builder |
spotStrategy(String spotStrategy)
The preemption policy for the pay-as-you-go instance.
|
DescribePriceRequest.Builder |
systemDisk(DescribePriceRequest.SystemDisk systemDisk)
SystemDisk.
|
DescribePriceRequest.Builder |
zoneId(String zoneId)
The ID of the zone.
|
public DescribePriceRequest.Builder dataDisk(List<DescribePriceRequest.DataDisk> dataDisk)
public DescribePriceRequest.Builder schedulerOptions(DescribePriceRequest.SchedulerOptions schedulerOptions)
public DescribePriceRequest.Builder systemDisk(DescribePriceRequest.SystemDisk systemDisk)
public DescribePriceRequest.Builder sourceRegionId(String sourceRegionId)
public DescribePriceRequest.Builder amount(Integer amount)
Default value: 1.
public DescribePriceRequest.Builder assuranceTimes(String assuranceTimes)
Default value: Unlimited.
public DescribePriceRequest.Builder capacity(Integer capacity)
public DescribePriceRequest.Builder dedicatedHostType(String dedicatedHostType)
public DescribePriceRequest.Builder imageId(String imageId)
public DescribePriceRequest.Builder instanceAmount(Integer instanceAmount)
Valid values: 1 to 1000.
public DescribePriceRequest.Builder instanceCpuCoreCount(Integer instanceCpuCoreCount)
> When you call this API operation to query the price of an elasticity assurance, you can only specify either InstanceCoreCpuCount or InstanceAmount.
public DescribePriceRequest.Builder instanceNetworkType(String instanceNetworkType)
* classic: classic network * vpc: Virtual Private Cloud (VPC) Default value: vpc.
public DescribePriceRequest.Builder instanceType(String instanceType)
public DescribePriceRequest.Builder instanceTypeList(List<String> instanceTypeList)
public DescribePriceRequest.Builder internetChargeType(String internetChargeType)
* PayByBandwidth: pay-by-bandwidth * PayByTraffic: pay-by-traffic Default value: PayByTraffic.
public DescribePriceRequest.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
Default value: 0.
public DescribePriceRequest.Builder ioOptimized(String ioOptimized)
* none: The instance is not I/O optimized. * optimized: The instance is I/O optimized. If the instance type specified by the InstanceType parameter belongs to [Generation I instance families](~~55263~~), the default value of IoOptimized is none. If the instance type specified by the InstanceType parameter does not belong to [Generation I instance families](~~55263~~), the default value of IoOptimized is optimized.
public DescribePriceRequest.Builder isp(String isp)
* cmcc: China Mobile * telecom: China Telecom * unicom: China Unicom * multiCarrier: multi-line ISP
public DescribePriceRequest.Builder offeringType(String offeringType)
* No Upfront * Partial Upfront * All Upfront
public DescribePriceRequest.Builder ownerAccount(String ownerAccount)
public DescribePriceRequest.Builder ownerId(Long ownerId)
public DescribePriceRequest.Builder period(Integer period)
* Valid values when PriceUnit is set to Month: 1, 2, 3, 4, 5, 6, 7, 8, and 9. * Valid values when PriceUnit is set to Year: 1, 2, 3, 4, and 5. * Valid value when PriceUnit is set to Hour: 1. * Valid values when PriceUnit is set to Week: 1, 2, 3, and 4. Default value: 1.
public DescribePriceRequest.Builder platform(String platform)
* Windows: Windows Server operating systems * Linux: Linux and UNIX-like operating systems
public DescribePriceRequest.Builder priceUnit(String priceUnit)
* Month * Year * Hour * Week
public DescribePriceRequest.Builder regionId(String regionId)
public DescribePriceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribePriceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribePriceRequest.Builder resourceType(String resourceType)
* instance: queries the most recent prices of ECS instances. When this parameter is set to `instance`, you must specify the `InstanceType` parameter. * disk: queries the most recent prices of cloud disks. When this parameter is set to `disk`, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. * bandwidth: queries the most recent prices for network usage. * ddh: queries the most recent prices of dedicated hosts. * ElasticityAssurance: queries the most recent prices of elasticity assurances. When this parameter is set to `ElasticityAssurance`, you must specify the `InstanceType` parameter. * CapacityReservation: queries the most recent prices of capacity reservations. When this parameter is set to `CapacityReservation`, you must specify the `InstanceType` parameter. Default value: instance.
public DescribePriceRequest.Builder scope(String scope)
* Region: regional * Zone: zonal Default value: Region.
public DescribePriceRequest.Builder spotDuration(Integer spotDuration)
* The following protection periods are unavailable: 2, 3, 4, 5, and 6 hours. If you want to set this parameter to one of these values, [submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket) and enter the following information: - The specifications and number of the resources. Example: ecs.g6.8xlarge 1000. - The region where the resources reside. Example: China (Beijing). - The period of time during which the resources are used every day. Example: 1:00 to 4: 00 every day. * If this parameter is set to 0, no protection period is configured for the preemptible instance. Default value: 1.
public DescribePriceRequest.Builder spotStrategy(String spotStrategy)
* NoSpot: The instance is a regular 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 bidding price. The market price can be up to the pay-as-you-go price. Default value: NoSpot. > This parameter is valid only when the `PriceUnit` parameter is set to Hour and the `Period` parameter is set to 1. The default value of the `PriceUnit` parameter is `Hour` and the default value of the `Period` parameter is `1`. Therefore, you do not need to set the `PriceUnit` and `Period` parameters when you set the SpotStrategy parameter.
public DescribePriceRequest.Builder zoneId(String zoneId)
> Prices of preemptible instances vary based on zones. When you query the price of a preemptible instance, specify the ZoneId parameter.
public DescribePriceRequest build()
Copyright © 2023. All rights reserved.