Class CfnNamespace.NamespaceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnNamespace.NamespaceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNamespace.NamespaceProperty>
- Enclosing interface:
CfnNamespace.NamespaceProperty
@Stability(Stable)
public static final class CfnNamespace.NamespaceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNamespace.NamespaceProperty>
A builder for
CfnNamespace.NamespaceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadminPasswordSecretArn(String adminPasswordSecretArn) Sets the value ofCfnNamespace.NamespaceProperty.getAdminPasswordSecretArn()adminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId) Sets the value ofCfnNamespace.NamespaceProperty.getAdminPasswordSecretKmsKeyId()adminUsername(String adminUsername) Sets the value ofCfnNamespace.NamespaceProperty.getAdminUsername()build()Builds the configured instance.creationDate(String creationDate) Sets the value ofCfnNamespace.NamespaceProperty.getCreationDate()Sets the value ofCfnNamespace.NamespaceProperty.getDbName()defaultIamRoleArn(String defaultIamRoleArn) Sets the value ofCfnNamespace.NamespaceProperty.getDefaultIamRoleArn()Sets the value ofCfnNamespace.NamespaceProperty.getIamRoles()Sets the value ofCfnNamespace.NamespaceProperty.getKmsKeyId()logExports(List<String> logExports) Sets the value ofCfnNamespace.NamespaceProperty.getLogExports()namespaceArn(String namespaceArn) Sets the value ofCfnNamespace.NamespaceProperty.getNamespaceArn()namespaceId(String namespaceId) Sets the value ofCfnNamespace.NamespaceProperty.getNamespaceId()namespaceName(String namespaceName) Sets the value ofCfnNamespace.NamespaceProperty.getNamespaceName()Sets the value ofCfnNamespace.NamespaceProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adminPasswordSecretArn
@Stability(Stable) public CfnNamespace.NamespaceProperty.Builder adminPasswordSecretArn(String adminPasswordSecretArn) Sets the value ofCfnNamespace.NamespaceProperty.getAdminPasswordSecretArn()- Parameters:
adminPasswordSecretArn- The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.- Returns:
this
-
adminPasswordSecretKmsKeyId
@Stability(Stable) public CfnNamespace.NamespaceProperty.Builder adminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId) Sets the value ofCfnNamespace.NamespaceProperty.getAdminPasswordSecretKmsKeyId()- Parameters:
adminPasswordSecretKmsKeyId- The ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.- Returns:
this
-
adminUsername
@Stability(Stable) public CfnNamespace.NamespaceProperty.Builder adminUsername(String adminUsername) Sets the value ofCfnNamespace.NamespaceProperty.getAdminUsername()- Parameters:
adminUsername- The username of the administrator for the first database created in the namespace.- Returns:
this
-
creationDate
Sets the value ofCfnNamespace.NamespaceProperty.getCreationDate()- Parameters:
creationDate- The date of when the namespace was created.- Returns:
this
-
dbName
Sets the value ofCfnNamespace.NamespaceProperty.getDbName()- Parameters:
dbName- The name of the first database created in the namespace.- Returns:
this
-
defaultIamRoleArn
@Stability(Stable) public CfnNamespace.NamespaceProperty.Builder defaultIamRoleArn(String defaultIamRoleArn) Sets the value ofCfnNamespace.NamespaceProperty.getDefaultIamRoleArn()- Parameters:
defaultIamRoleArn- The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.- Returns:
this
-
iamRoles
Sets the value ofCfnNamespace.NamespaceProperty.getIamRoles()- Parameters:
iamRoles- A list of IAM roles to associate with the namespace.- Returns:
this
-
kmsKeyId
Sets the value ofCfnNamespace.NamespaceProperty.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the AWS Key Management Service key used to encrypt your data.- Returns:
this
-
logExports
@Stability(Stable) public CfnNamespace.NamespaceProperty.Builder logExports(List<String> logExports) Sets the value ofCfnNamespace.NamespaceProperty.getLogExports()- Parameters:
logExports- The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.- Returns:
this
-
namespaceArn
Sets the value ofCfnNamespace.NamespaceProperty.getNamespaceArn()- Parameters:
namespaceArn- The Amazon Resource Name (ARN) associated with a namespace.- Returns:
this
-
namespaceId
Sets the value ofCfnNamespace.NamespaceProperty.getNamespaceId()- Parameters:
namespaceId- The unique identifier of a namespace.- Returns:
this
-
namespaceName
@Stability(Stable) public CfnNamespace.NamespaceProperty.Builder namespaceName(String namespaceName) Sets the value ofCfnNamespace.NamespaceProperty.getNamespaceName()- Parameters:
namespaceName- The name of the namespace. 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
-
status
Sets the value ofCfnNamespace.NamespaceProperty.getStatus()- Parameters:
status- The status of the namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNamespace.NamespaceProperty>- Returns:
- a new instance of
CfnNamespace.NamespaceProperty - Throws:
NullPointerException- if any required attribute was not provided
-