Class DatabaseOptions.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.alpha.DatabaseOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseOptions>
- Enclosing interface:
DatabaseOptions
@Stability(Experimental)
public static final class DatabaseOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseOptions>
A builder for
DatabaseOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDatabaseOptions.getAdminUser()
build()
Builds the configured instance.Sets the value ofDatabaseOptions.getCluster()
databaseName
(String databaseName) Sets the value ofDatabaseOptions.getDatabaseName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofDatabaseOptions.getCluster()
- Parameters:
cluster
- The cluster containing the database. This parameter is required.- Returns:
this
-
databaseName
Sets the value ofDatabaseOptions.getDatabaseName()
- Parameters:
databaseName
- The name of the database. This parameter is required.- Returns:
this
-
adminUser
Sets the value ofDatabaseOptions.getAdminUser()
- Parameters:
adminUser
- The secret containing credentials to a Redshift user with administrator privileges. Secret JSON schema:{ username: string; password: string }
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DatabaseOptions>
- Returns:
- a new instance of
DatabaseOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-