public class RenewReservedInstancesRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoRenew
The auto-renewal duration.
|
Integer |
autoRenewPeriod
The request ID.
|
String |
clientToken
Specifies whether to enable auto-renewal for the reserved instance.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The unit of the validity period of the reserved instance.
|
String |
periodUnit
The client token that is used to ensure the idempotence of the request.
|
String |
regionId
The validity period of the reserved instance.
|
List<String> |
reservedInstanceId
The ID of the reserved instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
RenewReservedInstancesRequest() |
@NameInMap(value="AutoRenew") public Boolean autoRenew
The auto-renewal duration. Unit: months. This parameter takes effect only when AutoRenew is set to true.
Valid values: 12 and 36. Default value: 12.
example:true
@NameInMap(value="AutoRenewPeriod") public Integer autoRenewPeriod
The request ID.
example:1
@NameInMap(value="ClientToken") public String clientToken
Specifies whether to enable auto-renewal for the reserved instance. Valid values:
Default value: false.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The unit of the validity period of the reserved instance.
Set the value to Year.
example:1
@NameInMap(value="PeriodUnit") public String periodUnit
The client token that is used 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.
example:Year
@NameInMap(value="RegionId") public String regionId
The validity period of the reserved instance.
Valid values: 1 and 3.
Default value: 1.
example:cn-hangzhou
@NameInMap(value="ReservedInstanceId") public List<String> reservedInstanceId
The ID of the reserved instance. You can call the DescribeReservedInstances operation to query the IDs of reserved instances that you purchased.
You can specify up to 10 IDs of reserved instances in a single request.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static RenewReservedInstancesRequest build(Map<String,?> map) throws Exception
Exception
public RenewReservedInstancesRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public RenewReservedInstancesRequest setAutoRenewPeriod(Integer autoRenewPeriod)
public Integer getAutoRenewPeriod()
public RenewReservedInstancesRequest setClientToken(String clientToken)
public String getClientToken()
public RenewReservedInstancesRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public RenewReservedInstancesRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public RenewReservedInstancesRequest setPeriod(Integer period)
public Integer getPeriod()
public RenewReservedInstancesRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public RenewReservedInstancesRequest setRegionId(String regionId)
public String getRegionId()
public RenewReservedInstancesRequest setReservedInstanceId(List<String> reservedInstanceId)
public RenewReservedInstancesRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public RenewReservedInstancesRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.