Interface DescribeBucketsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeBucketsResponse.Builder,DescribeBucketsResponse>,Macie2Response.Builder,SdkBuilder<DescribeBucketsResponse.Builder,DescribeBucketsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeBucketsResponse
public static interface DescribeBucketsResponse.Builder extends Macie2Response.Builder, SdkPojo, CopyableBuilder<DescribeBucketsResponse.Builder,DescribeBucketsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeBucketsResponse.Builderbuckets(Collection<BucketMetadata> buckets)An array of objects, one for each bucket that matches the filter criteria specified in the request.DescribeBucketsResponse.Builderbuckets(Consumer<BucketMetadata.Builder>... buckets)An array of objects, one for each bucket that matches the filter criteria specified in the request.DescribeBucketsResponse.Builderbuckets(BucketMetadata... buckets)An array of objects, one for each bucket that matches the filter criteria specified in the request.DescribeBucketsResponse.BuildernextToken(String nextToken)The string to use in a subsequent request to get the next page of results in a paginated response.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.macie2.model.Macie2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
buckets
DescribeBucketsResponse.Builder buckets(Collection<BucketMetadata> buckets)
An array of objects, one for each bucket that matches the filter criteria specified in the request.
- Parameters:
buckets- An array of objects, one for each bucket that matches the filter criteria specified in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
DescribeBucketsResponse.Builder buckets(BucketMetadata... buckets)
An array of objects, one for each bucket that matches the filter criteria specified in the request.
- Parameters:
buckets- An array of objects, one for each bucket that matches the filter criteria specified in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
DescribeBucketsResponse.Builder buckets(Consumer<BucketMetadata.Builder>... buckets)
An array of objects, one for each bucket that matches the filter criteria specified in the request.
This is a convenience method that creates an instance of theBucketMetadata.Builderavoiding the need to create one manually viaBucketMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#buckets(List.) - Parameters:
buckets- a consumer that will call methods onBucketMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#buckets(java.util.Collection)
-
nextToken
DescribeBucketsResponse.Builder nextToken(String nextToken)
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
- Parameters:
nextToken- The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-