/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace LookoutMetrics { namespace Model { /** */ class UpdateMetricSetRequest : public LookoutMetricsRequest { public: AWS_LOOKOUTMETRICS_API UpdateMetricSetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateMetricSet"; } AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override; /** *

The ARN of the dataset to update.

*/ inline const Aws::String& GetMetricSetArn() const{ return m_metricSetArn; } /** *

The ARN of the dataset to update.

*/ inline bool MetricSetArnHasBeenSet() const { return m_metricSetArnHasBeenSet; } /** *

The ARN of the dataset to update.

*/ inline void SetMetricSetArn(const Aws::String& value) { m_metricSetArnHasBeenSet = true; m_metricSetArn = value; } /** *

The ARN of the dataset to update.

*/ inline void SetMetricSetArn(Aws::String&& value) { m_metricSetArnHasBeenSet = true; m_metricSetArn = std::move(value); } /** *

The ARN of the dataset to update.

*/ inline void SetMetricSetArn(const char* value) { m_metricSetArnHasBeenSet = true; m_metricSetArn.assign(value); } /** *

The ARN of the dataset to update.

*/ inline UpdateMetricSetRequest& WithMetricSetArn(const Aws::String& value) { SetMetricSetArn(value); return *this;} /** *

The ARN of the dataset to update.

*/ inline UpdateMetricSetRequest& WithMetricSetArn(Aws::String&& value) { SetMetricSetArn(std::move(value)); return *this;} /** *

The ARN of the dataset to update.

*/ inline UpdateMetricSetRequest& WithMetricSetArn(const char* value) { SetMetricSetArn(value); return *this;} /** *

The dataset's description.

*/ inline const Aws::String& GetMetricSetDescription() const{ return m_metricSetDescription; } /** *

The dataset's description.

*/ inline bool MetricSetDescriptionHasBeenSet() const { return m_metricSetDescriptionHasBeenSet; } /** *

The dataset's description.

*/ inline void SetMetricSetDescription(const Aws::String& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = value; } /** *

The dataset's description.

*/ inline void SetMetricSetDescription(Aws::String&& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = std::move(value); } /** *

The dataset's description.

*/ inline void SetMetricSetDescription(const char* value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription.assign(value); } /** *

The dataset's description.

*/ inline UpdateMetricSetRequest& WithMetricSetDescription(const Aws::String& value) { SetMetricSetDescription(value); return *this;} /** *

The dataset's description.

*/ inline UpdateMetricSetRequest& WithMetricSetDescription(Aws::String&& value) { SetMetricSetDescription(std::move(value)); return *this;} /** *

The dataset's description.

*/ inline UpdateMetricSetRequest& WithMetricSetDescription(const char* value) { SetMetricSetDescription(value); return *this;} /** *

The metric list.

*/ inline const Aws::Vector& GetMetricList() const{ return m_metricList; } /** *

The metric list.

*/ inline bool MetricListHasBeenSet() const { return m_metricListHasBeenSet; } /** *

The metric list.

*/ inline void SetMetricList(const Aws::Vector& value) { m_metricListHasBeenSet = true; m_metricList = value; } /** *

The metric list.

*/ inline void SetMetricList(Aws::Vector&& value) { m_metricListHasBeenSet = true; m_metricList = std::move(value); } /** *

The metric list.

*/ inline UpdateMetricSetRequest& WithMetricList(const Aws::Vector& value) { SetMetricList(value); return *this;} /** *

The metric list.

*/ inline UpdateMetricSetRequest& WithMetricList(Aws::Vector&& value) { SetMetricList(std::move(value)); return *this;} /** *

The metric list.

*/ inline UpdateMetricSetRequest& AddMetricList(const Metric& value) { m_metricListHasBeenSet = true; m_metricList.push_back(value); return *this; } /** *

The metric list.

*/ inline UpdateMetricSetRequest& AddMetricList(Metric&& value) { m_metricListHasBeenSet = true; m_metricList.push_back(std::move(value)); return *this; } /** *

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.

*/ inline int GetOffset() const{ return m_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.

*/ inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; } /** *

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.

*/ inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; } /** *

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.

*/ inline UpdateMetricSetRequest& WithOffset(int value) { SetOffset(value); return *this;} /** *

The timestamp column.

*/ inline const TimestampColumn& GetTimestampColumn() const{ return m_timestampColumn; } /** *

The timestamp column.

*/ inline bool TimestampColumnHasBeenSet() const { return m_timestampColumnHasBeenSet; } /** *

The timestamp column.

*/ inline void SetTimestampColumn(const TimestampColumn& value) { m_timestampColumnHasBeenSet = true; m_timestampColumn = value; } /** *

The timestamp column.

*/ inline void SetTimestampColumn(TimestampColumn&& value) { m_timestampColumnHasBeenSet = true; m_timestampColumn = std::move(value); } /** *

The timestamp column.

*/ inline UpdateMetricSetRequest& WithTimestampColumn(const TimestampColumn& value) { SetTimestampColumn(value); return *this;} /** *

The timestamp column.

*/ inline UpdateMetricSetRequest& WithTimestampColumn(TimestampColumn&& value) { SetTimestampColumn(std::move(value)); return *this;} /** *

The dimension list.

*/ inline const Aws::Vector& GetDimensionList() const{ return m_dimensionList; } /** *

The dimension list.

*/ inline bool DimensionListHasBeenSet() const { return m_dimensionListHasBeenSet; } /** *

The dimension list.

*/ inline void SetDimensionList(const Aws::Vector& value) { m_dimensionListHasBeenSet = true; m_dimensionList = value; } /** *

The dimension list.

*/ inline void SetDimensionList(Aws::Vector&& value) { m_dimensionListHasBeenSet = true; m_dimensionList = std::move(value); } /** *

The dimension list.

*/ inline UpdateMetricSetRequest& WithDimensionList(const Aws::Vector& value) { SetDimensionList(value); return *this;} /** *

The dimension list.

*/ inline UpdateMetricSetRequest& WithDimensionList(Aws::Vector&& value) { SetDimensionList(std::move(value)); return *this;} /** *

The dimension list.

*/ inline UpdateMetricSetRequest& AddDimensionList(const Aws::String& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(value); return *this; } /** *

The dimension list.

*/ inline UpdateMetricSetRequest& AddDimensionList(Aws::String&& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(std::move(value)); return *this; } /** *

The dimension list.

*/ inline UpdateMetricSetRequest& AddDimensionList(const char* value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(value); return *this; } /** *

The dataset's interval.

*/ inline const Frequency& GetMetricSetFrequency() const{ return m_metricSetFrequency; } /** *

The dataset's interval.

*/ inline bool MetricSetFrequencyHasBeenSet() const { return m_metricSetFrequencyHasBeenSet; } /** *

The dataset's interval.

*/ inline void SetMetricSetFrequency(const Frequency& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = value; } /** *

The dataset's interval.

*/ inline void SetMetricSetFrequency(Frequency&& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = std::move(value); } /** *

The dataset's interval.

*/ inline UpdateMetricSetRequest& WithMetricSetFrequency(const Frequency& value) { SetMetricSetFrequency(value); return *this;} /** *

The dataset's interval.

*/ inline UpdateMetricSetRequest& WithMetricSetFrequency(Frequency&& value) { SetMetricSetFrequency(std::move(value)); return *this;} inline const MetricSource& GetMetricSource() const{ return m_metricSource; } inline bool MetricSourceHasBeenSet() const { return m_metricSourceHasBeenSet; } inline void SetMetricSource(const MetricSource& value) { m_metricSourceHasBeenSet = true; m_metricSource = value; } inline void SetMetricSource(MetricSource&& value) { m_metricSourceHasBeenSet = true; m_metricSource = std::move(value); } inline UpdateMetricSetRequest& WithMetricSource(const MetricSource& value) { SetMetricSource(value); return *this;} inline UpdateMetricSetRequest& WithMetricSource(MetricSource&& value) { SetMetricSource(std::move(value)); return *this;} /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline const Aws::Vector& GetDimensionFilterList() const{ return m_dimensionFilterList; } /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline bool DimensionFilterListHasBeenSet() const { return m_dimensionFilterListHasBeenSet; } /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline void SetDimensionFilterList(const Aws::Vector& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList = value; } /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline void SetDimensionFilterList(Aws::Vector&& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList = std::move(value); } /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline UpdateMetricSetRequest& WithDimensionFilterList(const Aws::Vector& value) { SetDimensionFilterList(value); return *this;} /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline UpdateMetricSetRequest& WithDimensionFilterList(Aws::Vector&& value) { SetDimensionFilterList(std::move(value)); return *this;} /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline UpdateMetricSetRequest& AddDimensionFilterList(const MetricSetDimensionFilter& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList.push_back(value); return *this; } /** *

Describes a list of filters for choosing specific dimensions and specific * values. Each filter consists of the dimension and one of its values that you * want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR * operation.

*/ inline UpdateMetricSetRequest& AddDimensionFilterList(MetricSetDimensionFilter&& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList.push_back(std::move(value)); return *this; } private: Aws::String m_metricSetArn; bool m_metricSetArnHasBeenSet = false; Aws::String m_metricSetDescription; bool m_metricSetDescriptionHasBeenSet = false; Aws::Vector m_metricList; bool m_metricListHasBeenSet = false; int m_offset; bool m_offsetHasBeenSet = false; TimestampColumn m_timestampColumn; bool m_timestampColumnHasBeenSet = false; Aws::Vector m_dimensionList; bool m_dimensionListHasBeenSet = false; Frequency m_metricSetFrequency; bool m_metricSetFrequencyHasBeenSet = false; MetricSource m_metricSource; bool m_metricSourceHasBeenSet = false; Aws::Vector m_dimensionFilterList; bool m_dimensionFilterListHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws