Interface GetBucketsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBucketsResponse.Builder,GetBucketsResponse>,LightsailResponse.Builder,SdkBuilder<GetBucketsResponse.Builder,GetBucketsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetBucketsResponse
public static interface GetBucketsResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetBucketsResponse.Builder,GetBucketsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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.GetBucketsResponse.BuilderaccountLevelBpaSync(AccountLevelBpaSync accountLevelBpaSync)An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.GetBucketsResponse.Builderbuckets(Collection<Bucket> buckets)An array of objects that describe buckets.GetBucketsResponse.Builderbuckets(Consumer<Bucket.Builder>... buckets)An array of objects that describe buckets.GetBucketsResponse.Builderbuckets(Bucket... buckets)An array of objects that describe buckets.GetBucketsResponse.BuildernextPageToken(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
copy
-
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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
GetBucketsResponse.Builder buckets(Collection<Bucket> 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
GetBucketsResponse.Builder buckets(Bucket... 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
GetBucketsResponse.Builder buckets(Consumer<Bucket.Builder>... 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 to#buckets(List.) - 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:
#buckets(java.util.Collection)
-
nextPageToken
GetBucketsResponse.Builder nextPageToken(String 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
GetBucketsResponse.Builder accountLevelBpaSync(AccountLevelBpaSync 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:
accountLevelBpaSync(AccountLevelBpaSync)
-
-