public static final class CreateNetworkPackageRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateNetworkPackageRequest.Builder |
autoPay(Boolean autoPay)
Specifies whether to enable the automatic payment feature.
|
CreateNetworkPackageRequest.Builder |
autoRenew(Boolean autoRenew)
Specifies whether to enable auto-renewal for the premium bandwidth plan.
|
CreateNetworkPackageRequest.Builder |
bandwidth(Integer bandwidth)
The bandwidth provided by the premium bandwidth plan.
|
CreateNetworkPackageRequest |
build() |
CreateNetworkPackageRequest.Builder |
internetChargeType(String internetChargeType)
The charge type of the premium bandwidth plan.
|
CreateNetworkPackageRequest.Builder |
officeSiteId(String officeSiteId)
The office network ID.
|
CreateNetworkPackageRequest.Builder |
payType(String payType)
The billing method of the premium bandwidth plan.
|
CreateNetworkPackageRequest.Builder |
period(Integer period)
The subscription duration of the premium bandwidth plan.
|
CreateNetworkPackageRequest.Builder |
periodUnit(String periodUnit)
The unit of the subscription duration of the premium bandwidth plan.
|
CreateNetworkPackageRequest.Builder |
promotionId(String promotionId)
The ID of the sales promotion.
|
CreateNetworkPackageRequest.Builder |
regionId(String regionId)
The region ID.
|
public CreateNetworkPackageRequest.Builder autoPay(Boolean autoPay)
Valid values: * true (default): enables the auto-payment feature. Make sure that your account has sufficient balance. Otherwise, no order is generated. * false: disables the auto-payment feature. In this case, an order is generated but you need to make the payment manually. To make the payment, log on to the Elastic Desktop Service console, go to the Orders page, and find the order based on the order ID.
public CreateNetworkPackageRequest.Builder autoRenew(Boolean autoRenew)
Valid values: * true * false
public CreateNetworkPackageRequest.Builder bandwidth(Integer bandwidth)
* Valid values if the premium bandwidth plan is a subscription plan: 2 to 1000. * Valid values if the premium bandwidth plan is a pay-as-you-go plan that charges by data transfer (PayByTraffic): 2 to 200. * Valid values if the premium bandwidth plan is a pay-as-you-go plan that charges by fixed bandwidth (PayByBandwidth): 2 to 1000.
public CreateNetworkPackageRequest.Builder internetChargeType(String internetChargeType)
* Valid value when the `PayType` parameter is set to `PrePaid`: * PayByBandwidth: charges by fixed bandwidth. * Valid values when the `PayType` parameter is set to `PostPaid`: * PayByTraffic: charges by data transfer. * PayByBandwidth: charges by fixed bandwidth.
public CreateNetworkPackageRequest.Builder officeSiteId(String officeSiteId)
public CreateNetworkPackageRequest.Builder payType(String payType)
Valid values: * PostPaid: pay-as-you-go * PrePaid: subscription
public CreateNetworkPackageRequest.Builder period(Integer period)
* Valid value when the `PeriodUnit` parameter is set to `Week`: 1 * Valid values when the `PeriodUnit` parameter is set to `Month`: 1, 2, 3, and 6 * Valid values when the `PeriodUnit` parameter is set to `Year`: 1, 2, and 3 Default value: 1.
public CreateNetworkPackageRequest.Builder periodUnit(String periodUnit)
Valid values: * Month * Year * Week
public CreateNetworkPackageRequest.Builder promotionId(String promotionId)
public CreateNetworkPackageRequest.Builder regionId(String regionId)
public CreateNetworkPackageRequest build()
Copyright © 2024. All rights reserved.