Interface CreateBucketRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateBucketRequest.Builder,
,CreateBucketRequest> LightsailRequest.Builder
,SdkBuilder<CreateBucketRequest.Builder,
,CreateBucketRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateBucketRequest
-
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) The name for the bucket.The ID of the bundle to use for the bucket.enableObjectVersioning
(Boolean enableObjectVersioning) A Boolean value that indicates whether to enable versioning of objects in the bucket.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) The tag keys and optional values to add to the bucket during creation.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values to add to the bucket during creation.The tag keys and optional values to add to the bucket during creation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
bucketName
The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
- Parameters:
bucketName
- The name for the bucket.For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bundleId
The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
- Parameters:
bundleId
- The ID of the bundle to use for the bucket.A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
- Parameters:
tags
- The tag keys and optional values to add to the bucket during creation.Use the TagResource action to tag the bucket after it's created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
- Parameters:
tags
- The tag keys and optional values to add to the bucket during creation.Use the TagResource action to tag the bucket after it's created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enableObjectVersioning
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
- Parameters:
enableObjectVersioning
- A Boolean value that indicates whether to enable versioning of objects in the bucket.For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-