/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Aggregated statistics about a measure affected by an anomaly.See
* Also:
AWS
* API Reference
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