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