public static final class CreateSavingsPlansInstanceRequest.Builder extends Object
public CreateSavingsPlansInstanceRequest.Builder autoPay(Boolean autoPay)
public CreateSavingsPlansInstanceRequest.Builder commodityCode(String commodityCode)
The code of the service.
This parameter is required.
example:savingplan_common_public_cn
public CreateSavingsPlansInstanceRequest.Builder duration(String duration)
The service duration. This parameter is used together with the PricingCycle parameter.
This parameter is required.
example:1
public CreateSavingsPlansInstanceRequest.Builder effectiveDate(String effectiveDate)
The time when the savings plan takes effect. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
example:2021-12-31T00:00:00Z
public CreateSavingsPlansInstanceRequest.Builder extendMap(Map<String,String> extendMap)
The extended parameters.
public CreateSavingsPlansInstanceRequest.Builder payMode(String payMode)
The payment mode. Valid values:
This parameter is required.
example:total
public CreateSavingsPlansInstanceRequest.Builder poolValue(String poolValue)
The contracted amount. unit: CNY
This parameter is required.
example:0.1
public CreateSavingsPlansInstanceRequest.Builder pricingCycle(String pricingCycle)
The unit of the subscription duration. This parameter is used together with Duration. Valid values:
This parameter is required.
example:Year
public CreateSavingsPlansInstanceRequest.Builder region(String region)
The ID of the region in which you create the savings plan. You must specify this parameter if the Type parameter is not set to universal.
example:cn-hangzhou
public CreateSavingsPlansInstanceRequest.Builder specType(String specType)
The specification type. This parameter is used together with the Specification parameter. You must specify this parameter if the Type parameter is not set to universal. Valid values:
family
public CreateSavingsPlansInstanceRequest.Builder specification(String specification)
The specifications of the savings plan. This parameter is used together with the SpecType parameter.
example:ecs.g6
public CreateSavingsPlansInstanceRequest.Builder type(String type)
The type of the savings plan. Valid values:
This parameter is required.
example:universal
public CreateSavingsPlansInstanceRequest build()
Copyright © 2026. All rights reserved.