public class CreateBandwidthPackageRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateBandwidthPackageRequest.CreateBandwidthPackageRequestTag |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoPay
Specifies whether to enable automatic payment.
|
Boolean |
autoRenew
Specifies whether to enable auto-renewal for the bandwidth plan.
|
Integer |
autoRenewDuration
The auto-renewal duration.
|
String |
autoUseCoupon
Specifies whether to automatically pay bills by using coupons.
|
Integer |
bandwidth
The bandwidth of the bandwidth plan.
|
String |
bandwidthType
The type of the bandwidth.
|
String |
billingType
The metering method that is used when you use the pay-as-you-go billing method.
|
String |
cbnGeographicRegionIdA
Area A to be connected.
|
String |
cbnGeographicRegionIdB
Area B to be connected.
|
String |
chargeType
The billing method of the bandwidth plan.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
duration
The subscription duration.
|
String |
pricingCycle
The billing cycle.
|
String |
promotionOptionNo
The coupon code.
|
Integer |
ratio
The percentage of the minimum bandwidth guaranteed if the pay-by-95th-percentile-bandwidth metering method is used.
|
String |
regionId
The ID of the region where the GA instance is deployed.
|
String |
resourceGroupId
The ID of the resource group.
|
List<CreateBandwidthPackageRequest.CreateBandwidthPackageRequestTag> |
tag
The tags to add to the bandwidth plan.
|
String |
type
The type of the bandwidth plan.
|
构造器和说明 |
---|
CreateBandwidthPackageRequest() |
@NameInMap(value="AutoPay") public Boolean autoPay
Specifies whether to enable automatic payment. Valid values:
* **false** (default): 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 bandwidth plan. Valid values:
* **true**: enables auto-renewal.
* **false** (default): does not enable 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. Valid values:
* **true**: yes
* **false** (default): no
> This parameter is required only if **AutoPay** is set to **true**.
@NameInMap(value="Bandwidth") public Integer bandwidth
The bandwidth of the bandwidth plan. Unit: Mbit/s.
Valid values: **2** to **2000**.
@NameInMap(value="BandwidthType") public String bandwidthType
The type of the bandwidth. Valid values:
* **Basic**: standard bandwidth
* **Enhanced**: enhanced bandwidth
* **Advanced**: premium bandwidth
If **Type** is set to **Basic**, this parameter is required.
@NameInMap(value="BillingType") public String billingType
The metering method that is used when you use the pay-as-you-go billing method. Valid values:
* **PayByTraffic** (default)
* **PayBY95** By default, the pay-by-95th-percentile metering method is unavailable. If you want to use the metering method, contact your account manager.
> This parameter takes effect only if you set **ChargeType** to **POSTPAY**.
@NameInMap(value="CbnGeographicRegionIdA") public String cbnGeographicRegionIdA
Area A to be connected. Set the value to **China-mainland**.
You can set this parameter only if you call this operation on the international site (alibabacloud.com).
@NameInMap(value="CbnGeographicRegionIdB") public String cbnGeographicRegionIdB
Area B to be connected. Set the value to **Global**.
You can set this parameter only if you call this operation on the international site (alibabacloud.com).
@NameInMap(value="ChargeType") public String chargeType
The billing method of the bandwidth plan. Valid values:
* **PREPAY** (default): subscription.
* **POSTPAY**: pay-as-you-go. By default, the pay-as-you-go billing method is unavailable. If you want to use the billing method, contact your account manager.
@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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
@NameInMap(value="Duration") public String duration
The subscription duration.
* 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**.
If **ChargeType** is set to **PREPAY**, this parameter is required.
@NameInMap(value="PricingCycle") public String pricingCycle
The billing cycle. Valid values:
* **Month**: billed on a monthly basis.
* **Year**: billed on an annual basis.
If **ChargeType** is set to **PREPAY**, this parameter is required.
@NameInMap(value="PromotionOptionNo") public String promotionOptionNo
The coupon code.
> This parameter is only available on the international site (alibabacloud.com).
@NameInMap(value="Ratio") public Integer ratio
The percentage of the minimum bandwidth guaranteed if the pay-by-95th-percentile-bandwidth metering method is used. Valid values: **30** to **100**.
> This parameter is required only if **BillingType** is set to **PayBY95**.
@NameInMap(value="RegionId") public String regionId
The ID of the region where the GA instance is deployed. **cn-hangzhou** is returned.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
@NameInMap(value="Tag") public List<CreateBandwidthPackageRequest.CreateBandwidthPackageRequestTag> tag
The tags to add to the bandwidth plan.
@NameInMap(value="Type") public String type
The type of the bandwidth plan. Valid values:
* **Basic**: a basic bandwidth plan
* **CrossDomain**: a cross-region acceleration bandwidth plan
If you call this operation on the Alibaba Cloud China site, only **Basic** is supported.
public static CreateBandwidthPackageRequest build(Map<String,?> map) throws Exception
Exception
public CreateBandwidthPackageRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public CreateBandwidthPackageRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public CreateBandwidthPackageRequest setAutoRenewDuration(Integer autoRenewDuration)
public Integer getAutoRenewDuration()
public CreateBandwidthPackageRequest setAutoUseCoupon(String autoUseCoupon)
public String getAutoUseCoupon()
public CreateBandwidthPackageRequest setBandwidth(Integer bandwidth)
public Integer getBandwidth()
public CreateBandwidthPackageRequest setBandwidthType(String bandwidthType)
public String getBandwidthType()
public CreateBandwidthPackageRequest setBillingType(String billingType)
public String getBillingType()
public CreateBandwidthPackageRequest setCbnGeographicRegionIdA(String cbnGeographicRegionIdA)
public String getCbnGeographicRegionIdA()
public CreateBandwidthPackageRequest setCbnGeographicRegionIdB(String cbnGeographicRegionIdB)
public String getCbnGeographicRegionIdB()
public CreateBandwidthPackageRequest setChargeType(String chargeType)
public String getChargeType()
public CreateBandwidthPackageRequest setClientToken(String clientToken)
public String getClientToken()
public CreateBandwidthPackageRequest setDuration(String duration)
public String getDuration()
public CreateBandwidthPackageRequest setPricingCycle(String pricingCycle)
public String getPricingCycle()
public CreateBandwidthPackageRequest setPromotionOptionNo(String promotionOptionNo)
public String getPromotionOptionNo()
public CreateBandwidthPackageRequest setRatio(Integer ratio)
public Integer getRatio()
public CreateBandwidthPackageRequest setRegionId(String regionId)
public String getRegionId()
public CreateBandwidthPackageRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateBandwidthPackageRequest setTag(List<CreateBandwidthPackageRequest.CreateBandwidthPackageRequestTag> tag)
public List<CreateBandwidthPackageRequest.CreateBandwidthPackageRequestTag> getTag()
public CreateBandwidthPackageRequest setType(String type)
public String getType()
Copyright © 2024. All rights reserved.