/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LookoutMetrics { namespace Model { /** *

Details about a metric. A metric is an aggregation of the values of a measure * for a dimension value, such as availability in the us-east-1 * Region.

See Also:

AWS * API Reference

*/ class TimeSeries { public: AWS_LOOKOUTMETRICS_API TimeSeries(); AWS_LOOKOUTMETRICS_API TimeSeries(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API TimeSeries& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the metric.

*/ inline const Aws::String& GetTimeSeriesId() const{ return m_timeSeriesId; } /** *

The ID of the metric.

*/ inline bool TimeSeriesIdHasBeenSet() const { return m_timeSeriesIdHasBeenSet; } /** *

The ID of the metric.

*/ inline void SetTimeSeriesId(const Aws::String& value) { m_timeSeriesIdHasBeenSet = true; m_timeSeriesId = value; } /** *

The ID of the metric.

*/ inline void SetTimeSeriesId(Aws::String&& value) { m_timeSeriesIdHasBeenSet = true; m_timeSeriesId = std::move(value); } /** *

The ID of the metric.

*/ inline void SetTimeSeriesId(const char* value) { m_timeSeriesIdHasBeenSet = true; m_timeSeriesId.assign(value); } /** *

The ID of the metric.

*/ inline TimeSeries& WithTimeSeriesId(const Aws::String& value) { SetTimeSeriesId(value); return *this;} /** *

The ID of the metric.

*/ inline TimeSeries& WithTimeSeriesId(Aws::String&& value) { SetTimeSeriesId(std::move(value)); return *this;} /** *

The ID of the metric.

*/ inline TimeSeries& WithTimeSeriesId(const char* value) { SetTimeSeriesId(value); return *this;} /** *

The dimensions of the metric.

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

The dimensions of the metric.

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

The dimensions of the metric.

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

The dimensions of the metric.

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

The dimensions of the metric.

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

The dimensions of the metric.

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

The dimensions of the metric.

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

The dimensions of the metric.

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

The values for the metric.

*/ inline const Aws::Vector& GetMetricValueList() const{ return m_metricValueList; } /** *

The values for the metric.

*/ inline bool MetricValueListHasBeenSet() const { return m_metricValueListHasBeenSet; } /** *

The values for the metric.

*/ inline void SetMetricValueList(const Aws::Vector& value) { m_metricValueListHasBeenSet = true; m_metricValueList = value; } /** *

The values for the metric.

*/ inline void SetMetricValueList(Aws::Vector&& value) { m_metricValueListHasBeenSet = true; m_metricValueList = std::move(value); } /** *

The values for the metric.

*/ inline TimeSeries& WithMetricValueList(const Aws::Vector& value) { SetMetricValueList(value); return *this;} /** *

The values for the metric.

*/ inline TimeSeries& WithMetricValueList(Aws::Vector&& value) { SetMetricValueList(std::move(value)); return *this;} /** *

The values for the metric.

*/ inline TimeSeries& AddMetricValueList(double value) { m_metricValueListHasBeenSet = true; m_metricValueList.push_back(value); return *this; } private: Aws::String m_timeSeriesId; bool m_timeSeriesIdHasBeenSet = false; Aws::Vector m_dimensionList; bool m_dimensionListHasBeenSet = false; Aws::Vector m_metricValueList; bool m_metricValueListHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws