Class TableBucketProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.alpha.TableBucketProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableBucketProps>
- Enclosing interface:
TableBucketProps
@Stability(Experimental)
public static final class TableBucketProps.Builder
extends Object
implements software.amazon.jsii.Builder<TableBucketProps>
A builder for
TableBucketProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofTableBucketProps.getAccount()build()Builds the configured instance.encryption(TableBucketEncryption encryption) Sets the value ofTableBucketProps.getEncryption()encryptionKey(IKey encryptionKey) Sets the value ofTableBucketProps.getEncryptionKey()Sets the value ofTableBucketProps.getRegion()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofTableBucketProps.getRemovalPolicy()tableBucketName(String tableBucketName) Sets the value ofTableBucketProps.getTableBucketName()unreferencedFileRemoval(UnreferencedFileRemoval unreferencedFileRemoval) Sets the value ofTableBucketProps.getUnreferencedFileRemoval()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tableBucketName
Sets the value ofTableBucketProps.getTableBucketName()- Parameters:
tableBucketName- Name of the S3 TableBucket. This parameter is required.- Returns:
this
-
account
Sets the value ofTableBucketProps.getAccount()- Parameters:
account- AWS Account ID of the table bucket owner.- Returns:
this
-
encryption
@Stability(Experimental) public TableBucketProps.Builder encryption(TableBucketEncryption encryption) Sets the value ofTableBucketProps.getEncryption()- Parameters:
encryption- The kind of server-side encryption to apply to this bucket. If you choose KMS, you can specify a KMS key viaencryptionKey. If encryption key is not specified, a key will automatically be created.- Returns:
this
-
encryptionKey
Sets the value ofTableBucketProps.getEncryptionKey()- Parameters:
encryptionKey- External KMS key to use for bucket encryption. Theencryptionproperty must be either not specified or set toKMS. An error will be emitted ifencryptionis set toS3_MANAGED.- Returns:
this
-
region
Sets the value ofTableBucketProps.getRegion()- Parameters:
region- AWS region that the table bucket exists in.- Returns:
this
-
removalPolicy
Sets the value ofTableBucketProps.getRemovalPolicy()- Parameters:
removalPolicy- Controls what happens to this table bucket it it stoped being managed by cloudformation.- Returns:
this
-
unreferencedFileRemoval
@Stability(Experimental) public TableBucketProps.Builder unreferencedFileRemoval(UnreferencedFileRemoval unreferencedFileRemoval) Sets the value ofTableBucketProps.getUnreferencedFileRemoval()- Parameters:
unreferencedFileRemoval- Unreferenced file removal settings for the S3 TableBucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TableBucketProps>- Returns:
- a new instance of
TableBucketProps - Throws:
NullPointerException- if any required attribute was not provided
-