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