public static final class QueryInstanceBillRequest.Builder extends Object
public QueryInstanceBillRequest.Builder billOwnerId(Long billOwnerId)
The ID of the member. If you specify a value for this parameter, you can query the bills of the specified member. If you leave this parameter empty, the bills of the current account are queried by default.
example:122
public QueryInstanceBillRequest.Builder billingCycle(String billingCycle)
The billing cycle. Format: YYYY-MM.
This parameter is required.
example:2020-03
public QueryInstanceBillRequest.Builder billingDate(String billingDate)
The billing date. This parameter is required only if the Granularity parameter is set to DAILY. Format: YYYY-MM-DD.
example:2020-03-03
public QueryInstanceBillRequest.Builder granularity(String granularity)
The granularity at which bills are queried. Valid values:
You must set the BillingDate parameter before you can set the Granularity parameter to DAILY.
example:MONTHLY
public QueryInstanceBillRequest.Builder isBillingItem(Boolean isBillingItem)
Specifies whether to query data by billable item. Valid values:
Default value: false.
example:false
public QueryInstanceBillRequest.Builder isHideZeroCharge(Boolean isHideZeroCharge)
Specifies whether to filter out a bill whose pretax gross amount and pretax amount are 0. Default value: false.******** Valid values:
false
public QueryInstanceBillRequest.Builder ownerId(Long ownerId)
public QueryInstanceBillRequest.Builder pageNum(Integer pageNum)
The number of the page to return. Default value: 1.
example:1
public QueryInstanceBillRequest.Builder pageSize(Integer pageSize)
The number of entries to return on each page. Default value: 20. Maximum value: 300.
example:20
public QueryInstanceBillRequest.Builder productCode(String productCode)
The code of the service.
example:rds
public QueryInstanceBillRequest.Builder productType(String productType)
The type of the service. This parameter is required if the ProductCode parameter is set to the service code of Alibaba Cloud Marketplace.
example:rds
public QueryInstanceBillRequest.Builder subscriptionType(String subscriptionType)
The billing method. Valid values:
**
****This parameter must be used together with the ProductCode parameter.
example:PayAsYouGo
public QueryInstanceBillRequest build()
Copyright © 2026. All rights reserved.