public class ModifyInstanceAutoRenewAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoRenew
Specifies whether to enable auto-renewal for the instance.
|
Integer |
duration
The auto-renewal period of the instance.
|
String |
instanceId
The ID of the instance.
|
String |
ownerAccount |
Long |
ownerId |
String |
periodUnit
The unit of the renewal period (
Duration ). |
String |
regionId
The region ID of the instance.
|
String |
renewalStatus
The auto-renewal status of the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
ModifyInstanceAutoRenewAttributeRequest() |
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to enable auto-renewal for the instance.
Default value: false.
example:true
@NameInMap(value="Duration") public Integer duration
The auto-renewal period of the instance.
Duration
when PeriodUnit
is set to Year
: 1, 2, 3, 4, and 5.Duration
when PeriodUnit
is set to Month
: 1, 2, 3, 6, 12, 24, 36, 48, and 60.1
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance. You can specify up to 100 subscription instance IDs. Separate the instance IDs with commas (,).
This parameter is required.
example:i-bp67acfmxazb4ph****,i-bp67acfmxazb4pi****
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the renewal period (Duration
). Valid values:
Month
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="RenewalStatus") public String renewalStatus
The auto-renewal status of the instance. Valid values:
Normal
for an instance, and then manually renew the instance. Alternatively, you can set the RenewalStatus parameter to AutoRenewal.example:
RenewalStatus
takes precedence overAutoRenew
. If you do not specifyRenewalStatus
,AutoRenew
is used by default.
AutoRenewal
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static ModifyInstanceAutoRenewAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifyInstanceAutoRenewAttributeRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public ModifyInstanceAutoRenewAttributeRequest setDuration(Integer duration)
public Integer getDuration()
public ModifyInstanceAutoRenewAttributeRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyInstanceAutoRenewAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyInstanceAutoRenewAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyInstanceAutoRenewAttributeRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public ModifyInstanceAutoRenewAttributeRequest setRegionId(String regionId)
public String getRegionId()
public ModifyInstanceAutoRenewAttributeRequest setRenewalStatus(String renewalStatus)
public String getRenewalStatus()
public ModifyInstanceAutoRenewAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyInstanceAutoRenewAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.