@Mutable @NotThreadSafe public static interface ListBucketsResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<ListBucketsResponse.Builder,ListBucketsResponse>
| Modifier and Type | Method and Description |
|---|---|
ListBucketsResponse.Builder |
buckets(Bucket... buckets)
The list of buckets owned by the requester.
|
ListBucketsResponse.Builder |
buckets(Collection<Bucket> buckets)
The list of buckets owned by the requester.
|
ListBucketsResponse.Builder |
buckets(Consumer<Bucket.Builder>... buckets)
The list of buckets owned by the requester.
|
ListBucketsResponse.Builder |
continuationToken(String continuationToken)
ContinuationToken is included in the response when there are more buckets that can be listed
with pagination. |
default ListBucketsResponse.Builder |
owner(Consumer<Owner.Builder> owner)
The owner of the buckets listed.
|
ListBucketsResponse.Builder |
owner(Owner owner)
The owner of the buckets listed.
|
ListBucketsResponse.Builder |
prefix(String prefix)
If
Prefix was sent with the request, it is included in the response. |
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldNameToField, sdkFieldscopyapplyMutation, buildListBucketsResponse.Builder buckets(Collection<Bucket> buckets)
The list of buckets owned by the requester.
buckets - The list of buckets owned by the requester.ListBucketsResponse.Builder buckets(Bucket... buckets)
The list of buckets owned by the requester.
buckets - The list of buckets owned by the requester.ListBucketsResponse.Builder buckets(Consumer<Bucket.Builder>... buckets)
The list of buckets owned by the requester.
This is a convenience method that creates an instance of theBucket.Builder avoiding the need to create one manually via
Bucket.builder().
When the Consumer completes, SdkBuilder.build()
is called immediately and its result is passed to #buckets(List.
buckets - a consumer that will call methods on Bucket.Builder#buckets(java.util.Collection) ListBucketsResponse.Builder owner(Owner owner)
The owner of the buckets listed.
owner - The owner of the buckets listed.default ListBucketsResponse.Builder owner(Consumer<Owner.Builder> owner)
The owner of the buckets listed.
This is a convenience method that creates an instance of theOwner.Builder avoiding the need to
create one manually via Owner.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to owner(Owner).
owner - a consumer that will call methods on Owner.Builderowner(Owner)ListBucketsResponse.Builder continuationToken(String continuationToken)
ContinuationToken is included in the response when there are more buckets that can be listed
with pagination. The next ListBuckets request to Amazon S3 can be continued with this
ContinuationToken. ContinuationToken is obfuscated and is not a real bucket.
continuationToken - ContinuationToken is included in the response when there are more buckets that can be
listed with pagination. The next ListBuckets request to Amazon S3 can be continued with
this ContinuationToken. ContinuationToken is obfuscated and is not a real
bucket.ListBucketsResponse.Builder prefix(String prefix)
If Prefix was sent with the request, it is included in the response.
All bucket names in the response begin with the specified bucket name prefix.
prefix - If Prefix was sent with the request, it is included in the response.
All bucket names in the response begin with the specified bucket name prefix.
Copyright © 2026. All rights reserved.