/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details 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 MetricLevelImpact& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *The name of the measure.
*/ inline MetricLevelImpact& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *The name of the measure.
*/ inline MetricLevelImpact& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *The number of anomalous metrics for the measure.
*/ inline int GetNumTimeSeries() const{ return m_numTimeSeries; } /** *The number of anomalous metrics for the measure.
*/ inline bool NumTimeSeriesHasBeenSet() const { return m_numTimeSeriesHasBeenSet; } /** *The number of anomalous metrics for the measure.
*/ inline void SetNumTimeSeries(int value) { m_numTimeSeriesHasBeenSet = true; m_numTimeSeries = value; } /** *The number of anomalous metrics for the measure.
*/ inline MetricLevelImpact& WithNumTimeSeries(int value) { SetNumTimeSeries(value); return *this;} /** *Details about the dimensions that contributed to the anomaly.
*/ inline const ContributionMatrix& GetContributionMatrix() const{ return m_contributionMatrix; } /** *Details about the dimensions that contributed to the anomaly.
*/ inline bool ContributionMatrixHasBeenSet() const { return m_contributionMatrixHasBeenSet; } /** *Details about the dimensions that contributed to the anomaly.
*/ inline void SetContributionMatrix(const ContributionMatrix& value) { m_contributionMatrixHasBeenSet = true; m_contributionMatrix = value; } /** *Details about the dimensions that contributed to the anomaly.
*/ inline void SetContributionMatrix(ContributionMatrix&& value) { m_contributionMatrixHasBeenSet = true; m_contributionMatrix = std::move(value); } /** *Details about the dimensions that contributed to the anomaly.
*/ inline MetricLevelImpact& WithContributionMatrix(const ContributionMatrix& value) { SetContributionMatrix(value); return *this;} /** *Details about the dimensions that contributed to the anomaly.
*/ inline MetricLevelImpact& WithContributionMatrix(ContributionMatrix&& value) { SetContributionMatrix(std::move(value)); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; int m_numTimeSeries; bool m_numTimeSeriesHasBeenSet = false; ContributionMatrix m_contributionMatrix; bool m_contributionMatrixHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws