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 for 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 state 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.
@NameInMap(value="Duration") public Integer duration
The auto-renewal period for the instance.
* Valid values of `Duration` when `PeriodUnit` is set to `Year` (year): 1, 2, 3, 4, and 5.
* Valid values of `Duration` when `PeriodUnit` is set to `Month` (month): 1, 2, 3, 6, 12, 24, 36, 48, and 60.
* Valid values of `Duration` when `PeriodUnit` is set to `Week` (week): 1, 2, 3, and 4.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance. You can specify IDs of up to 100 subscription instances. Separate the instance IDs with commas (,).
@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`). Default value: Month. Valid values:
* Week
* Month
* Year
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="RenewalStatus") public String renewalStatus
The auto-renewal state of the instance. Valid values:
* AutoRenewal: Auto-renewal is enabled for the instance.
* Normal: Auto-renewal is disabled for the instance.
* NotRenewal: The instance is not renewed. The system no longer sends an expiration notification. Notifications for renewal are sent three days before the expiration time of the instance. You can change the value of this parameter from NotRenewal to `Normal` for an instance, and then manually renew the instance. Alternatively, you can set the RenewalStatus parameter to AutoRenewal.
> `RenewalStatus` takes precedence over `AutoRenew`. If you do not specify `RenewalStatus`, the `AutoRenew` parameter is used by default.
@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 © 2023. All rights reserved.