1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/lookoutmetrics/model/ContributionMatrix.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace LookoutMetrics 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Details about a measure affected by an anomaly.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/MetricLevelImpact">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_LOOKOUTMETRICS_API MetricLevelImpact 33 { 34 public: 35 MetricLevelImpact(); 36 MetricLevelImpact(Aws::Utils::Json::JsonView jsonValue); 37 MetricLevelImpact& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The name of the measure.</p> 43 */ GetMetricName()44 inline const Aws::String& GetMetricName() const{ return m_metricName; } 45 46 /** 47 * <p>The name of the measure.</p> 48 */ MetricNameHasBeenSet()49 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } 50 51 /** 52 * <p>The name of the measure.</p> 53 */ SetMetricName(const Aws::String & value)54 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } 55 56 /** 57 * <p>The name of the measure.</p> 58 */ SetMetricName(Aws::String && value)59 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } 60 61 /** 62 * <p>The name of the measure.</p> 63 */ SetMetricName(const char * value)64 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } 65 66 /** 67 * <p>The name of the measure.</p> 68 */ WithMetricName(const Aws::String & value)69 inline MetricLevelImpact& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} 70 71 /** 72 * <p>The name of the measure.</p> 73 */ WithMetricName(Aws::String && value)74 inline MetricLevelImpact& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} 75 76 /** 77 * <p>The name of the measure.</p> 78 */ WithMetricName(const char * value)79 inline MetricLevelImpact& WithMetricName(const char* value) { SetMetricName(value); return *this;} 80 81 82 /** 83 * <p>The number of anomalous metrics for the measure.</p> 84 */ GetNumTimeSeries()85 inline int GetNumTimeSeries() const{ return m_numTimeSeries; } 86 87 /** 88 * <p>The number of anomalous metrics for the measure.</p> 89 */ NumTimeSeriesHasBeenSet()90 inline bool NumTimeSeriesHasBeenSet() const { return m_numTimeSeriesHasBeenSet; } 91 92 /** 93 * <p>The number of anomalous metrics for the measure.</p> 94 */ SetNumTimeSeries(int value)95 inline void SetNumTimeSeries(int value) { m_numTimeSeriesHasBeenSet = true; m_numTimeSeries = value; } 96 97 /** 98 * <p>The number of anomalous metrics for the measure.</p> 99 */ WithNumTimeSeries(int value)100 inline MetricLevelImpact& WithNumTimeSeries(int value) { SetNumTimeSeries(value); return *this;} 101 102 103 /** 104 * <p>Details about the dimensions that contributed to the anomaly.</p> 105 */ GetContributionMatrix()106 inline const ContributionMatrix& GetContributionMatrix() const{ return m_contributionMatrix; } 107 108 /** 109 * <p>Details about the dimensions that contributed to the anomaly.</p> 110 */ ContributionMatrixHasBeenSet()111 inline bool ContributionMatrixHasBeenSet() const { return m_contributionMatrixHasBeenSet; } 112 113 /** 114 * <p>Details about the dimensions that contributed to the anomaly.</p> 115 */ SetContributionMatrix(const ContributionMatrix & value)116 inline void SetContributionMatrix(const ContributionMatrix& value) { m_contributionMatrixHasBeenSet = true; m_contributionMatrix = value; } 117 118 /** 119 * <p>Details about the dimensions that contributed to the anomaly.</p> 120 */ SetContributionMatrix(ContributionMatrix && value)121 inline void SetContributionMatrix(ContributionMatrix&& value) { m_contributionMatrixHasBeenSet = true; m_contributionMatrix = std::move(value); } 122 123 /** 124 * <p>Details about the dimensions that contributed to the anomaly.</p> 125 */ WithContributionMatrix(const ContributionMatrix & value)126 inline MetricLevelImpact& WithContributionMatrix(const ContributionMatrix& value) { SetContributionMatrix(value); return *this;} 127 128 /** 129 * <p>Details about the dimensions that contributed to the anomaly.</p> 130 */ WithContributionMatrix(ContributionMatrix && value)131 inline MetricLevelImpact& WithContributionMatrix(ContributionMatrix&& value) { SetContributionMatrix(std::move(value)); return *this;} 132 133 private: 134 135 Aws::String m_metricName; 136 bool m_metricNameHasBeenSet; 137 138 int m_numTimeSeries; 139 bool m_numTimeSeriesHasBeenSet; 140 141 ContributionMatrix m_contributionMatrix; 142 bool m_contributionMatrixHasBeenSet; 143 }; 144 145 } // namespace Model 146 } // namespace LookoutMetrics 147 } // namespace Aws 148