public static final class CreateCenBandwidthPackageRequest.Builder extends Object
public CreateCenBandwidthPackageRequest.Builder autoPay(Boolean autoPay)
Specifies whether to automatically complete the payment of the bandwidth plan. Valid values:
If you set the parameter to false, go to Billing Management to complete the payment after you call this operation. The instance is created only after you complete the payment.
example:false
public CreateCenBandwidthPackageRequest.Builder autoRenew(Boolean autoRenew)
Specifies whether to enable the auto-renewal feature. Valid values:
example:Only subscription bandwidth plans support auto-renewal.
false
public CreateCenBandwidthPackageRequest.Builder autoRenewDuration(Integer autoRenewDuration)
The auto-renewal duration. Unit: months. Valid values: 0 to 2147483647. Default value: 1.
example:1
public CreateCenBandwidthPackageRequest.Builder bandwidth(Integer bandwidth)
The maximum bandwidth value of the bandwidth plan. Unit: Mbit/s. Valid values: 2 to 10000.
This parameter is required.
example:2
public CreateCenBandwidthPackageRequest.Builder bandwidthPackageChargeType(String bandwidthPackageChargeType)
The billing method of the bandwidth plan. Set the value to PREPAY, which indicates that the billing method is pay-as-you-go.
example:PREPAY
public CreateCenBandwidthPackageRequest.Builder clientToken(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 and cannot exceed 64 characters in length.
example:02fb3da4-130e-11e9-8e44-001****
public CreateCenBandwidthPackageRequest.Builder description(String description)
The description of the bandwidth plan.
example:namedesc
public CreateCenBandwidthPackageRequest.Builder geographicRegionAId(String geographicRegionAId)
The area where the network instance is deployed. Valid values:
This parameter is required.
example:China
public CreateCenBandwidthPackageRequest.Builder geographicRegionBId(String geographicRegionBId)
The area where the other network instance is deployed. Valid values: Valid values:
This parameter is required.
example:China
public CreateCenBandwidthPackageRequest.Builder name(String name)
The name of the bandwidth plan.
The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter and cannot start with http://
or https://
.
nametest
public CreateCenBandwidthPackageRequest.Builder ownerAccount(String ownerAccount)
public CreateCenBandwidthPackageRequest.Builder ownerId(Long ownerId)
public CreateCenBandwidthPackageRequest.Builder period(Integer period)
The subscription duration of the bandwidth plan. Default value: 1.
example:This parameter is required when BandwidthPackageChargeType is set to PREPAY.
1
public CreateCenBandwidthPackageRequest.Builder pricingCycle(String pricingCycle)
The billing cycle of the bandwidth plan. Valid values:
Month
public CreateCenBandwidthPackageRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateCenBandwidthPackageRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateCenBandwidthPackageRequest.Builder tag(List<CreateCenBandwidthPackageRequest.Tag> tag)
The information about the tags.
You can specify at most 20 tags in each call.
public CreateCenBandwidthPackageRequest build()
Copyright © 2025. All rights reserved.