public class CreateAcceleratorRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateAcceleratorRequest.CreateAcceleratorRequestIpSetConfig |
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
autoPay
Specifies whether to enable automatic payment.
|
Boolean |
autoRenew
Specifies whether to enable auto-renewal for the GA instance.
|
Integer |
autoRenewDuration
The auto-renewal duration.
|
String |
autoUseCoupon
Specifies whether to automatically pay bills by using coupons.
|
String |
bandwidthBillingType |
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Integer |
duration
The subscription duration of the GA instance.
|
CreateAcceleratorRequest.CreateAcceleratorRequestIpSetConfig |
ipSetConfig
The configurations of the acceleration area.
|
String |
name
The name of the GA instance.
|
String |
pricingCycle
The billing cycle of the GA instance.
|
String |
promotionOptionNo |
String |
regionId
The ID of the region in which to create the GA instance.
|
String |
resourceGroupId |
String |
spec
The specification of the GA instance.
|
| 构造器和说明 |
|---|
CreateAcceleratorRequest() |
@NameInMap(value="AutoPay") public Boolean autoPay
Specifies whether to enable automatic payment. Default value: false. Valid values:
* **false**: disables automatic payment. If you select this option, you must go to the Order Center to complete the payment after an order is generated.
* **true**: enables automatic payment. Payments are automatically completed.
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to enable auto-renewal for the GA instance. Default value: false. Valid values:
* **true**: enables auto-renewal.
* **false** disables auto-renewal.
@NameInMap(value="AutoRenewDuration") public Integer autoRenewDuration
The auto-renewal duration. Unit: months.
Valid values: **1** to **12**. Default value: **1**.
> This parameter is required only if **AutoRenew** is set to **true**.
@NameInMap(value="AutoUseCoupon") public String autoUseCoupon
Specifies whether to automatically pay bills by using coupons. Default value: false. Valid values:
* **true**: automatically pays bill by using coupons.
* **false**: does not automatically pay bills by using coupons.
> This parameter is required only if **AutoPay** is set to **true**.
@NameInMap(value="BandwidthBillingType") public String bandwidthBillingType
@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, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** may be different for each API request.
@NameInMap(value="Duration") public Integer duration
The subscription duration of the GA instance.
* If the **PricingCycle** parameter is set to **Month**, the valid values for the **Duration** parameter are **1** to **9**.
* If the **PricingCycle** parameter is set to **Year**, the valid values for the **Duration** parameter are **1** to **3**.
@NameInMap(value="IpSetConfig") public CreateAcceleratorRequest.CreateAcceleratorRequestIpSetConfig ipSetConfig
The configurations of the acceleration area.
@NameInMap(value="Name") public String name
The name of the GA instance.
The name must be 2 to 128 characters in length and can contain digits, underscores (\_), and hyphens (-). It must start with a letter.
@NameInMap(value="PricingCycle") public String pricingCycle
The billing cycle of the GA instance. Valid values:
* **Month**: billed on a monthly basis.
* **Year**: billed on an annual basis.
@NameInMap(value="PromotionOptionNo") public String promotionOptionNo
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the GA instance. Set the value to **cn-hangzhou**.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
@NameInMap(value="Spec") public String spec
The specification of the GA instance. Valid values:
* **1**: Small Ⅰ
* **2**: Small Ⅱ
* **3**: Small Ⅲ
* **5**: Medium Ⅰ
* **8**: Medium Ⅱ
* **10**: Medium Ⅲ
* **20**: Large Ⅰ
* **30**: Large Ⅱ
* **40**: Large Ⅲ
* **50**: Large Ⅳ
* **60**: Large Ⅴ
* **70**: Large Ⅵ
* **80**: Large VⅡ
* **90**: Large VⅢ
* **100**: Super Large Ⅰ
* **200**: Super Large Ⅱ
* **300**: Super Large Ⅲ
> The Large Ⅲ and higher specifications are available only for accounts that are added to the whitelist. To apply to be added to the whitelist, [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
Each instance specification provides different capabilities. For more information, see [Instance specifications](~~153127~~).
public static CreateAcceleratorRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateAcceleratorRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public CreateAcceleratorRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public CreateAcceleratorRequest setAutoRenewDuration(Integer autoRenewDuration)
public Integer getAutoRenewDuration()
public CreateAcceleratorRequest setAutoUseCoupon(String autoUseCoupon)
public String getAutoUseCoupon()
public CreateAcceleratorRequest setBandwidthBillingType(String bandwidthBillingType)
public String getBandwidthBillingType()
public CreateAcceleratorRequest setClientToken(String clientToken)
public String getClientToken()
public CreateAcceleratorRequest setDuration(Integer duration)
public Integer getDuration()
public CreateAcceleratorRequest setIpSetConfig(CreateAcceleratorRequest.CreateAcceleratorRequestIpSetConfig ipSetConfig)
public CreateAcceleratorRequest.CreateAcceleratorRequestIpSetConfig getIpSetConfig()
public CreateAcceleratorRequest setName(String name)
public String getName()
public CreateAcceleratorRequest setPricingCycle(String pricingCycle)
public String getPricingCycle()
public CreateAcceleratorRequest setPromotionOptionNo(String promotionOptionNo)
public String getPromotionOptionNo()
public CreateAcceleratorRequest setRegionId(String regionId)
public String getRegionId()
public CreateAcceleratorRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateAcceleratorRequest setSpec(String spec)
public String getSpec()
Copyright © 2023. All rights reserved.