Class CfnAnomalyDetector.CloudwatchConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.CloudwatchConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.CloudwatchConfigProperty>
- Enclosing interface:
CfnAnomalyDetector.CloudwatchConfigProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.CloudwatchConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.CloudwatchConfigProperty>
A builder for
CfnAnomalyDetector.CloudwatchConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAnomalyDetector.CloudwatchConfigProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
@Stability(Stable) public CfnAnomalyDetector.CloudwatchConfigProperty.Builder roleArn(String roleArn) Sets the value ofCfnAnomalyDetector.CloudwatchConfigProperty.getRoleArn()
- Parameters:
roleArn
- An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.CloudwatchConfigProperty>
- Returns:
- a new instance of
CfnAnomalyDetector.CloudwatchConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-