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 idempotency 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 the capacity of an instance type is reserved.
|
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 you want to assign the capacity reservation.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
startTime
The mode in which 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 you want 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 idempotency of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token
can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
0c593ea1-3bea-11e9-b96b-88e9fe637760
@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.
example:This is description.
@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.
2021-10-30T06:32:00Z
@NameInMap(value="EndTimeType") public String endTimeType
The release mode of the capacity reservation. Valid values:
EndTime
parameter.Unlimited
@NameInMap(value="InstanceAmount") public Integer instanceAmount
The total number of instances for which the capacity of an instance type is reserved.
This parameter is required.
example:2
@NameInMap(value="InstanceType") public String instanceType
The instance type. You can create a capacity reservation to reserve the capacity of only one instance type. You can call the DescribeInstanceTypes operation to query the instance types provided by ECS.
This parameter is required.
example:ecs.g6.xlarge
@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 the operating system of a regional reserved instance, you can apply the regional reserved instance to offset fees of the unused capacity of the capacity reservation. Valid values:
Default value: Linux.
example:This parameter is unavailable.
Linux
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the capacity reservation. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which you want to assign the capacity reservation.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StartTime") public String startTime
The mode in which the capacity reservation takes effect. You can call the CreateCapacityReservation operation to create only immediate capacity reservations.
example:If you do not specify this parameter, the capacity reservation immediately takes effect.
2021-10-30T05:32:00Z
@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 © 2024. All rights reserved.