Class CfnAnomalyDetectorPropsMixin.ConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAnomalyDetectorPropsMixin.ConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.ConfigurationProperty>
- Enclosing interface:
CfnAnomalyDetectorPropsMixin.ConfigurationProperty
@Stability(Stable)
public static final class CfnAnomalyDetectorPropsMixin.ConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.ConfigurationProperty>
A builder for
CfnAnomalyDetectorPropsMixin.ConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludedTimeRanges(List<? extends Object> excludedTimeRanges) excludedTimeRanges(IResolvable excludedTimeRanges) metricTimeZone(String metricTimeZone) Sets the value ofCfnAnomalyDetectorPropsMixin.ConfigurationProperty.getMetricTimeZone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludedTimeRanges
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.ConfigurationProperty.Builder excludedTimeRanges(IResolvable excludedTimeRanges) - 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 CfnAnomalyDetectorPropsMixin.ConfigurationProperty.Builder excludedTimeRanges(List<? extends Object> excludedTimeRanges) - 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 CfnAnomalyDetectorPropsMixin.ConfigurationProperty.Builder metricTimeZone(String metricTimeZone) Sets the value ofCfnAnomalyDetectorPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.ConfigurationProperty>- Returns:
- a new instance of
CfnAnomalyDetectorPropsMixin.ConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-