public class UpdateBandwidthPackagaAutoRenewAttributeRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
autoRenew
Specifies whether to enable auto-renewal.
|
Integer |
autoRenewDuration
The auto-renewal period.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
instanceId
The ID of the bandwidth plan.
|
String |
name
The name of the bandwidth plan.
|
String |
regionId
The ID of the region where the Global Accelerator (GA) instance is deployed.
|
String |
renewalStatus
The auto-renewal status of the bandwidth plan.
|
| 构造器和说明 |
|---|
UpdateBandwidthPackagaAutoRenewAttributeRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static UpdateBandwidthPackagaAutoRenewAttributeRequest |
build(Map<String,?> map) |
Boolean |
getAutoRenew() |
Integer |
getAutoRenewDuration() |
String |
getClientToken() |
String |
getInstanceId() |
String |
getName() |
String |
getRegionId() |
String |
getRenewalStatus() |
UpdateBandwidthPackagaAutoRenewAttributeRequest |
setAutoRenew(Boolean autoRenew) |
UpdateBandwidthPackagaAutoRenewAttributeRequest |
setAutoRenewDuration(Integer autoRenewDuration) |
UpdateBandwidthPackagaAutoRenewAttributeRequest |
setClientToken(String clientToken) |
UpdateBandwidthPackagaAutoRenewAttributeRequest |
setInstanceId(String instanceId) |
UpdateBandwidthPackagaAutoRenewAttributeRequest |
setName(String name) |
UpdateBandwidthPackagaAutoRenewAttributeRequest |
setRegionId(String regionId) |
UpdateBandwidthPackagaAutoRenewAttributeRequest |
setRenewalStatus(String renewalStatus) |
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to enable auto-renewal. Valid values:
* **true**: enables auto-renewal.
* **false** disables auto-renewal.
@NameInMap(value="AutoRenewDuration") public Integer autoRenewDuration
The auto-renewal period. Unit: months. Valid values: **1** to **12**.
> This parameter is required only if **AutoRenew** is set to **true**.
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must make sure that it is unique among different requests. ClientToken can contain only ASCII characters.
> If you do not set this parameter, the system automatically uses **RequestId** as **ClientToken**. **RequestId** of each API request may be different.
@NameInMap(value="InstanceId") public String instanceId
The ID of the bandwidth plan.
@NameInMap(value="Name") public String name
The name of the bandwidth plan.
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\_), and hyphens (-). The name must start with a letter.
@NameInMap(value="RegionId") public String regionId
The ID of the region where the Global Accelerator (GA) instance is deployed. Set the value to **cn-hangzhou**.
@NameInMap(value="RenewalStatus") public String renewalStatus
The auto-renewal status of the bandwidth plan. Valid values:
* **AutoRenewal**: The system automatically renews the bandwidth plan.
* **Normal**: You must manually renew the bandwidth plan.
* **NotRenewal**: Choose this option if you do not want to renew the bandwidth plan after it expires. The system sends only a non-renewal reminder three days before the expiration date. The system no longer sends notifications to remind you to renew the bandwidth plan. You can change the value of this parameter from NotRenewal to Normal for a bandwidth plan, and then manually renew the bandwidth plan. You can also set the RenewalStatus parameter to **AutoRenewal**.
> **RenewalStatus** takes precedence over **AutoRenew**. If you do not specify **RenewalStatus**, the **AutoRenew** parameter is used by default.
public UpdateBandwidthPackagaAutoRenewAttributeRequest()
public static UpdateBandwidthPackagaAutoRenewAttributeRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateBandwidthPackagaAutoRenewAttributeRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public UpdateBandwidthPackagaAutoRenewAttributeRequest setAutoRenewDuration(Integer autoRenewDuration)
public Integer getAutoRenewDuration()
public UpdateBandwidthPackagaAutoRenewAttributeRequest setClientToken(String clientToken)
public String getClientToken()
public UpdateBandwidthPackagaAutoRenewAttributeRequest setInstanceId(String instanceId)
public String getInstanceId()
public UpdateBandwidthPackagaAutoRenewAttributeRequest setName(String name)
public String getName()
public UpdateBandwidthPackagaAutoRenewAttributeRequest setRegionId(String regionId)
public String getRegionId()
public UpdateBandwidthPackagaAutoRenewAttributeRequest setRenewalStatus(String renewalStatus)
public String getRenewalStatus()
Copyright © 2023. All rights reserved.