public static class ListBucketsOperation.Builder extends Object
Constructor and Description |
---|
Builder()
Create a Builder for a ListBucketsOperation.
|
Modifier and Type | Method and Description |
---|---|
ListBucketsOperation |
build() |
ListBucketsOperation.Builder |
streamResults(boolean streamResults)
Set the streamResults flag.
|
ListBucketsOperation.Builder |
withBucketType(BinaryValue bucketType)
Set the bucket type.
|
ListBucketsOperation.Builder |
withTimeout(int timeout)
Provide a timeout for this operation.
|
public ListBucketsOperation.Builder withTimeout(int timeout)
timeout
- value in millisecondspublic ListBucketsOperation.Builder withBucketType(BinaryValue bucketType)
Namespace.DEFAULT_BUCKET_TYPE
is used.bucketType
- the bucket type to usepublic ListBucketsOperation.Builder streamResults(boolean streamResults)
FutureOperation.get()
method once the operation is complete.
If set to true, results will be pushed to the queue available through the PBStreamingFutureOperation.getResultsQueue()
method as soon as they are available.streamResults
- whether to stream results to FutureOperation.get()
(false), or PBStreamingFutureOperation.getResultsQueue()
(true)public ListBucketsOperation build()
Copyright © 2016. All rights reserved.