public static final class SubscribeBillToOSSRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SubscribeBillToOSSRequest.Builder |
beginBillingCycle(String beginBillingCycle)
The initial billing cycle from which bills start to be pushed.
|
SubscribeBillToOSSRequest.Builder |
bucketOwnerId(Long bucketOwnerId)
The owner ID of the OSS bucket that stores the bills.
|
SubscribeBillToOSSRequest.Builder |
bucketPath(String bucketPath)
The path of the OSS bucket.
|
SubscribeBillToOSSRequest |
build() |
SubscribeBillToOSSRequest.Builder |
multAccountRelSubscribe(String multAccountRelSubscribe)
The type of the account whose bills are to be pushed if multi-tier accounts are involved.
|
SubscribeBillToOSSRequest.Builder |
rowLimitPerFile(Integer rowLimitPerFile)
The upper limit of the number of lines in a single file.
|
SubscribeBillToOSSRequest.Builder |
subscribeBucket(String subscribeBucket)
The OSS bucket that stores the bills to which you want to subscribe.
|
SubscribeBillToOSSRequest.Builder |
subscribeType(String subscribeType)
The type of the bill to which you want to subscribe.
|
SubscribeBillToOSSRequest.Builder |
usingSsl(String usingSsl)
Whether to protect network communications through the SSL (Secure Sockets Layer) encryption protocol.
|
public SubscribeBillToOSSRequest.Builder beginBillingCycle(String beginBillingCycle)
The initial billing cycle from which bills start to be pushed. After you subscribe to the bills, the system automatically pushes the data that is generated from the initial billing cycle to the current time. If the SubscribeType parameter is set to MonthBill, this parameter is invalid. Historical data is not pushed again. The data generated within the last year can be pushed.
example:2021-03
public SubscribeBillToOSSRequest.Builder bucketOwnerId(Long bucketOwnerId)
The owner ID of the OSS bucket that stores the bills. This parameter is required if you are a bidder or reseller and want to push data to an OSS bucket of a member account. In this case, you must specify this account as the account used to call this operation and grant the AliyunConsumeDump2OSSRole permission to this account. If you are a regular user, you do not need to set this parameter. By default, your account is used to call this operation.
example:12341324
public SubscribeBillToOSSRequest.Builder bucketPath(String bucketPath)
The path of the OSS bucket.
example:testpath
public SubscribeBillToOSSRequest.Builder multAccountRelSubscribe(String multAccountRelSubscribe)
The type of the account whose bills are to be pushed if multi-tier accounts are involved. Valid values:
Default value: MA.
example:MA
public SubscribeBillToOSSRequest.Builder rowLimitPerFile(Integer rowLimitPerFile)
The upper limit of the number of lines in a single file. When the bill file exceeds the upper limit, it will be split into multiple files and merged into a compressed package.
example:300000
public SubscribeBillToOSSRequest.Builder subscribeBucket(String subscribeBucket)
The OSS bucket that stores the bills to which you want to subscribe.
This parameter is required.
example:xxxxxx-bucket
public SubscribeBillToOSSRequest.Builder subscribeType(String subscribeType)
The type of the bill to which you want to subscribe. Valid values:
BillingItemDetailForBillingPeriod
public SubscribeBillToOSSRequest.Builder usingSsl(String usingSsl)
Whether to protect network communications through the SSL (Secure Sockets Layer) encryption protocol. When this parameter is set to true, it means that SSL encryption is enabled to ensure the security and integrity of data transmission.
example:true
public SubscribeBillToOSSRequest build()
Copyright © 2026. All rights reserved.