Class CfnDataSource.RedshiftParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.RedshiftParametersProperty>
- Enclosing interface:
- CfnDataSource.RedshiftParametersProperty
@Stability(Stable)
public static final class CfnDataSource.RedshiftParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.RedshiftParametersProperty>
A builder for
CfnDataSource.RedshiftParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDataSource.RedshiftParametersProperty.getClusterId()Sets the value ofCfnDataSource.RedshiftParametersProperty.getDatabase()Sets the value ofCfnDataSource.RedshiftParametersProperty.getHost()Sets the value ofCfnDataSource.RedshiftParametersProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
database
@Stability(Stable) public CfnDataSource.RedshiftParametersProperty.Builder database(String database) Sets the value ofCfnDataSource.RedshiftParametersProperty.getDatabase()- Parameters:
database- Database. This parameter is required.- Returns:
this
-
clusterId
@Stability(Stable) public CfnDataSource.RedshiftParametersProperty.Builder clusterId(String clusterId) Sets the value ofCfnDataSource.RedshiftParametersProperty.getClusterId()- Parameters:
clusterId- Cluster ID. This field can be blank if theHostandPortare provided.- Returns:
this
-
host
Sets the value ofCfnDataSource.RedshiftParametersProperty.getHost()- Parameters:
host- Host. This field can be blank ifClusterIdis provided.- Returns:
this
-
port
Sets the value ofCfnDataSource.RedshiftParametersProperty.getPort()- Parameters:
port- Port. This field can be blank if theClusterIdis provided.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.RedshiftParametersProperty>- Returns:
- a new instance of
CfnDataSource.RedshiftParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-