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 Details

    • Builder

      public Builder()
  • Method Details

    • username

      @Stability(Stable) public Login.Builder username(String username)
      Sets the value of Login.getUsername()
      Parameters:
      username - Username. This parameter is required.
      Returns:
      this
    • excludeCharacters

      @Stability(Stable) public Login.Builder excludeCharacters(String excludeCharacters)
      Parameters:
      excludeCharacters - Specifies characters to not include in generated passwords.
      Returns:
      this
    • kmsKey

      @Stability(Stable) public Login.Builder kmsKey(IKey kmsKey)
      Sets the value of Login.getKmsKey()
      Parameters:
      kmsKey - KMS encryption key to encrypt the generated secret.
      Returns:
      this
    • password

      @Stability(Stable) public Login.Builder password(SecretValue password)
      Sets the value of Login.getPassword()
      Parameters:
      password - Password. Do not put passwords in your CDK code directly.
      Returns:
      this
    • secretName

      @Stability(Stable) public Login.Builder secretName(String secretName)
      Sets the value of Login.getSecretName()
      Parameters:
      secretName - The physical name of the secret, that will be generated.
      Returns:
      this
    • build

      @Stability(Stable) public Login build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Login>
      Returns:
      a new instance of Login
      Throws:
      NullPointerException - if any required attribute was not provided