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 type of the dedicated host.
|
DescribePriceRequest.Builder |
imageId(String imageId)
This parameter takes effect only when ResourceType is set to instance.
|
DescribePriceRequest.Builder |
instanceAmount(Integer instanceAmount)
The total number of reserved instances for 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.
|
DescribePriceRequest.Builder |
instanceTypeList(List<String> instanceTypeList)
The instance types.
|
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 cycle of the ECS instance.
|
DescribePriceRequest.Builder |
platform(String platform)
The operating system of the image that is used by the instance.
|
DescribePriceRequest.Builder |
priceUnit(String priceUnit)
The pricing unit of the ECS resource.
|
DescribePriceRequest.Builder |
regionId(String regionId)
The region ID.
|
DescribePriceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DescribePriceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DescribePriceRequest.Builder |
resourceType(String resourceType)
The resource type.
|
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 bidding policy for the pay-as-you-go instance.
|
DescribePriceRequest.Builder |
systemDisk(DescribePriceRequest.SystemDisk systemDisk)
SystemDisk.
|
DescribePriceRequest.Builder |
zoneId(String zoneId)
The zone ID.
|
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)
The image ID. Images contain the runtime environments to load when instances start. You can call the [DescribeImages](~~25534~~) operation to query available images. If you do not specify this parameter, the system queries the prices of Linux images.
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. When the instance type specified by the InstanceType parameter belongs to [Generation I instance families](~~55263~~), 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](~~55263~~), the default value of this parameter 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. * Set the value to 1 when PriceUnit is set to Hour. Default value: 1.
public DescribePriceRequest.Builder platform(String platform)
* Windows: Windows Server operating system * Linux: Linux and UNIX-like operating system
public DescribePriceRequest.Builder priceUnit(String priceUnit)
* Month * Year * Hour (default)
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 `InstanceType`. * disk: queries the most recent prices of cloud disks. When this parameter is set to `disk`, you must specify `DataDisk.1.Category` and `DataDisk.1.Size`. * bandwidth: queries the most recent prices of 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 `InstanceType`. * CapacityReservation: queries the most recent prices of capacity reservations. When this parameter is set to `CapacityReservation`, you must specify `InstanceType`. Default value: instance.
public DescribePriceRequest.Builder scope(String scope)
* Region: regional * Zone: zonal Default value: Region.
public DescribePriceRequest.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 when SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
public DescribePriceRequest.Builder spotStrategy(String spotStrategy)
* NoSpot: The instance is a regular pay-as-you-go instance. * SpotWithPriceLimit: The instance is created as a preemptible instance that has a user-defined maximum hourly price. * SpotAsPriceGo: The instance is created as a preemptible instance whose bid price is based on the market price at the time of purchase. The market price can be up to the pay-as-you-go price. Default value: NoSpot. > This parameter takes effect only when `PriceUnit` is set to Hour and `Period` is set to 1. The default value of `PriceUnit` is `Hour` and the default value of `Period` is `1`. Therefore, you do not need to set `PriceUnit` or `Period` when you set SpotStrategy.
public DescribePriceRequest.Builder zoneId(String zoneId)
> Prices of preemptible instances vary based on zones. When you query the price of a preemptible instance, specify ZoneId.
public DescribePriceRequest build()
Copyright © 2024. All rights reserved.