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

An anomalous metric in an anomaly group.

See Also:

AWS * API Reference

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

The ID of the anomaly group.

*/ inline const Aws::String& GetAnomalyGroupId() const{ return m_anomalyGroupId; } /** *

The ID of the anomaly group.

*/ inline bool AnomalyGroupIdHasBeenSet() const { return m_anomalyGroupIdHasBeenSet; } /** *

The ID of the anomaly group.

*/ inline void SetAnomalyGroupId(const Aws::String& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = value; } /** *

The ID of the anomaly group.

*/ inline void SetAnomalyGroupId(Aws::String&& value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId = std::move(value); } /** *

The ID of the anomaly group.

*/ inline void SetAnomalyGroupId(const char* value) { m_anomalyGroupIdHasBeenSet = true; m_anomalyGroupId.assign(value); } /** *

The ID of the anomaly group.

*/ inline AnomalyGroupTimeSeries& WithAnomalyGroupId(const Aws::String& value) { SetAnomalyGroupId(value); return *this;} /** *

The ID of the anomaly group.

*/ inline AnomalyGroupTimeSeries& WithAnomalyGroupId(Aws::String&& value) { SetAnomalyGroupId(std::move(value)); return *this;} /** *

The ID of the anomaly group.

*/ inline AnomalyGroupTimeSeries& WithAnomalyGroupId(const char* value) { SetAnomalyGroupId(value); return *this;} /** *

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 AnomalyGroupTimeSeries& WithTimeSeriesId(const Aws::String& value) { SetTimeSeriesId(value); return *this;} /** *

The ID of the metric.

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

The ID of the metric.

*/ inline AnomalyGroupTimeSeries& WithTimeSeriesId(const char* value) { SetTimeSeriesId(value); return *this;} private: Aws::String m_anomalyGroupId; bool m_anomalyGroupIdHasBeenSet = false; Aws::String m_timeSeriesId; bool m_timeSeriesIdHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws