public class CreateElasticityAssuranceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestPrivatePoolOptions |
static class |
CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
assuranceTimes
The total number of times that the elasticity assurance can be applied.
|
String |
clientToken
The client token that you want to use to ensure the idempotency of the request.
|
String |
description
The description of the elasticity assurance.
|
Integer |
instanceAmount
The total number of instances for which to reserve the capacity of an instance type.
|
Integer |
instanceCpuCoreCount
> This parameter is no longer used.
|
List<String> |
instanceType
The instance type of the instance.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The effective duration of the elasticity assurance.
|
String |
periodUnit
The unit of the effective duration of the elasticity assurance.
|
CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestPrivatePoolOptions |
privatePoolOptions |
String |
regionId
The ID of the region in which to create the elasticity assurance.
|
String |
resourceGroupId
The ID of the resource group to which to assign the elasticity assurance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
startTime
The time when the elasticity assurance takes effect.
|
List<CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestTag> |
tag
The tags to add to the elasticity assurance.
|
List<String> |
zoneId
The zone ID of the elasticity assurance.
|
构造器和说明 |
---|
CreateElasticityAssuranceRequest() |
@NameInMap(value="PrivatePoolOptions") public CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestPrivatePoolOptions privatePoolOptions
@NameInMap(value="AssuranceTimes") public String assuranceTimes
The total number of times that the elasticity assurance can be applied. Set the value to Unlimited. This value indicates that the elasticity assurance can be applied an unlimited number of times within its effective duration.
Default value: Unlimited.
@NameInMap(value="ClientToken") public String clientToken
The client token that you want to use to ensure the idempotency of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. 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 elasticity assurance. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`.
This parameter is empty by default.
@NameInMap(value="InstanceAmount") public Integer instanceAmount
The total number of instances for which to reserve the capacity of an instance type.
Valid values: 1 to 1000.
@NameInMap(value="InstanceCpuCoreCount") public Integer instanceCpuCoreCount
> This parameter is no longer used.
@NameInMap(value="InstanceType") public List<String> instanceType
The instance type of the instance. An elasticity assurance can be created to reserve the capacity of a single instance type.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The effective duration of the elasticity assurance. The unit of the effective duration is determined by the `PeriodUnit` value. Valid values:
* When the `PeriodUnit` parameter is set to `Month`, the valid values are 1, 2, 3, 4, 5, 6, 7, 8, and 9.
* When the `PeriodUnit` parameter is set to `Year`, the valid values are 1, 2, 3, 4, and 5.
Default value: 1.
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the effective duration of the elasticity assurance. Valid values:
* Month
* Year
Default value: Year.
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the elasticity assurance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the elasticity assurance.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StartTime") public String startTime
The time when the elasticity assurance takes effect. The default value is the time when the CreateElasticityAssurance operation is called to create the elasticity assurance. 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="Tag") public List<CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestTag> tag
The tags to add to the elasticity assurance.
public static CreateElasticityAssuranceRequest build(Map<String,?> map) throws Exception
Exception
public CreateElasticityAssuranceRequest setPrivatePoolOptions(CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestPrivatePoolOptions privatePoolOptions)
public CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestPrivatePoolOptions getPrivatePoolOptions()
public CreateElasticityAssuranceRequest setAssuranceTimes(String assuranceTimes)
public String getAssuranceTimes()
public CreateElasticityAssuranceRequest setClientToken(String clientToken)
public String getClientToken()
public CreateElasticityAssuranceRequest setDescription(String description)
public String getDescription()
public CreateElasticityAssuranceRequest setInstanceAmount(Integer instanceAmount)
public Integer getInstanceAmount()
public CreateElasticityAssuranceRequest setInstanceCpuCoreCount(Integer instanceCpuCoreCount)
public Integer getInstanceCpuCoreCount()
public CreateElasticityAssuranceRequest setInstanceType(List<String> instanceType)
public CreateElasticityAssuranceRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateElasticityAssuranceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateElasticityAssuranceRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateElasticityAssuranceRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public CreateElasticityAssuranceRequest setRegionId(String regionId)
public String getRegionId()
public CreateElasticityAssuranceRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateElasticityAssuranceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateElasticityAssuranceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateElasticityAssuranceRequest setStartTime(String startTime)
public String getStartTime()
public CreateElasticityAssuranceRequest setTag(List<CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestTag> tag)
public List<CreateElasticityAssuranceRequest.CreateElasticityAssuranceRequestTag> getTag()
public CreateElasticityAssuranceRequest setZoneId(List<String> zoneId)
Copyright © 2023. All rights reserved.