AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
MetricQueryValue.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace IoTWireless {
17namespace Model {
18
25 public:
26 AWS_IOTWIRELESS_API MetricQueryValue() = default;
27 AWS_IOTWIRELESS_API MetricQueryValue(Aws::Utils::Json::JsonView jsonValue);
28 AWS_IOTWIRELESS_API MetricQueryValue& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
36 inline double GetMin() const { return m_min; }
37 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
38 inline void SetMin(double value) {
39 m_minHasBeenSet = true;
40 m_min = value;
41 }
42 inline MetricQueryValue& WithMin(double value) {
43 SetMin(value);
44 return *this;
45 }
47
49
53 inline double GetMax() const { return m_max; }
54 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
55 inline void SetMax(double value) {
56 m_maxHasBeenSet = true;
57 m_max = value;
58 }
59 inline MetricQueryValue& WithMax(double value) {
60 SetMax(value);
61 return *this;
62 }
64
66
70 inline double GetSum() const { return m_sum; }
71 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
72 inline void SetSum(double value) {
73 m_sumHasBeenSet = true;
74 m_sum = value;
75 }
76 inline MetricQueryValue& WithSum(double value) {
77 SetSum(value);
78 return *this;
79 }
81
83
87 inline double GetAvg() const { return m_avg; }
88 inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; }
89 inline void SetAvg(double value) {
90 m_avgHasBeenSet = true;
91 m_avg = value;
92 }
93 inline MetricQueryValue& WithAvg(double value) {
94 SetAvg(value);
95 return *this;
96 }
98
100
104 inline double GetStd() const { return m_std; }
105 inline bool StdHasBeenSet() const { return m_stdHasBeenSet; }
106 inline void SetStd(double value) {
107 m_stdHasBeenSet = true;
108 m_std = value;
109 }
110 inline MetricQueryValue& WithStd(double value) {
111 SetStd(value);
112 return *this;
113 }
115
117
121 inline double GetP90() const { return m_p90; }
122 inline bool P90HasBeenSet() const { return m_p90HasBeenSet; }
123 inline void SetP90(double value) {
124 m_p90HasBeenSet = true;
125 m_p90 = value;
126 }
127 inline MetricQueryValue& WithP90(double value) {
128 SetP90(value);
129 return *this;
130 }
132 private:
133 double m_min{0.0};
134
135 double m_max{0.0};
136
137 double m_sum{0.0};
138
139 double m_avg{0.0};
140
141 double m_std{0.0};
142
143 double m_p90{0.0};
144 bool m_minHasBeenSet = false;
145 bool m_maxHasBeenSet = false;
146 bool m_sumHasBeenSet = false;
147 bool m_avgHasBeenSet = false;
148 bool m_stdHasBeenSet = false;
149 bool m_p90HasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace IoTWireless
154} // namespace Aws
MetricQueryValue & WithP90(double value)
AWS_IOTWIRELESS_API MetricQueryValue()=default
MetricQueryValue & WithSum(double value)
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTWIRELESS_API MetricQueryValue(Aws::Utils::Json::JsonView jsonValue)
MetricQueryValue & WithMin(double value)
MetricQueryValue & WithAvg(double value)
MetricQueryValue & WithStd(double value)
AWS_IOTWIRELESS_API MetricQueryValue & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricQueryValue & WithMax(double value)
Aws::Utils::Json::JsonValue JsonValue