Class CfnAnomalyDetector.RDSSourceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.RDSSourceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.RDSSourceConfigProperty>
- Enclosing interface:
- CfnAnomalyDetector.RDSSourceConfigProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.RDSSourceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.RDSSourceConfigProperty>
A builder for
CfnAnomalyDetector.RDSSourceConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.databaseHost(String databaseHost) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDatabaseHost()databaseName(String databaseName) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDatabaseName()databasePort(Number databasePort) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDatabasePort()dbInstanceIdentifier(String dbInstanceIdentifier) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDbInstanceIdentifier()Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getRoleArn()secretManagerArn(String secretManagerArn) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getSecretManagerArn()Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getTableName()vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getVpcConfiguration()vpcConfiguration(CfnAnomalyDetector.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getVpcConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
databaseHost
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder databaseHost(String databaseHost) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDatabaseHost()- Parameters:
databaseHost- The host name of the database. This parameter is required.- Returns:
this
-
databaseName
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder databaseName(String databaseName) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDatabaseName()- Parameters:
databaseName- The name of the RDS database. This parameter is required.- Returns:
this
-
databasePort
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder databasePort(Number databasePort) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDatabasePort()- Parameters:
databasePort- The port number where the database can be accessed. This parameter is required.- Returns:
this
-
dbInstanceIdentifier
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder dbInstanceIdentifier(String dbInstanceIdentifier) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getDbInstanceIdentifier()- Parameters:
dbInstanceIdentifier- A string identifying the database instance. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder roleArn(String roleArn) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the role. This parameter is required.- Returns:
this
-
secretManagerArn
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder secretManagerArn(String secretManagerArn) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.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.RDSSourceConfigProperty.Builder tableName(String tableName) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getTableName()- Parameters:
tableName- The name of the table in the database. This parameter is required.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getVpcConfiguration()- Parameters:
vpcConfiguration- An object containing information about the Amazon Virtual Private Cloud (VPC) configuration. This parameter is required.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAnomalyDetector.RDSSourceConfigProperty.Builder vpcConfiguration(CfnAnomalyDetector.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnAnomalyDetector.RDSSourceConfigProperty.getVpcConfiguration()- Parameters:
vpcConfiguration- An object containing 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.RDSSourceConfigProperty>- Returns:
- a new instance of
CfnAnomalyDetector.RDSSourceConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-