Class CfnAnomalyDetector.MetricSetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.MetricSetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.MetricSetProperty>
- Enclosing interface:
CfnAnomalyDetector.MetricSetProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.MetricSetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.MetricSetProperty>
A builder for
CfnAnomalyDetector.MetricSetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensionList(List<String> dimensionList) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getDimensionList()metricList(List<? extends Object> metricList) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricList()metricList(IResolvable metricList) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricList()metricSetDescription(String metricSetDescription) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSetDescription()metricSetFrequency(String metricSetFrequency) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSetFrequency()metricSetName(String metricSetName) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSetName()metricSource(IResolvable metricSource) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSource()metricSource(CfnAnomalyDetector.MetricSourceProperty metricSource) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSource()Sets the value ofCfnAnomalyDetector.MetricSetProperty.getOffset()timestampColumn(IResolvable timestampColumn) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getTimestampColumn()timestampColumn(CfnAnomalyDetector.TimestampColumnProperty timestampColumn) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getTimestampColumn()Sets the value ofCfnAnomalyDetector.MetricSetProperty.getTimezone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricList
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder metricList(IResolvable metricList) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricList()- Parameters:
metricList- A list of metrics that the dataset will contain. This parameter is required.- Returns:
this
-
metricList
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder metricList(List<? extends Object> metricList) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricList()- Parameters:
metricList- A list of metrics that the dataset will contain. This parameter is required.- Returns:
this
-
metricSetName
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder metricSetName(String metricSetName) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSetName()- Parameters:
metricSetName- The name of the dataset. This parameter is required.- Returns:
this
-
metricSource
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder metricSource(IResolvable metricSource) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSource()- Parameters:
metricSource- Contains information about how the source data should be interpreted. This parameter is required.- Returns:
this
-
metricSource
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder metricSource(CfnAnomalyDetector.MetricSourceProperty metricSource) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSource()- Parameters:
metricSource- Contains information about how the source data should be interpreted. This parameter is required.- Returns:
this
-
dimensionList
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder dimensionList(List<String> dimensionList) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getDimensionList()- Parameters:
dimensionList- A list of the fields you want to treat as dimensions.- Returns:
this
-
metricSetDescription
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder metricSetDescription(String metricSetDescription) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSetDescription()- Parameters:
metricSetDescription- A description of the dataset you are creating.- Returns:
this
-
metricSetFrequency
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder metricSetFrequency(String metricSetFrequency) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getMetricSetFrequency()- Parameters:
metricSetFrequency- The frequency with which the source data will be analyzed for anomalies.- Returns:
this
-
offset
Sets the value ofCfnAnomalyDetector.MetricSetProperty.getOffset()- Parameters:
offset- After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3, Redshift, Athena and datasources.- Returns:
this
-
timestampColumn
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder timestampColumn(IResolvable timestampColumn) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getTimestampColumn()- Parameters:
timestampColumn- Contains information about the column used for tracking time in your source data.- Returns:
this
-
timestampColumn
@Stability(Stable) public CfnAnomalyDetector.MetricSetProperty.Builder timestampColumn(CfnAnomalyDetector.TimestampColumnProperty timestampColumn) Sets the value ofCfnAnomalyDetector.MetricSetProperty.getTimestampColumn()- Parameters:
timestampColumn- Contains information about the column used for tracking time in your source data.- Returns:
this
-
timezone
Sets the value ofCfnAnomalyDetector.MetricSetProperty.getTimezone()- Parameters:
timezone- The time zone in which your source data was recorded.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.MetricSetProperty>- Returns:
- a new instance of
CfnAnomalyDetector.MetricSetProperty - Throws:
NullPointerException- if any required attribute was not provided
-