Class CfnAnomalyDetectorProps.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetectorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorProps>
- Enclosing interface:
CfnAnomalyDetectorProps
@Stability(Stable)
public static final class CfnAnomalyDetectorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorProps>
A builder for
CfnAnomalyDetectorProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanomalyDetectorConfig
(IResolvable anomalyDetectorConfig) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorConfig()
anomalyDetectorConfig
(CfnAnomalyDetector.AnomalyDetectorConfigProperty anomalyDetectorConfig) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorConfig()
anomalyDetectorDescription
(String anomalyDetectorDescription) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorDescription()
anomalyDetectorName
(String anomalyDetectorName) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorName()
build()
Builds the configured instance.Sets the value ofCfnAnomalyDetectorProps.getKmsKeyArn()
metricSetList
(List<? extends Object> metricSetList) Sets the value ofCfnAnomalyDetectorProps.getMetricSetList()
metricSetList
(IResolvable metricSetList) Sets the value ofCfnAnomalyDetectorProps.getMetricSetList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
anomalyDetectorConfig
@Stability(Stable) public CfnAnomalyDetectorProps.Builder anomalyDetectorConfig(IResolvable anomalyDetectorConfig) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorConfig()
- Parameters:
anomalyDetectorConfig
- Contains information about the configuration of the anomaly detector. This parameter is required.- Returns:
this
-
anomalyDetectorConfig
@Stability(Stable) public CfnAnomalyDetectorProps.Builder anomalyDetectorConfig(CfnAnomalyDetector.AnomalyDetectorConfigProperty anomalyDetectorConfig) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorConfig()
- Parameters:
anomalyDetectorConfig
- Contains information about the configuration of the anomaly detector. This parameter is required.- Returns:
this
-
metricSetList
Sets the value ofCfnAnomalyDetectorProps.getMetricSetList()
- Parameters:
metricSetList
- The detector's dataset. This parameter is required.- Returns:
this
-
metricSetList
@Stability(Stable) public CfnAnomalyDetectorProps.Builder metricSetList(List<? extends Object> metricSetList) Sets the value ofCfnAnomalyDetectorProps.getMetricSetList()
- Parameters:
metricSetList
- The detector's dataset. This parameter is required.- Returns:
this
-
anomalyDetectorDescription
@Stability(Stable) public CfnAnomalyDetectorProps.Builder anomalyDetectorDescription(String anomalyDetectorDescription) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorDescription()
- Parameters:
anomalyDetectorDescription
- A description of the detector.- Returns:
this
-
anomalyDetectorName
@Stability(Stable) public CfnAnomalyDetectorProps.Builder anomalyDetectorName(String anomalyDetectorName) Sets the value ofCfnAnomalyDetectorProps.getAnomalyDetectorName()
- Parameters:
anomalyDetectorName
- The name of the detector.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnAnomalyDetectorProps.getKmsKeyArn()
- Parameters:
kmsKeyArn
- The ARN of the KMS key to use to encrypt your data.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorProps>
- Returns:
- a new instance of
CfnAnomalyDetectorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-