Class Login.Builder

java.lang.Object
software.amazon.awscdk.services.redshift.Login.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Login>
Enclosing interface:
Login

@Stability(Experimental) 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

    • masterUsername

      @Stability(Experimental) public Login.Builder masterUsername(String masterUsername)
      Sets the value of Login.getMasterUsername()
      Parameters:
      masterUsername - Username. This parameter is required.
      Returns:
      this
    • encryptionKey

      @Stability(Experimental) public Login.Builder encryptionKey(IKey encryptionKey)
      Sets the value of Login.getEncryptionKey()
      Parameters:
      encryptionKey - KMS encryption key to encrypt the generated secret.
      Returns:
      this
    • masterPassword

      @Stability(Experimental) public Login.Builder masterPassword(SecretValue masterPassword)
      Sets the value of Login.getMasterPassword()
      Parameters:
      masterPassword - Password. Do not put passwords in your CDK code directly.
      Returns:
      this
    • build

      @Stability(Experimental) 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