public static final class GetSubscriptionPriceRequest.Builder extends Object
public GetSubscriptionPriceRequest.Builder instanceId(String instanceId)
The ID of the instance for which the price is queried. This parameter is required if you upgrade an instance. You can specify this parameter to obtain the pre-upgrade configurations of the instance.
example:i-khkjhxxxxxxxxx
public GetSubscriptionPriceRequest.Builder moduleList(List<GetSubscriptionPriceRequest.ModuleList> moduleList)
The information about the pricing module.
This parameter is required.
public GetSubscriptionPriceRequest.Builder orderType(String orderType)
The type of the order. Valid values:
This parameter is required.
example:NewOrder
public GetSubscriptionPriceRequest.Builder ownerId(Long ownerId)
public GetSubscriptionPriceRequest.Builder productCode(String productCode)
The code of the service. For more information about the service code, see Codes of Alibaba Cloud Services.
This parameter is required.
example:ecs
public GetSubscriptionPriceRequest.Builder productType(String productType)
The type of the service. Specify the parameter based on the pricing document of the specific service.
example:ecs
public GetSubscriptionPriceRequest.Builder quantity(Integer quantity)
The quantity.
example:1
public GetSubscriptionPriceRequest.Builder region(String region)
The ID of the region in which the instance resides.
example:cn-hangzhou
public GetSubscriptionPriceRequest.Builder servicePeriodQuantity(Integer servicePeriodQuantity)
The service duration.
example:1
public GetSubscriptionPriceRequest.Builder servicePeriodUnit(String servicePeriodUnit)
The unit of the service duration. Valid values:
Year
public GetSubscriptionPriceRequest.Builder subscriptionType(String subscriptionType)
The billing method. Set the value to Subscription.
This parameter is required.
example:Subscription
public GetSubscriptionPriceRequest build()
Copyright © 2026. All rights reserved.