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 idempotence of the request.
|
String |
description
The description of the elasticity assurance.
|
Integer |
instanceAmount
The total number of instances for which to reserve capacity of an instance type.
|
Integer |
instanceCpuCoreCount
This parameter is no longer used.
|
List<String> |
instanceType
The instance type.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The term of the elasticity assurance.
|
String |
periodUnit
The unit of the term 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 ID of the zone in which to create 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.
example:Unlimited
@NameInMap(value="ClientToken") public String clientToken
The client token that you want to use to ensure the idempotence 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 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.
example:This is description.
@NameInMap(value="InstanceAmount") public Integer instanceAmount
The total number of instances for which to reserve capacity of an instance type.
Valid values: 1 to 1000.
example:2
@NameInMap(value="InstanceCpuCoreCount") public Integer instanceCpuCoreCount
example:This parameter is no longer used.
null
@NameInMap(value="InstanceType") public List<String> instanceType
The instance type. An elasticity assurance can be created to reserve the capacity of a single instance type.
This parameter is required.
example:ecs.c6.xlarge
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The term of the elasticity assurance. The unit of the term is determined by the PeriodUnit
value. Valid values:
PeriodUnit
is set to Month
, the valid values are 1, 2, 3, 4, 5, 6, 7, 8, and 9.PeriodUnit
is set to Year
, the valid values are 1, 2, 3, 4, and 5.Default value: 1.
example:1
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the term of the elasticity assurance. Valid values:
Default value: Year.
example:Year
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the elasticity assurance. 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 to assign the elasticity assurance.
example:rg-bp67acfmxazb4p****
@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.
2020-10-30T06:32:00Z
@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 © 2024. All rights reserved.