AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
MetricLevelImpact.h
1
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
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LookoutMetrics
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LOOKOUTMETRICS_API MetricLevelImpact() = default;
36 AWS_LOOKOUTMETRICS_API MetricLevelImpact(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOOKOUTMETRICS_API MetricLevelImpact& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMetricName() const { return m_metricName; }
46 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
47 template<typename MetricNameT = Aws::String>
48 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
49 template<typename MetricNameT = Aws::String>
50 MetricLevelImpact& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
52
54
57 inline int GetNumTimeSeries() const { return m_numTimeSeries; }
58 inline bool NumTimeSeriesHasBeenSet() const { return m_numTimeSeriesHasBeenSet; }
59 inline void SetNumTimeSeries(int value) { m_numTimeSeriesHasBeenSet = true; m_numTimeSeries = value; }
60 inline MetricLevelImpact& WithNumTimeSeries(int value) { SetNumTimeSeries(value); return *this;}
62
64
67 inline const ContributionMatrix& GetContributionMatrix() const { return m_contributionMatrix; }
68 inline bool ContributionMatrixHasBeenSet() const { return m_contributionMatrixHasBeenSet; }
69 template<typename ContributionMatrixT = ContributionMatrix>
70 void SetContributionMatrix(ContributionMatrixT&& value) { m_contributionMatrixHasBeenSet = true; m_contributionMatrix = std::forward<ContributionMatrixT>(value); }
71 template<typename ContributionMatrixT = ContributionMatrix>
72 MetricLevelImpact& WithContributionMatrix(ContributionMatrixT&& value) { SetContributionMatrix(std::forward<ContributionMatrixT>(value)); return *this;}
74 private:
75
76 Aws::String m_metricName;
77 bool m_metricNameHasBeenSet = false;
78
79 int m_numTimeSeries{0};
80 bool m_numTimeSeriesHasBeenSet = false;
81
82 ContributionMatrix m_contributionMatrix;
83 bool m_contributionMatrixHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace LookoutMetrics
88} // namespace Aws
MetricLevelImpact & WithNumTimeSeries(int value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricLevelImpact & WithMetricName(MetricNameT &&value)
const ContributionMatrix & GetContributionMatrix() const
AWS_LOOKOUTMETRICS_API MetricLevelImpact()=default
AWS_LOOKOUTMETRICS_API MetricLevelImpact(Aws::Utils::Json::JsonView jsonValue)
MetricLevelImpact & WithContributionMatrix(ContributionMatrixT &&value)
AWS_LOOKOUTMETRICS_API MetricLevelImpact & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContributionMatrix(ContributionMatrixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue