Class CfnAnomalyDetectorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnAnomalyDetectorMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorMixinProps>
- Enclosing interface:
CfnAnomalyDetectorMixinProps
@Stability(Stable)
public static final class CfnAnomalyDetectorMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorMixinProps>
A builder for
CfnAnomalyDetectorMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAnomalyDetectorMixinProps.getAlias()build()Builds the configured instance.Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()configuration(IResolvable configuration) Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()evaluationIntervalInSeconds(Number evaluationIntervalInSeconds) Sets the value ofCfnAnomalyDetectorMixinProps.getEvaluationIntervalInSeconds()Sets the value ofCfnAnomalyDetectorMixinProps.getLabels()labels(IResolvable labels) Sets the value ofCfnAnomalyDetectorMixinProps.getLabels()missingDataAction(CfnAnomalyDetectorPropsMixin.MissingDataActionProperty missingDataAction) Sets the value ofCfnAnomalyDetectorMixinProps.getMissingDataAction()missingDataAction(IResolvable missingDataAction) Sets the value ofCfnAnomalyDetectorMixinProps.getMissingDataAction()Sets the value ofCfnAnomalyDetectorMixinProps.getTags()Sets the value ofCfnAnomalyDetectorMixinProps.getWorkspace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnAnomalyDetectorMixinProps.getAlias()- Parameters:
alias- The user-friendly name of the anomaly detector.- Returns:
this
-
configuration
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder configuration(IResolvable configuration) Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()- Parameters:
configuration- The algorithm configuration of the anomaly detector.- Returns:
this
-
configuration
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder configuration(CfnAnomalyDetectorPropsMixin.AnomalyDetectorConfigurationProperty configuration) Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()- Parameters:
configuration- The algorithm configuration of the anomaly detector.- Returns:
this
-
evaluationIntervalInSeconds
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder evaluationIntervalInSeconds(Number evaluationIntervalInSeconds) Sets the value ofCfnAnomalyDetectorMixinProps.getEvaluationIntervalInSeconds()- Parameters:
evaluationIntervalInSeconds- The frequency, in seconds, at which the anomaly detector evaluates metrics.- Returns:
this
-
labels
Sets the value ofCfnAnomalyDetectorMixinProps.getLabels()- Parameters:
labels- The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.- Returns:
this
-
labels
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder labels(List<? extends Object> labels) Sets the value ofCfnAnomalyDetectorMixinProps.getLabels()- Parameters:
labels- The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.- Returns:
this
-
missingDataAction
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder missingDataAction(IResolvable missingDataAction) Sets the value ofCfnAnomalyDetectorMixinProps.getMissingDataAction()- Parameters:
missingDataAction- The action taken when data is missing during evaluation.- Returns:
this
-
missingDataAction
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder missingDataAction(CfnAnomalyDetectorPropsMixin.MissingDataActionProperty missingDataAction) Sets the value ofCfnAnomalyDetectorMixinProps.getMissingDataAction()- Parameters:
missingDataAction- The action taken when data is missing during evaluation.- Returns:
this
-
tags
Sets the value ofCfnAnomalyDetectorMixinProps.getTags()- Parameters:
tags- The tags applied to the anomaly detector.- Returns:
this
-
workspace
Sets the value ofCfnAnomalyDetectorMixinProps.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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorMixinProps>- Returns:
- a new instance of
CfnAnomalyDetectorMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-