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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-