Class DatabaseSecretProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.alpha.DatabaseSecretProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseSecretProps>
- Enclosing interface:
DatabaseSecretProps
@Stability(Experimental)
public static final class DatabaseSecretProps.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseSecretProps>
A builder for
DatabaseSecretProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKey(IKey encryptionKey) Sets the value ofDatabaseSecretProps.getEncryptionKey()excludeCharacters(String excludeCharacters) Sets the value ofDatabaseSecretProps.getExcludeCharacters()Sets the value ofDatabaseSecretProps.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
username
Sets the value ofDatabaseSecretProps.getUsername()- Parameters:
username- The username. This parameter is required.- Returns:
this
-
encryptionKey
Sets the value ofDatabaseSecretProps.getEncryptionKey()- Parameters:
encryptionKey- The KMS key to use to encrypt the secret.- Returns:
this
-
excludeCharacters
@Stability(Experimental) public DatabaseSecretProps.Builder excludeCharacters(String excludeCharacters) Sets the value ofDatabaseSecretProps.getExcludeCharacters()- Parameters:
excludeCharacters- Characters to not include in the generated password.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseSecretProps>- Returns:
- a new instance of
DatabaseSecretProps - Throws:
NullPointerException- if any required attribute was not provided
-