Class CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.RedshiftSourceConfigProperty>
- Enclosing interface:
CfnAnomalyDetector.RedshiftSourceConfigProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.RedshiftSourceConfigProperty>
A builder for
CfnAnomalyDetector.RedshiftSourceConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterIdentifier(String clusterIdentifier) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getClusterIdentifier()databaseHost(String databaseHost) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getDatabaseHost()databaseName(String databaseName) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getDatabaseName()databasePort(Number databasePort) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getDatabasePort()Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getRoleArn()secretManagerArn(String secretManagerArn) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getSecretManagerArn()Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getTableName()vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getVpcConfiguration()vpcConfiguration(CfnAnomalyDetector.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getVpcConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterIdentifier
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder clusterIdentifier(String clusterIdentifier) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getClusterIdentifier()- Parameters:
clusterIdentifier- A string identifying the Redshift cluster. This parameter is required.- Returns:
this
-
databaseHost
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder databaseHost(String databaseHost) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getDatabaseHost()- Parameters:
databaseHost- The name of the database host. This parameter is required.- Returns:
this
-
databaseName
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder databaseName(String databaseName) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getDatabaseName()- Parameters:
databaseName- The Redshift database name. This parameter is required.- Returns:
this
-
databasePort
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder databasePort(Number databasePort) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getDatabasePort()- Parameters:
databasePort- The port number where the database can be accessed. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder roleArn(String roleArn) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the role providing access to the database. This parameter is required.- Returns:
this
-
secretManagerArn
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder secretManagerArn(String secretManagerArn) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getSecretManagerArn()- Parameters:
secretManagerArn- The Amazon Resource Name (ARN) of the AWS Secrets Manager role. This parameter is required.- Returns:
this
-
tableName
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder tableName(String tableName) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getTableName()- Parameters:
tableName- The table name of the Redshift database. This parameter is required.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getVpcConfiguration()- Parameters:
vpcConfiguration- Contains information about the Amazon Virtual Private Cloud (VPC) configuration. This parameter is required.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAnomalyDetector.RedshiftSourceConfigProperty.Builder vpcConfiguration(CfnAnomalyDetector.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnAnomalyDetector.RedshiftSourceConfigProperty.getVpcConfiguration()- Parameters:
vpcConfiguration- Contains information about the Amazon Virtual Private Cloud (VPC) configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.RedshiftSourceConfigProperty>- Returns:
- a new instance of
CfnAnomalyDetector.RedshiftSourceConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-