Class Login.Builder
java.lang.Object
software.amazon.awscdk.services.docdb.Login.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Login>
- Enclosing interface:
- Login
@Stability(Stable)
public static final class Login.Builder
extends Object
implements software.amazon.jsii.Builder<Login>
A builder for
Login-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludeCharacters(String excludeCharacters) Sets the value ofLogin.getExcludeCharacters()Sets the value ofLogin.getKmsKey()password(SecretValue password) Sets the value ofLogin.getPassword()secretName(String secretName) Sets the value ofLogin.getSecretName()Sets the value ofLogin.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
username
Sets the value ofLogin.getUsername()- Parameters:
username- Username. This parameter is required.- Returns:
this
-
excludeCharacters
Sets the value ofLogin.getExcludeCharacters()- Parameters:
excludeCharacters- Specifies characters to not include in generated passwords.- Returns:
this
-
kmsKey
Sets the value ofLogin.getKmsKey()- Parameters:
kmsKey- KMS encryption key to encrypt the generated secret.- Returns:
this
-
password
Sets the value ofLogin.getPassword()- Parameters:
password- Password. Do not put passwords in your CDK code directly.- Returns:
this
-
secretName
Sets the value ofLogin.getSecretName()- Parameters:
secretName- The physical name of the secret, that will be generated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Login>- Returns:
- a new instance of
Login - Throws:
NullPointerException- if any required attribute was not provided
-