Class CfnAnomalyDetectorProps.Builder
java.lang.Object
software.amazon.awscdk.services.aps.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAnomalyDetectorProps.getAlias()build()Builds the configured instance.configuration(IResolvable configuration) Sets the value ofCfnAnomalyDetectorProps.getConfiguration()Sets the value ofCfnAnomalyDetectorProps.getConfiguration()evaluationIntervalInSeconds(Number evaluationIntervalInSeconds) Sets the value ofCfnAnomalyDetectorProps.getEvaluationIntervalInSeconds()Sets the value ofCfnAnomalyDetectorProps.getLabels()labels(IResolvable labels) Sets the value ofCfnAnomalyDetectorProps.getLabels()missingDataAction(IResolvable missingDataAction) Sets the value ofCfnAnomalyDetectorProps.getMissingDataAction()missingDataAction(CfnAnomalyDetector.MissingDataActionProperty missingDataAction) Sets the value ofCfnAnomalyDetectorProps.getMissingDataAction()Sets the value ofCfnAnomalyDetectorProps.getTags()Sets the value ofCfnAnomalyDetectorProps.getWorkspace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnAnomalyDetectorProps.getAlias()- Parameters:
alias- The AnomalyDetector alias. This parameter is required.- Returns:
this
-
configuration
Sets the value ofCfnAnomalyDetectorProps.getConfiguration()- Parameters:
configuration- the value to be set. This parameter is required.- Returns:
this
-
configuration
@Stability(Stable) public CfnAnomalyDetectorProps.Builder configuration(CfnAnomalyDetector.AnomalyDetectorConfigurationProperty configuration) Sets the value ofCfnAnomalyDetectorProps.getConfiguration()- Parameters:
configuration- the value to be set. This parameter is required.- Returns:
this
-
workspace
Sets the value ofCfnAnomalyDetectorProps.getWorkspace()- Parameters:
workspace- An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics. This parameter is required.- Returns:
this
-
evaluationIntervalInSeconds
@Stability(Stable) public CfnAnomalyDetectorProps.Builder evaluationIntervalInSeconds(Number evaluationIntervalInSeconds) Sets the value ofCfnAnomalyDetectorProps.getEvaluationIntervalInSeconds()- Parameters:
evaluationIntervalInSeconds- The AnomalyDetector period of detection and metric generation.- Returns:
this
-
labels
Sets the value ofCfnAnomalyDetectorProps.getLabels()- Parameters:
labels- An array of key-value pairs to provide meta-data.- Returns:
this
-
labels
Sets the value ofCfnAnomalyDetectorProps.getLabels()- Parameters:
labels- An array of key-value pairs to provide meta-data.- Returns:
this
-
missingDataAction
@Stability(Stable) public CfnAnomalyDetectorProps.Builder missingDataAction(IResolvable missingDataAction) Sets the value ofCfnAnomalyDetectorProps.getMissingDataAction()- Parameters:
missingDataAction- the value to be set.- Returns:
this
-
missingDataAction
@Stability(Stable) public CfnAnomalyDetectorProps.Builder missingDataAction(CfnAnomalyDetector.MissingDataActionProperty missingDataAction) Sets the value ofCfnAnomalyDetectorProps.getMissingDataAction()- Parameters:
missingDataAction- the value to be set.- Returns:
this
-
tags
Sets the value ofCfnAnomalyDetectorProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorProps>- Returns:
- a new instance of
CfnAnomalyDetectorProps - Throws:
NullPointerException- if any required attribute was not provided
-