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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryptionKey
(IKey encryptionKey) Sets the value ofLogin.getEncryptionKey()
masterPassword
(SecretValue masterPassword) Sets the value ofLogin.getMasterPassword()
masterUsername
(String masterUsername) Sets the value ofLogin.getMasterUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
masterUsername
Sets the value ofLogin.getMasterUsername()
- Parameters:
masterUsername
- Username. This parameter is required.- Returns:
this
-
encryptionKey
Sets the value ofLogin.getEncryptionKey()
- Parameters:
encryptionKey
- KMS encryption key to encrypt the generated secret.- Returns:
this
-
masterPassword
Sets the value ofLogin.getMasterPassword()
- Parameters:
masterPassword
- Password. Do not put passwords in your CDK code directly.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Login>
- Returns:
- a new instance of
Login
- Throws:
NullPointerException
- if any required attribute was not provided
-