Class CfnAnomalyDetector.MetricSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.MetricSourceProperty>
- Enclosing interface:
CfnAnomalyDetector.MetricSourceProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.MetricSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.MetricSourceProperty>
A builder for
CfnAnomalyDetector.MetricSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappFlowConfig(IResolvable appFlowConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getAppFlowConfig()appFlowConfig(CfnAnomalyDetector.AppFlowConfigProperty appFlowConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getAppFlowConfig()build()Builds the configured instance.cloudwatchConfig(IResolvable cloudwatchConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getCloudwatchConfig()cloudwatchConfig(CfnAnomalyDetector.CloudwatchConfigProperty cloudwatchConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getCloudwatchConfig()rdsSourceConfig(IResolvable rdsSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRdsSourceConfig()rdsSourceConfig(CfnAnomalyDetector.RDSSourceConfigProperty rdsSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRdsSourceConfig()redshiftSourceConfig(IResolvable redshiftSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRedshiftSourceConfig()redshiftSourceConfig(CfnAnomalyDetector.RedshiftSourceConfigProperty redshiftSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRedshiftSourceConfig()s3SourceConfig(IResolvable s3SourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getS3SourceConfig()s3SourceConfig(CfnAnomalyDetector.S3SourceConfigProperty s3SourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getS3SourceConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appFlowConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder appFlowConfig(IResolvable appFlowConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getAppFlowConfig()- Parameters:
appFlowConfig- Details about an AppFlow datasource.- Returns:
this
-
appFlowConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder appFlowConfig(CfnAnomalyDetector.AppFlowConfigProperty appFlowConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getAppFlowConfig()- Parameters:
appFlowConfig- Details about an AppFlow datasource.- Returns:
this
-
cloudwatchConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder cloudwatchConfig(IResolvable cloudwatchConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getCloudwatchConfig()- Parameters:
cloudwatchConfig- Details about an Amazon CloudWatch monitoring datasource.- Returns:
this
-
cloudwatchConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder cloudwatchConfig(CfnAnomalyDetector.CloudwatchConfigProperty cloudwatchConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getCloudwatchConfig()- Parameters:
cloudwatchConfig- Details about an Amazon CloudWatch monitoring datasource.- Returns:
this
-
rdsSourceConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder rdsSourceConfig(IResolvable rdsSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRdsSourceConfig()- Parameters:
rdsSourceConfig- Details about an Amazon Relational Database Service (RDS) datasource.- Returns:
this
-
rdsSourceConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder rdsSourceConfig(CfnAnomalyDetector.RDSSourceConfigProperty rdsSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRdsSourceConfig()- Parameters:
rdsSourceConfig- Details about an Amazon Relational Database Service (RDS) datasource.- Returns:
this
-
redshiftSourceConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder redshiftSourceConfig(IResolvable redshiftSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRedshiftSourceConfig()- Parameters:
redshiftSourceConfig- Details about an Amazon Redshift database datasource.- Returns:
this
-
redshiftSourceConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder redshiftSourceConfig(CfnAnomalyDetector.RedshiftSourceConfigProperty redshiftSourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getRedshiftSourceConfig()- Parameters:
redshiftSourceConfig- Details about an Amazon Redshift database datasource.- Returns:
this
-
s3SourceConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder s3SourceConfig(IResolvable s3SourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getS3SourceConfig()- Parameters:
s3SourceConfig- Contains information about the configuration of the S3 bucket that contains source files.- Returns:
this
-
s3SourceConfig
@Stability(Stable) public CfnAnomalyDetector.MetricSourceProperty.Builder s3SourceConfig(CfnAnomalyDetector.S3SourceConfigProperty s3SourceConfig) Sets the value ofCfnAnomalyDetector.MetricSourceProperty.getS3SourceConfig()- Parameters:
s3SourceConfig- Contains information about the configuration of the S3 bucket that contains source files.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.MetricSourceProperty>- Returns:
- a new instance of
CfnAnomalyDetector.MetricSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-