Class CfnDirectoryBucketProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3express.CfnDirectoryBucketProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectoryBucketProps>
- Enclosing interface:
CfnDirectoryBucketProps
@Stability(Stable)
public static final class CfnDirectoryBucketProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDirectoryBucketProps>
A builder for
CfnDirectoryBucketProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) Sets the value ofCfnDirectoryBucketProps.getBucketName()
build()
Builds the configured instance.dataRedundancy
(String dataRedundancy) Sets the value ofCfnDirectoryBucketProps.getDataRedundancy()
locationName
(String locationName) Sets the value ofCfnDirectoryBucketProps.getLocationName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataRedundancy
Sets the value ofCfnDirectoryBucketProps.getDataRedundancy()
- Parameters:
dataRedundancy
- The number of Availability Zone that's used for redundancy for the bucket. This parameter is required.- Returns:
this
-
locationName
Sets the value ofCfnDirectoryBucketProps.getLocationName()
- Parameters:
locationName
- The name of the location where the bucket will be created. This parameter is required. For directory buckets, the name of the location is the AZ ID of the Availability Zone where the bucket will be created. An example AZ ID value isusw2-az1
.- Returns:
this
-
bucketName
Sets the value ofCfnDirectoryBucketProps.getBucketName()
- Parameters:
bucketName
- A name for the bucket. The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Availability Zone. The bucket name must also follow the format*bucket_base_name* -- *az_id* --x-s3
(for example,*DOC-EXAMPLE-BUCKET* -- *usw2-az1* --x-s3
). If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide .If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDirectoryBucketProps>
- Returns:
- a new instance of
CfnDirectoryBucketProps
- Throws:
NullPointerException
- if any required attribute was not provided
-