public static final class GetResourcePackagePriceRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
GetResourcePackagePriceRequest |
build() |
GetResourcePackagePriceRequest.Builder |
duration(Integer duration)
The validity period of the resource plan.
|
GetResourcePackagePriceRequest.Builder |
effectiveDate(String effectiveDate)
The time when the resource plan takes effect.
|
GetResourcePackagePriceRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
GetResourcePackagePriceRequest.Builder |
orderType(String orderType)
The type of the order.
|
GetResourcePackagePriceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
GetResourcePackagePriceRequest.Builder |
packageType(String packageType)
The type of the resource plan.
|
GetResourcePackagePriceRequest.Builder |
pricingCycle(String pricingCycle)
The unit of validity period of the resource plan.
|
GetResourcePackagePriceRequest.Builder |
productCode(String productCode)
The code of service.
|
GetResourcePackagePriceRequest.Builder |
specification(String specification)
The specifications of the resource plan.
|
public GetResourcePackagePriceRequest.Builder duration(Integer duration)
The validity period of the resource plan. The value must be the same as the duration of the resource plan specified in the specifications.
This parameter is required.
example:6
public GetResourcePackagePriceRequest.Builder effectiveDate(String effectiveDate)
The time when the resource plan takes effect. If you do not specify this parameter, the resource plan immediately takes effect by default. When the OrderType is BUY, resource packs with the EffectiveDate longer than the current time of 6 months are not supported. If the OrderType is UPGRADE, the EffectiveDate must be less than or equal to the actual expiration time of the upgraded instance. Specify the time in the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time must be in UTC.
example:2020-02-10T12:00:00Z
public GetResourcePackagePriceRequest.Builder instanceId(String instanceId)
The ID of the instance. This parameter is required when the order type is renewal or upgrade.
example:OSSBAG-cn-0xl0002
public GetResourcePackagePriceRequest.Builder orderType(String orderType)
The type of the order. Valid values:
Default value: BUY.
example:BUY
public GetResourcePackagePriceRequest.Builder ownerId(Long ownerId)
public GetResourcePackagePriceRequest.Builder packageType(String packageType)
The type of the resource plan. The value must be the same as the value of the ProductCode parameter that is returned when you call the DescribeResourcePackageProduct operation.
This parameter is required.
example:FPT_ossbag_periodMonthlyAcc_NetworkOut_finance_common
public GetResourcePackagePriceRequest.Builder pricingCycle(String pricingCycle)
The unit of validity period of the resource plan. Valid values:
Month
public GetResourcePackagePriceRequest.Builder productCode(String productCode)
The code of service. You can query the service code by calling the QueryProductList operation or viewing Codes of Alibaba Cloud Services.
This parameter is required.
example:ossbag
public GetResourcePackagePriceRequest.Builder specification(String specification)
The specifications of the resource plan.
This parameter is required.
example:500
public GetResourcePackagePriceRequest build()
Copyright © 2026. All rights reserved.