Class SnapshotCredentialsFromGeneratedPasswordOptions.Builder
java.lang.Object
software.amazon.awscdk.services.rds.SnapshotCredentialsFromGeneratedPasswordOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SnapshotCredentialsFromGeneratedPasswordOptions>
- Enclosing interface:
- SnapshotCredentialsFromGeneratedPasswordOptions
@Stability(Stable)
public static final class SnapshotCredentialsFromGeneratedPasswordOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SnapshotCredentialsFromGeneratedPasswordOptions>
A builder for
SnapshotCredentialsFromGeneratedPasswordOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKey(IKey encryptionKey) Sets the value ofSnapshotCredentialsFromGeneratedPasswordOptions.getEncryptionKey()excludeCharacters(String excludeCharacters) Sets the value ofSnapshotCredentialsFromGeneratedPasswordOptions.getExcludeCharacters()replicaRegions(List<? extends ReplicaRegion> replicaRegions) Sets the value ofSnapshotCredentialsFromGeneratedPasswordOptions.getReplicaRegions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionKey
@Stability(Stable) public SnapshotCredentialsFromGeneratedPasswordOptions.Builder encryptionKey(IKey encryptionKey) Sets the value ofSnapshotCredentialsFromGeneratedPasswordOptions.getEncryptionKey()- Parameters:
encryptionKey- KMS encryption key to encrypt the generated secret.- Returns:
this
-
excludeCharacters
@Stability(Stable) public SnapshotCredentialsFromGeneratedPasswordOptions.Builder excludeCharacters(String excludeCharacters) Sets the value ofSnapshotCredentialsFromGeneratedPasswordOptions.getExcludeCharacters()- Parameters:
excludeCharacters- The characters to exclude from the generated password.- Returns:
this
-
replicaRegions
@Stability(Stable) public SnapshotCredentialsFromGeneratedPasswordOptions.Builder replicaRegions(List<? extends ReplicaRegion> replicaRegions) Sets the value ofSnapshotCredentialsFromGeneratedPasswordOptions.getReplicaRegions()- Parameters:
replicaRegions- A list of regions where to replicate this secret.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SnapshotCredentialsFromGeneratedPasswordOptions>- Returns:
- a new instance of
SnapshotCredentialsFromGeneratedPasswordOptions - Throws:
NullPointerException- if any required attribute was not provided
-