public class GetSpotPriceHistoryRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
endTime
The end time for querying historical spot instance prices.
|
String |
order
The sort order.
|
Integer |
pageNumber
The page number of the current page.
|
Integer |
pageSize
The number of entries per page.
|
String |
sortBy
The field to sort by.
|
Integer |
spotDuration
The retention period for the spot instance, in hours.
|
String |
startTime
The start time for querying historical spot instance prices.
|
| 构造器和说明 |
|---|
GetSpotPriceHistoryRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GetSpotPriceHistoryRequest |
build(Map<String,?> map) |
String |
getEndTime() |
String |
getOrder() |
Integer |
getPageNumber() |
Integer |
getPageSize() |
String |
getSortBy() |
Integer |
getSpotDuration() |
String |
getStartTime() |
GetSpotPriceHistoryRequest |
setEndTime(String endTime) |
GetSpotPriceHistoryRequest |
setOrder(String order) |
GetSpotPriceHistoryRequest |
setPageNumber(Integer pageNumber) |
GetSpotPriceHistoryRequest |
setPageSize(Integer pageSize) |
GetSpotPriceHistoryRequest |
setSortBy(String sortBy) |
GetSpotPriceHistoryRequest |
setSpotDuration(Integer spotDuration) |
GetSpotPriceHistoryRequest |
setStartTime(String startTime) |
@NameInMap(value="EndTime") public String endTime
The end time for querying historical spot instance prices. Specify the time in ISO 8601 format using UTC+0, as yyyy-MM-ddTHH:mm:ssZ. Default value: empty. An empty value means the current time.
example:2024-12-30T09:36:46Z
@NameInMap(value="Order") public String order
The sort order. Default value: asc. Valid values:
desc: descending order.
asc: ascending order.
This parameter applies only when you query historical prices for Lingjun instance types.
example:asc
@NameInMap(value="PageNumber") public Integer pageNumber
The page number of the current page. Default value: 1. This parameter applies only when you query historical prices for Lingjun instance types.
example:1
@NameInMap(value="PageSize") public Integer pageSize
The number of entries per page. Default value: 10. This parameter applies only when you query historical prices for Lingjun instance types.
example:10
@NameInMap(value="SortBy") public String sortBy
The field to sort by. Default value: GmtCreatedTime. Valid values:
This parameter applies only when you query historical prices for Lingjun instance types.
example:GmtCreatedTime
@NameInMap(value="SpotDuration") public Integer spotDuration
The retention period for the spot instance, in hours. Note that only ECS instance types support this parameter. Default value: 0. Valid values:
1: Alibaba Cloud guarantees that the instance runs for at least one hour after creation. After one hour, the system compares your bid price with the current market price and checks resource inventory to decide whether to retain or revoke the instance.
0: Alibaba Cloud does not guarantee one-hour runtime. The system compares your bid price with the current market price and checks resource inventory to decide whether to retain or revoke the instance.
0
@NameInMap(value="StartTime") public String startTime
The start time for querying historical spot instance prices. This time must be no more than seven days before the end time. Specify the time in ISO 8601 format using UTC+0, as yyyy-MM-ddTHH:mm:ssZ. Default value: empty. An empty value means three days before the end time.
example:2024-12-26T09:36:46Z
public static GetSpotPriceHistoryRequest build(Map<String,?> map) throws Exception
Exceptionpublic GetSpotPriceHistoryRequest setEndTime(String endTime)
public String getEndTime()
public GetSpotPriceHistoryRequest setOrder(String order)
public String getOrder()
public GetSpotPriceHistoryRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public GetSpotPriceHistoryRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public GetSpotPriceHistoryRequest setSortBy(String sortBy)
public String getSortBy()
public GetSpotPriceHistoryRequest setSpotDuration(Integer spotDuration)
public Integer getSpotDuration()
public GetSpotPriceHistoryRequest setStartTime(String startTime)
public String getStartTime()
Copyright © 2026. All rights reserved.