AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MetricStat.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/Metric.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/application-signals/model/StandardUnit.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationSignals
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPLICATIONSIGNALS_API MetricStat() = default;
38 AWS_APPLICATIONSIGNALS_API MetricStat(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API MetricStat& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Metric& GetMetric() const { return m_metric; }
49 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
50 template<typename MetricT = Metric>
51 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
52 template<typename MetricT = Metric>
53 MetricStat& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
55
57
66 inline int GetPeriod() const { return m_period; }
67 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
68 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
69 inline MetricStat& WithPeriod(int value) { SetPeriod(value); return *this;}
71
73
80 inline const Aws::String& GetStat() const { return m_stat; }
81 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
82 template<typename StatT = Aws::String>
83 void SetStat(StatT&& value) { m_statHasBeenSet = true; m_stat = std::forward<StatT>(value); }
84 template<typename StatT = Aws::String>
85 MetricStat& WithStat(StatT&& value) { SetStat(std::forward<StatT>(value)); return *this;}
87
89
97 inline StandardUnit GetUnit() const { return m_unit; }
98 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
99 inline void SetUnit(StandardUnit value) { m_unitHasBeenSet = true; m_unit = value; }
100 inline MetricStat& WithUnit(StandardUnit value) { SetUnit(value); return *this;}
102 private:
103
104 Metric m_metric;
105 bool m_metricHasBeenSet = false;
106
107 int m_period{0};
108 bool m_periodHasBeenSet = false;
109
110 Aws::String m_stat;
111 bool m_statHasBeenSet = false;
112
114 bool m_unitHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ApplicationSignals
119} // namespace Aws
AWS_APPLICATIONSIGNALS_API MetricStat()=default
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStat() const
Definition MetricStat.h:80
AWS_APPLICATIONSIGNALS_API MetricStat & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricStat & WithStat(StatT &&value)
Definition MetricStat.h:85
MetricStat & WithMetric(MetricT &&value)
Definition MetricStat.h:53
MetricStat & WithUnit(StandardUnit value)
Definition MetricStat.h:100
AWS_APPLICATIONSIGNALS_API MetricStat(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue