public class CreateCapacityReservationRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateCapacityReservationRequest.CreateCapacityReservationRequestPrivatePoolOptions |
static class |
CreateCapacityReservationRequest.CreateCapacityReservationRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the capacity reservation.
|
String |
endTime
The time when the capacity reservation expires.
|
String |
endTimeType
The release mode of the capacity reservation.
|
Integer |
instanceAmount
The total number of instances for which to reserve the capacity of an instance type.
|
String |
instanceType
The instance type.
|
String |
ownerAccount |
Long |
ownerId |
String |
platform
The operating system of the image used by the instance.
|
CreateCapacityReservationRequest.CreateCapacityReservationRequestPrivatePoolOptions |
privatePoolOptions |
String |
regionId
The ID of the region in which to create the capacity reservation.
|
String |
resourceGroupId
The ID of the resource group to which to assign the capacity reservation.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
startTime
The time when the capacity reservation takes effect.
|
List<CreateCapacityReservationRequest.CreateCapacityReservationRequestTag> |
tag
The tags to add to the capacity reservation.
|
List<String> |
zoneId
The ID of the zone in which to create the capacity reservation.
|
构造器和说明 |
---|
CreateCapacityReservationRequest() |
@NameInMap(value="PrivatePoolOptions") public CreateCapacityReservationRequest.CreateCapacityReservationRequestPrivatePoolOptions privatePoolOptions
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate a client token. Make sure that a unique client token is used for each request. The `ClientToken` value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="Description") public String description
The description of the capacity reservation. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
This parameter is empty by default.
@NameInMap(value="EndTime") public String endTime
The time when the capacity reservation expires. Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC. For more information, see [ISO 8601](~~25696~~).
@NameInMap(value="EndTimeType") public String endTimeType
The release mode of the capacity reservation. Valid values:
* Limited: The capacity reservation is automatically released at the specified time. If you specify this parameter, you must also specify the `EndTime` parameter.
* Unlimited: The capacity reservation must be manually released. You can release it anytime.
@NameInMap(value="InstanceAmount") public Integer instanceAmount
The total number of instances for which to reserve the capacity of an instance type.
@NameInMap(value="InstanceType") public String instanceType
The instance type. A capacity reservation can be created to reserve the capacity of only a single instance type. You can call the [DescribeInstanceTypes](~~25620~~) operation to query the instance types provided by ECS.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Platform") public String platform
The operating system of the image used by the instance. This parameter corresponds to the `Platform` parameter of regional reserved instances. If the operating system of a capacity reservation matches that of a regional reserved instance, the regional reserved instance can be applied to offset bills of the unused capacity of the capacity reservation. Valid values:
* Windows: Windows Server operating system.
* Linux: Linux and UNIX-like operating system.
Default value: Linux.
> This parameter is unavailable for public use.
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the capacity reservation. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the capacity reservation.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StartTime") public String startTime
The time when the capacity reservation takes effect. The CreateCapacityReservation operation can be called to create only immediate capacity reservations.
> If you do not specify this parameter, the capacity reservation takes effect immediately.
@NameInMap(value="Tag") public List<CreateCapacityReservationRequest.CreateCapacityReservationRequestTag> tag
The tags to add to the capacity reservation.
public static CreateCapacityReservationRequest build(Map<String,?> map) throws Exception
Exception
public CreateCapacityReservationRequest setPrivatePoolOptions(CreateCapacityReservationRequest.CreateCapacityReservationRequestPrivatePoolOptions privatePoolOptions)
public CreateCapacityReservationRequest.CreateCapacityReservationRequestPrivatePoolOptions getPrivatePoolOptions()
public CreateCapacityReservationRequest setClientToken(String clientToken)
public String getClientToken()
public CreateCapacityReservationRequest setDescription(String description)
public String getDescription()
public CreateCapacityReservationRequest setEndTime(String endTime)
public String getEndTime()
public CreateCapacityReservationRequest setEndTimeType(String endTimeType)
public String getEndTimeType()
public CreateCapacityReservationRequest setInstanceAmount(Integer instanceAmount)
public Integer getInstanceAmount()
public CreateCapacityReservationRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateCapacityReservationRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateCapacityReservationRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateCapacityReservationRequest setPlatform(String platform)
public String getPlatform()
public CreateCapacityReservationRequest setRegionId(String regionId)
public String getRegionId()
public CreateCapacityReservationRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateCapacityReservationRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateCapacityReservationRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateCapacityReservationRequest setStartTime(String startTime)
public String getStartTime()
public CreateCapacityReservationRequest setTag(List<CreateCapacityReservationRequest.CreateCapacityReservationRequestTag> tag)
public List<CreateCapacityReservationRequest.CreateCapacityReservationRequestTag> getTag()
public CreateCapacityReservationRequest setZoneId(List<String> zoneId)
Copyright © 2023. All rights reserved.