Class CfnAnomalyDetectorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.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 TypeMethodDescriptionbuild()Builds the configured instance.configuration(CfnAnomalyDetectorPropsMixin.ConfigurationProperty configuration) Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()configuration(IResolvable configuration) Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()dimensions(List<? extends Object> dimensions) Sets the value ofCfnAnomalyDetectorMixinProps.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnAnomalyDetectorMixinProps.getDimensions()metricCharacteristics(CfnAnomalyDetectorPropsMixin.MetricCharacteristicsProperty metricCharacteristics) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricCharacteristics()metricCharacteristics(IResolvable metricCharacteristics) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricCharacteristics()metricMathAnomalyDetector(CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty metricMathAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricMathAnomalyDetector()metricMathAnomalyDetector(IResolvable metricMathAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricMathAnomalyDetector()metricName(String metricName) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricName()Sets the value ofCfnAnomalyDetectorMixinProps.getNamespace()singleMetricAnomalyDetector(CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty singleMetricAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getSingleMetricAnomalyDetector()singleMetricAnomalyDetector(IResolvable singleMetricAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getSingleMetricAnomalyDetector()Sets the value ofCfnAnomalyDetectorMixinProps.getStat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder configuration(IResolvable configuration) Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()- Parameters:
configuration- Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. The configuration can also include the time zone to use for the metric.- Returns:
this
-
configuration
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder configuration(CfnAnomalyDetectorPropsMixin.ConfigurationProperty configuration) Sets the value ofCfnAnomalyDetectorMixinProps.getConfiguration()- Parameters:
configuration- Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. The configuration can also include the time zone to use for the metric.- Returns:
this
-
dimensions
Sets the value ofCfnAnomalyDetectorMixinProps.getDimensions()- Parameters:
dimensions- The dimensions of the metric associated with the anomaly detection band.- Returns:
this
-
dimensions
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnAnomalyDetectorMixinProps.getDimensions()- Parameters:
dimensions- The dimensions of the metric associated with the anomaly detection band.- Returns:
this
-
metricCharacteristics
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder metricCharacteristics(IResolvable metricCharacteristics) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricCharacteristics()- Parameters:
metricCharacteristics- Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models. Currently, it includes thePeriodicSpikesparameter.- Returns:
this
-
metricCharacteristics
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder metricCharacteristics(CfnAnomalyDetectorPropsMixin.MetricCharacteristicsProperty metricCharacteristics) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricCharacteristics()- Parameters:
metricCharacteristics- Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models. Currently, it includes thePeriodicSpikesparameter.- Returns:
this
-
metricMathAnomalyDetector
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder metricMathAnomalyDetector(IResolvable metricMathAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricMathAnomalyDetector()- Parameters:
metricMathAnomalyDetector- The CloudWatch metric math expression for this anomaly detector.- Returns:
this
-
metricMathAnomalyDetector
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder metricMathAnomalyDetector(CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty metricMathAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getMetricMathAnomalyDetector()- Parameters:
metricMathAnomalyDetector- The CloudWatch metric math expression for this anomaly detector.- Returns:
this
-
metricName
Sets the value ofCfnAnomalyDetectorMixinProps.getMetricName()- Parameters:
metricName- The name of the metric associated with the anomaly detection band.- Returns:
this
-
namespace
Sets the value ofCfnAnomalyDetectorMixinProps.getNamespace()- Parameters:
namespace- The namespace of the metric associated with the anomaly detection band.- Returns:
this
-
singleMetricAnomalyDetector
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder singleMetricAnomalyDetector(IResolvable singleMetricAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getSingleMetricAnomalyDetector()- Parameters:
singleMetricAnomalyDetector- The CloudWatch metric and statistic for this anomaly detector.- Returns:
this
-
singleMetricAnomalyDetector
@Stability(Stable) public CfnAnomalyDetectorMixinProps.Builder singleMetricAnomalyDetector(CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty singleMetricAnomalyDetector) Sets the value ofCfnAnomalyDetectorMixinProps.getSingleMetricAnomalyDetector()- Parameters:
singleMetricAnomalyDetector- The CloudWatch metric and statistic for this anomaly detector.- Returns:
this
-
stat
Sets the value ofCfnAnomalyDetectorMixinProps.getStat()- Parameters:
stat- The statistic of the metric associated with the anomaly detection band.- 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
-