AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
51 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
52 inline MetricStat& WithMetric(const Metric& value) { SetMetric(value); return *this;}
53 inline MetricStat& WithMetric(Metric&& value) { SetMetric(std::move(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 inline void SetStat(const Aws::String& value) { m_statHasBeenSet = true; m_stat = value; }
83 inline void SetStat(Aws::String&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }
84 inline void SetStat(const char* value) { m_statHasBeenSet = true; m_stat.assign(value); }
85 inline MetricStat& WithStat(const Aws::String& value) { SetStat(value); return *this;}
86 inline MetricStat& WithStat(Aws::String&& value) { SetStat(std::move(value)); return *this;}
87 inline MetricStat& WithStat(const char* value) { SetStat(value); return *this;}
89
91
99 inline const StandardUnit& GetUnit() const{ return m_unit; }
100 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
101 inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
102 inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
103 inline MetricStat& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
104 inline MetricStat& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;}
106 private:
107
108 Metric m_metric;
109 bool m_metricHasBeenSet = false;
110
111 int m_period;
112 bool m_periodHasBeenSet = false;
113
114 Aws::String m_stat;
115 bool m_statHasBeenSet = false;
116
117 StandardUnit m_unit;
118 bool m_unitHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ApplicationSignals
123} // namespace Aws
MetricStat & WithMetric(Metric &&value)
Definition MetricStat.h:53
void SetMetric(const Metric &value)
Definition MetricStat.h:50
void SetStat(const Aws::String &value)
Definition MetricStat.h:82
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API MetricStat()
const Aws::String & GetStat() const
Definition MetricStat.h:80
MetricStat & WithMetric(const Metric &value)
Definition MetricStat.h:52
void SetStat(Aws::String &&value)
Definition MetricStat.h:83
void SetUnit(StandardUnit &&value)
Definition MetricStat.h:102
MetricStat & WithStat(const char *value)
Definition MetricStat.h:87
AWS_APPLICATIONSIGNALS_API MetricStat & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricStat & WithUnit(const StandardUnit &value)
Definition MetricStat.h:103
const StandardUnit & GetUnit() const
Definition MetricStat.h:99
MetricStat & WithStat(Aws::String &&value)
Definition MetricStat.h:86
MetricStat & WithUnit(StandardUnit &&value)
Definition MetricStat.h:104
AWS_APPLICATIONSIGNALS_API MetricStat(Aws::Utils::Json::JsonView jsonValue)
MetricStat & WithStat(const Aws::String &value)
Definition MetricStat.h:85
void SetUnit(const StandardUnit &value)
Definition MetricStat.h:101
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue