public class CreateAcceleratorRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateAcceleratorRequest.CreateAcceleratorRequestIpSetConfig |
static class |
CreateAcceleratorRequest.CreateAcceleratorRequestTag |
限定符和类型 | 字段和说明 |
---|---|
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 use coupons when making payments.
|
String |
bandwidthBillingType
The bandwidth billing method.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether only to precheck the request.
|
Integer |
duration
The subscription duration of the GA instance.
|
String |
instanceChargeType
The billing method of the GA.
|
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
The coupon code.
|
String |
regionId
The ID of the region in which to create the GA instance.
|
String |
resourceGroupId
The ID of the resource group to which the standard GA instance belongs.
|
String |
spec
The type of GA instance.
|
List<CreateAcceleratorRequest.CreateAcceleratorRequestTag> |
tag
The tags 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 takes effect only when **AutoRenew** is set to **true**.
@NameInMap(value="AutoUseCoupon") public String autoUseCoupon
Specifies whether to automatically use coupons when making payments. Default value: false. Valid values:
* **true:** automatically pays bill by using coupons.
* **false:** does not automatically pay bills by using coupons.
> This parameter takes effect only when **AutoPay** is set to **true**.
@NameInMap(value="BandwidthBillingType") public String bandwidthBillingType
The bandwidth billing method.
* **BandwidthPackage:** billed based on bandwidth plans.
* **CDT:** billed based on data transfer.
* **CDT95:** billed based on the 95th percentile bandwidth. The billing is managed by Cloud Data Transfer (CDT). This bandwidth billing method is not available by default. Contact your Alibaba Cloud account manager for more information.
@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 all requests. The token can contain only ASCII characters.
> If you do not set this parameter, the system sets **ClientToken** to the value of **RequestId**. The value of **RequestId** of each API request may be different.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether only to precheck the request. Default value: false. Valid values:
* **true**: prechecks the request without performing the operation. The system checks the required parameters, request syntax, and limits. If the request fails the precheck, an error message is returned. If the request passes the precheck, the `DryRunOperation` error code is returned.
* **false**: sends the request. If the request passes the precheck, a 2xx HTTP status code is returned and the operation is performed.
@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="InstanceChargeType") public String instanceChargeType
The billing method of the GA. Default value is PREPAY (subscription).
* PREPAY : subscription.
* POSTPAY : pay-as-you-go
@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
The coupon code.
>
@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
The ID of the resource group to which the standard GA instance belongs.
@NameInMap(value="Spec") public String spec
The type of 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 Ⅱ
> GA instances Large III and above are not available by default. To use these instances , contact your Alibaba Cloud account manager.
Each instance type provides different capabilities. For more information, see [Instance specifications](~~153127~~).
@NameInMap(value="Tag") public List<CreateAcceleratorRequest.CreateAcceleratorRequestTag> tag
The tags of the GA instance.
public static CreateAcceleratorRequest build(Map<String,?> map) throws Exception
Exception
public 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 setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateAcceleratorRequest setDuration(Integer duration)
public Integer getDuration()
public CreateAcceleratorRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
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()
public CreateAcceleratorRequest setTag(List<CreateAcceleratorRequest.CreateAcceleratorRequestTag> tag)
public List<CreateAcceleratorRequest.CreateAcceleratorRequestTag> getTag()
Copyright © 2024. All rights reserved.