Interface CreateBucketRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateBucketRequest.Builder,CreateBucketRequest>,LightsailRequest.Builder,SdkBuilder<CreateBucketRequest.Builder,CreateBucketRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateBucketRequest
public static interface CreateBucketRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<CreateBucketRequest.Builder,CreateBucketRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateBucketRequest.BuilderbucketName(String bucketName)The name for the bucket.CreateBucketRequest.BuilderbundleId(String bundleId)The ID of the bundle to use for the bucket.CreateBucketRequest.BuilderenableObjectVersioning(Boolean enableObjectVersioning)A Boolean value that indicates whether to enable versioning of objects in the bucket.CreateBucketRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateBucketRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateBucketRequest.Buildertags(Collection<Tag> tags)The tag keys and optional values to add to the bucket during creation.CreateBucketRequest.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values to add to the bucket during creation.CreateBucketRequest.Buildertags(Tag... tags)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 Detail
-
bucketName
CreateBucketRequest.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.
- 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
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.
- 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
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.
- 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
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.
- 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
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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
enableObjectVersioning
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.
- 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-