public static final class DescribeSpotPriceHistoryRequest.Builder extends Object
public DescribeSpotPriceHistoryRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeSpotPriceHistoryRequest.Builder endTime(String endTime)
This parameter is empty by default. If this parameter is empty, the current time is used.
public DescribeSpotPriceHistoryRequest.Builder instanceType(String instanceType)
This parameter is empty by default. If this parameter is empty, the time that is 3 hours earlier than the specified EndTime value is used.
public DescribeSpotPriceHistoryRequest.Builder ioOptimized(String ioOptimized)
* optimized: The instance is I/O optimized. * none: The instance is not I/O optimized. For instances of generation I instance families, the default value is none. For instances of other instance families, the default value is optimized.
public DescribeSpotPriceHistoryRequest.Builder networkType(String networkType)
* classic: classic network * vpc: Virtual Private Cloud (VPC)
public DescribeSpotPriceHistoryRequest.Builder OSType(String OSType)
- linux - windows
public DescribeSpotPriceHistoryRequest.Builder offset(Integer offset)
Default value: 0
public DescribeSpotPriceHistoryRequest.Builder ownerAccount(String ownerAccount)
public DescribeSpotPriceHistoryRequest.Builder ownerId(Long ownerId)
public DescribeSpotPriceHistoryRequest.Builder regionId(String regionId)
public DescribeSpotPriceHistoryRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeSpotPriceHistoryRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeSpotPriceHistoryRequest.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 if you set SpotStrategy to SpotWithPriceLimit or SpotAsPriceGo.
public DescribeSpotPriceHistoryRequest.Builder startTime(String startTime)
This parameter is left empty by default. If this parameter is empty, the time that is 3 hours earlier than the value of EndTime is used.
public DescribeSpotPriceHistoryRequest.Builder zoneId(String zoneId)
public DescribeSpotPriceHistoryRequest build()
Copyright © 2024. All rights reserved.