public static final class QuerySavingsPlansDiscountRequest.Builder extends Object
public QuerySavingsPlansDiscountRequest.Builder commodityCode(String commodityCode)
The code of the service.
This parameter is required.
example:ecs
public QuerySavingsPlansDiscountRequest.Builder cycle(String cycle)
The cycle based on which queries are performed.
This parameter is required.
example:1:Year
public QuerySavingsPlansDiscountRequest.Builder locale(String locale)
The identifier of the language.
Valid values:
ZH
public QuerySavingsPlansDiscountRequest.Builder moduleCode(String moduleCode)
The code of the pricing module.
example:instance_type
public QuerySavingsPlansDiscountRequest.Builder pageNum(Integer pageNum)
The number of the page to return.
example:1
public QuerySavingsPlansDiscountRequest.Builder pageSize(Integer pageSize)
The number of entries to return on each page.
example:20
public QuerySavingsPlansDiscountRequest.Builder payMode(String payMode)
The payment mode. Valid values: total: all upfront. half: half upfront. zero: no upfront.
This parameter is required.
example:total
public QuerySavingsPlansDiscountRequest.Builder region(String region)
The ID of the region.
example:cn-hangzhou
public QuerySavingsPlansDiscountRequest.Builder spec(String spec)
The type of the resource.
example:ecs.g6
public QuerySavingsPlansDiscountRequest.Builder spnCommodityCode(String spnCommodityCode)
public QuerySavingsPlansDiscountRequest.Builder spnType(String spnType)
The type of the savings plan. Valid values: ecs: Elastic Compute Service (ECS) compute type. universal: general-purpose type.
This parameter is required.
example:universal
public QuerySavingsPlansDiscountRequest build()
Copyright © 2026. All rights reserved.