Class CfnAnomalyDetector.ConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.ConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.ConfigurationProperty>
- Enclosing interface:
CfnAnomalyDetector.ConfigurationProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.ConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.ConfigurationProperty>
A builder for
CfnAnomalyDetector.ConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.excludedTimeRanges
(List<? extends Object> excludedTimeRanges) Sets the value ofCfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges()
excludedTimeRanges
(IResolvable excludedTimeRanges) Sets the value ofCfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges()
metricTimeZone
(String metricTimeZone) Sets the value ofCfnAnomalyDetector.ConfigurationProperty.getMetricTimeZone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludedTimeRanges
@Stability(Stable) public CfnAnomalyDetector.ConfigurationProperty.Builder excludedTimeRanges(IResolvable excludedTimeRanges) Sets the value ofCfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges()
- Parameters:
excludedTimeRanges
- Specifies an array of time ranges to exclude from use when the anomaly detection model is trained and updated. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates or updates the model.- Returns:
this
-
excludedTimeRanges
@Stability(Stable) public CfnAnomalyDetector.ConfigurationProperty.Builder excludedTimeRanges(List<? extends Object> excludedTimeRanges) Sets the value ofCfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges()
- Parameters:
excludedTimeRanges
- Specifies an array of time ranges to exclude from use when the anomaly detection model is trained and updated. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates or updates the model.- Returns:
this
-
metricTimeZone
@Stability(Stable) public CfnAnomalyDetector.ConfigurationProperty.Builder metricTimeZone(String metricTimeZone) Sets the value ofCfnAnomalyDetector.ConfigurationProperty.getMetricTimeZone()
- Parameters:
metricTimeZone
- The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.ConfigurationProperty>
- Returns:
- a new instance of
CfnAnomalyDetector.ConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-