public static final class CfnAnomalyDetector.ConfigurationProperty.Builder
extends java.lang.Object
CfnAnomalyDetector.ConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAnomalyDetector.ConfigurationProperty |
build()
Builds the configured instance.
|
CfnAnomalyDetector.ConfigurationProperty.Builder |
excludedTimeRanges(IResolvable excludedTimeRanges)
Sets the value of
CfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges() |
CfnAnomalyDetector.ConfigurationProperty.Builder |
excludedTimeRanges(java.util.List<? extends java.lang.Object> excludedTimeRanges)
Sets the value of
CfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges() |
CfnAnomalyDetector.ConfigurationProperty.Builder |
metricTimeZone(java.lang.String metricTimeZone)
Sets the value of
CfnAnomalyDetector.ConfigurationProperty.getMetricTimeZone() |
public CfnAnomalyDetector.ConfigurationProperty.Builder excludedTimeRanges(IResolvable excludedTimeRanges)
CfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges()
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.this
public CfnAnomalyDetector.ConfigurationProperty.Builder excludedTimeRanges(java.util.List<? extends java.lang.Object> excludedTimeRanges)
CfnAnomalyDetector.ConfigurationProperty.getExcludedTimeRanges()
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.this
public CfnAnomalyDetector.ConfigurationProperty.Builder metricTimeZone(java.lang.String metricTimeZone)
CfnAnomalyDetector.ConfigurationProperty.getMetricTimeZone()
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 .
this
public CfnAnomalyDetector.ConfigurationProperty build()
CfnAnomalyDetector.ConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided