/** * 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 { /** *

Aggregated statistics about a measure affected by an anomaly.

See * Also:

AWS * API Reference

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

The name of the measure.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The name of the measure.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The name of the measure.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The name of the measure.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The name of the measure.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The name of the measure.

*/ inline ItemizedMetricStats& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the measure.

*/ inline ItemizedMetricStats& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The name of the measure.

*/ inline ItemizedMetricStats& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The number of times that the measure appears.

*/ inline int GetOccurrenceCount() const{ return m_occurrenceCount; } /** *

The number of times that the measure appears.

*/ inline bool OccurrenceCountHasBeenSet() const { return m_occurrenceCountHasBeenSet; } /** *

The number of times that the measure appears.

*/ inline void SetOccurrenceCount(int value) { m_occurrenceCountHasBeenSet = true; m_occurrenceCount = value; } /** *

The number of times that the measure appears.

*/ inline ItemizedMetricStats& WithOccurrenceCount(int value) { SetOccurrenceCount(value); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; int m_occurrenceCount; bool m_occurrenceCountHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws