Interface GetBucketsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBucketsResponse.Builder,,GetBucketsResponse> LightsailResponse.Builder,SdkBuilder<GetBucketsResponse.Builder,,GetBucketsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetBucketsResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetBucketsResponse.BuilderaccountLevelBpaSync(Consumer<AccountLevelBpaSync.Builder> accountLevelBpaSync) An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.accountLevelBpaSync(AccountLevelBpaSync accountLevelBpaSync) An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.buckets(Collection<Bucket> buckets) An array of objects that describe buckets.buckets(Consumer<Bucket.Builder>... buckets) An array of objects that describe buckets.An array of objects that describe buckets.nextPageToken(String nextPageToken) The token to advance to the next page of results from your request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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
An array of objects that describe buckets.
- Parameters:
buckets- An array of objects that describe buckets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
An array of objects that describe buckets.
- Parameters:
buckets- An array of objects that describe buckets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buckets
An array of objects that describe buckets.
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:
-
nextPageToken
The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another
GetBucketsrequest and specify the next page token using thepageTokenparameter.- Parameters:
nextPageToken- The token to advance to the next page of results from your request.A next page token is not returned if there are no more results to display.
To get the next page of results, perform another
GetBucketsrequest and specify the next page token using thepageTokenparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountLevelBpaSync
An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.
For more information about this feature and how it affects Lightsail buckets, see Block public access for buckets in Amazon Lightsail.
- Parameters:
accountLevelBpaSync- An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.For more information about this feature and how it affects Lightsail buckets, see Block public access for buckets in Amazon Lightsail.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountLevelBpaSync
default GetBucketsResponse.Builder accountLevelBpaSync(Consumer<AccountLevelBpaSync.Builder> accountLevelBpaSync) An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.
For more information about this feature and how it affects Lightsail buckets, see Block public access for buckets in Amazon Lightsail.
This is a convenience method that creates an instance of theAccountLevelBpaSync.Builderavoiding the need to create one manually viaAccountLevelBpaSync.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccountLevelBpaSync(AccountLevelBpaSync).- Parameters:
accountLevelBpaSync- a consumer that will call methods onAccountLevelBpaSync.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-