Interface ListBucketsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListBucketsResponse.Builder,,ListBucketsResponse> S3Response.Builder,SdkBuilder<ListBucketsResponse.Builder,,ListBucketsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListBucketsResponse
public static interface ListBucketsResponse.Builder
extends S3Response.Builder, SdkPojo, CopyableBuilder<ListBucketsResponse.Builder,ListBucketsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbuckets(Collection<Bucket> buckets) The list of buckets owned by the requester.buckets(Consumer<Bucket.Builder>... buckets) The list of buckets owned by the requester.The list of buckets owned by the requester.default ListBucketsResponse.Builderowner(Consumer<Owner.Builder> owner) The owner of the buckets listed.The owner of the buckets listed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3.model.S3Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
buckets
The list of buckets owned by the requester.
- Parameters:
buckets- The list of buckets owned by the requester.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
The list of buckets owned by the requester.
- Parameters:
buckets- The list of buckets owned by the requester.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
The list of buckets owned by the requester.
This is a convenience method that creates an instance of theBucket.Builderavoiding the need to create one manually viaBucket.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobuckets(List<Bucket>).- Parameters:
buckets- a consumer that will call methods onBucket.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
owner
The owner of the buckets listed.
- Parameters:
owner- The owner of the buckets listed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
The owner of the buckets listed.
This is a convenience method that creates an instance of theOwner.Builderavoiding the need to create one manually viaOwner.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toowner(Owner).- Parameters:
owner- a consumer that will call methods onOwner.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-