Class CfnNamespaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnNamespaceProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnNamespaceProps>
- Enclosing interface:
- CfnNamespaceProps
@Stability(Stable)
public static final class CfnNamespaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNamespaceProps>
A builder for 
CfnNamespaceProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionadminUsername(String adminUsername) Sets the value ofCfnNamespaceProps.getAdminUsername()adminUserPassword(String adminUserPassword) Sets the value ofCfnNamespaceProps.getAdminUserPassword()build()Builds the configured instance.Sets the value ofCfnNamespaceProps.getDbName()defaultIamRoleArn(String defaultIamRoleArn) Sets the value ofCfnNamespaceProps.getDefaultIamRoleArn()finalSnapshotName(String finalSnapshotName) Sets the value ofCfnNamespaceProps.getFinalSnapshotName()finalSnapshotRetentionPeriod(Number finalSnapshotRetentionPeriod) Sets the value ofCfnNamespaceProps.getFinalSnapshotRetentionPeriod()Sets the value ofCfnNamespaceProps.getIamRoles()Sets the value ofCfnNamespaceProps.getKmsKeyId()logExports(List<String> logExports) Sets the value ofCfnNamespaceProps.getLogExports()namespaceName(String namespaceName) Sets the value ofCfnNamespaceProps.getNamespaceName()Sets the value ofCfnNamespaceProps.getTags()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
namespaceNameSets the value ofCfnNamespaceProps.getNamespaceName()- Parameters:
- namespaceName- The name of the namespace. This parameter is required. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
- Returns:
- this
 
- 
adminUsernameSets the value ofCfnNamespaceProps.getAdminUsername()- Parameters:
- adminUsername- The username of the administrator for the primary database created in the namespace.
- Returns:
- this
 
- 
adminUserPasswordSets the value ofCfnNamespaceProps.getAdminUserPassword()- Parameters:
- adminUserPassword- The password of the administrator for the primary database created in the namespace.
- Returns:
- this
 
- 
dbNameSets the value ofCfnNamespaceProps.getDbName()- Parameters:
- dbName- The name of the primary database created in the namespace.
- Returns:
- this
 
- 
defaultIamRoleArnSets the value ofCfnNamespaceProps.getDefaultIamRoleArn()- Parameters:
- defaultIamRoleArn- The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
- Returns:
- this
 
- 
finalSnapshotNameSets the value ofCfnNamespaceProps.getFinalSnapshotName()- Parameters:
- finalSnapshotName- The name of the snapshot to be created before the namespace is deleted.
- Returns:
- this
 
- 
finalSnapshotRetentionPeriod@Stability(Stable) public CfnNamespaceProps.Builder finalSnapshotRetentionPeriod(Number finalSnapshotRetentionPeriod) Sets the value ofCfnNamespaceProps.getFinalSnapshotRetentionPeriod()- Parameters:
- finalSnapshotRetentionPeriod- How long to retain the final snapshot.
- Returns:
- this
 
- 
iamRolesSets the value ofCfnNamespaceProps.getIamRoles()- Parameters:
- iamRoles- A list of IAM roles to associate with the namespace.
- Returns:
- this
 
- 
kmsKeyIdSets the value ofCfnNamespaceProps.getKmsKeyId()- Parameters:
- kmsKeyId- The ID of the AWS Key Management Service key used to encrypt your data.
- Returns:
- this
 
- 
logExportsSets the value ofCfnNamespaceProps.getLogExports()- Parameters:
- logExports- The types of logs the namespace can export. Available export types are- userlog,- connectionlog, and- useractivitylog.
- Returns:
- this
 
- 
tagsSets the value ofCfnNamespaceProps.getTags()- Parameters:
- tags- The map of the key-value pairs used to tag the namespace.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnNamespaceProps>
- Returns:
- a new instance of CfnNamespaceProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-