Class CfnConnection.RedshiftCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.datazone.CfnConnection.RedshiftCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnection.RedshiftCredentialsProperty>
- Enclosing interface:
CfnConnection.RedshiftCredentialsProperty
@Stability(Stable)
public static final class CfnConnection.RedshiftCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnection.RedshiftCredentialsProperty>
A builder for
CfnConnection.RedshiftCredentialsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnConnection.RedshiftCredentialsProperty.getSecretArn()usernamePassword(IResolvable usernamePassword) Sets the value ofCfnConnection.RedshiftCredentialsProperty.getUsernamePassword()usernamePassword(CfnConnection.UsernamePasswordProperty usernamePassword) Sets the value ofCfnConnection.RedshiftCredentialsProperty.getUsernamePassword()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secretArn
@Stability(Stable) public CfnConnection.RedshiftCredentialsProperty.Builder secretArn(String secretArn) Sets the value ofCfnConnection.RedshiftCredentialsProperty.getSecretArn()- Parameters:
secretArn- The secret ARN of the Amazon Redshift credentials of a connection.- Returns:
this
-
usernamePassword
@Stability(Stable) public CfnConnection.RedshiftCredentialsProperty.Builder usernamePassword(IResolvable usernamePassword) Sets the value ofCfnConnection.RedshiftCredentialsProperty.getUsernamePassword()- Parameters:
usernamePassword- The username and password of the Amazon Redshift credentials of a connection.- Returns:
this
-
usernamePassword
@Stability(Stable) public CfnConnection.RedshiftCredentialsProperty.Builder usernamePassword(CfnConnection.UsernamePasswordProperty usernamePassword) Sets the value ofCfnConnection.RedshiftCredentialsProperty.getUsernamePassword()- Parameters:
usernamePassword- The username and password of the Amazon Redshift credentials of a connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnection.RedshiftCredentialsProperty>- Returns:
- a new instance of
CfnConnection.RedshiftCredentialsProperty - Throws:
NullPointerException- if any required attribute was not provided
-