public static interface CreateBucketRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<CreateBucketRequest.Builder,CreateBucketRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateBucketRequest.Builder |
bucketName(String bucketName)
The name for the bucket.
|
CreateBucketRequest.Builder |
bundleId(String bundleId)
The ID of the bundle to use for the bucket.
|
CreateBucketRequest.Builder |
enableObjectVersioning(Boolean enableObjectVersioning)
A Boolean value that indicates whether to enable versioning of objects in the bucket.
|
CreateBucketRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateBucketRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateBucketRequest.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values to add to the bucket during creation.
|
CreateBucketRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values to add to the bucket during creation.
|
CreateBucketRequest.Builder |
tags(Tag... tags)
The tag keys and optional values to add to the bucket during creation.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateBucketRequest.Builder bucketName(String 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.
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.
CreateBucketRequest.Builder bundleId(String 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.
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.
CreateBucketRequest.Builder tags(Collection<Tag> 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.
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.
CreateBucketRequest.Builder tags(Tag... 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.
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.
CreateBucketRequest.Builder tags(Consumer<Tag.Builder>... 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
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) CreateBucketRequest.Builder enableObjectVersioning(Boolean 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.
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.
CreateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.