public static final class UserAttributes.Builder
extends java.lang.Object
UserAttributes
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UserAttributes.Builder |
adminUser(ISecret adminUser)
Sets the value of
DatabaseOptions.getAdminUser() |
UserAttributes |
build()
Builds the configured instance.
|
UserAttributes.Builder |
cluster(ICluster cluster)
Sets the value of
DatabaseOptions.getCluster() |
UserAttributes.Builder |
databaseName(java.lang.String databaseName)
Sets the value of
DatabaseOptions.getDatabaseName() |
UserAttributes.Builder |
password(SecretValue password)
Sets the value of
UserAttributes.getPassword() |
UserAttributes.Builder |
username(java.lang.String username)
Sets the value of
UserAttributes.getUsername() |
public UserAttributes.Builder password(SecretValue password)
UserAttributes.getPassword()
password
- The password of the user. This parameter is required.
Do not put passwords in CDK code directly.this
public UserAttributes.Builder username(java.lang.String username)
UserAttributes.getUsername()
username
- The name of the user. This parameter is required.this
public UserAttributes.Builder cluster(ICluster cluster)
DatabaseOptions.getCluster()
cluster
- The cluster containing the database. This parameter is required.this
public UserAttributes.Builder databaseName(java.lang.String databaseName)
DatabaseOptions.getDatabaseName()
databaseName
- The name of the database. This parameter is required.this
public UserAttributes.Builder adminUser(ISecret adminUser)
DatabaseOptions.getAdminUser()
adminUser
- The secret containing credentials to a Redshift user with administrator privileges.
Secret JSON schema: { username: string; password: string }
.this
public UserAttributes build()
UserAttributes
java.lang.NullPointerException
- if any required attribute was not provided