Class CfnTable.S3ConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.timestream.CfnTable.S3ConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.S3ConfigurationProperty>
- Enclosing interface:
- CfnTable.S3ConfigurationProperty
@Stability(Stable)
public static final class CfnTable.S3ConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.S3ConfigurationProperty>
A builder for
CfnTable.S3ConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) Sets the value ofCfnTable.S3ConfigurationProperty.getBucketName()
build()
Builds the configured instance.encryptionOption
(String encryptionOption) Sets the value ofCfnTable.S3ConfigurationProperty.getEncryptionOption()
Sets the value ofCfnTable.S3ConfigurationProperty.getKmsKeyId()
objectKeyPrefix
(String objectKeyPrefix) Sets the value ofCfnTable.S3ConfigurationProperty.getObjectKeyPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofCfnTable.S3ConfigurationProperty.getBucketName()
- Parameters:
bucketName
- The bucket name of the customer S3 bucket. This parameter is required.- Returns:
this
-
encryptionOption
@Stability(Stable) public CfnTable.S3ConfigurationProperty.Builder encryptionOption(String encryptionOption) Sets the value ofCfnTable.S3ConfigurationProperty.getEncryptionOption()
- Parameters:
encryptionOption
- The encryption option for the customer S3 location. This parameter is required. Options are S3 server-side encryption with an S3 managed key or AWS managed key.- Returns:
this
-
kmsKeyId
Sets the value ofCfnTable.S3ConfigurationProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- The AWS KMS key ID for the customer S3 location when encrypting with an AWS managed key.- Returns:
this
-
objectKeyPrefix
@Stability(Stable) public CfnTable.S3ConfigurationProperty.Builder objectKeyPrefix(String objectKeyPrefix) Sets the value ofCfnTable.S3ConfigurationProperty.getObjectKeyPrefix()
- Parameters:
objectKeyPrefix
- The object key preview for the customer S3 location.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.S3ConfigurationProperty>
- Returns:
- a new instance of
CfnTable.S3ConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-