Class CfnDatabaseProps.Builder
java.lang.Object
software.amazon.awscdk.services.timestream.CfnDatabaseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatabaseProps>
- Enclosing interface:
- CfnDatabaseProps
@Stability(Stable)
public static final class CfnDatabaseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatabaseProps>
A builder for
CfnDatabaseProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.databaseName(String databaseName) Sets the value ofCfnDatabaseProps.getDatabaseName()Sets the value ofCfnDatabaseProps.getKmsKeyId()Sets the value ofCfnDatabaseProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
databaseName
Sets the value ofCfnDatabaseProps.getDatabaseName()- Parameters:
databaseName- The name of the Timestream database. Length Constraints : Minimum length of 3 bytes. Maximum length of 256 bytes.- Returns:
this
-
kmsKeyId
Sets the value ofCfnDatabaseProps.getKmsKeyId()- Parameters:
kmsKeyId- The identifier of the AWS KMS key used to encrypt the data stored in the database.- Returns:
this
-
tags
Sets the value ofCfnDatabaseProps.getTags()- Parameters:
tags- The tags to add to the database.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatabaseProps>- Returns:
- a new instance of
CfnDatabaseProps - Throws:
NullPointerException- if any required attribute was not provided
-