AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SummaryMetricQueryResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotwireless/IoTWireless_EXPORTS.h>
11#include <aws/iotwireless/model/AggregationPeriod.h>
12#include <aws/iotwireless/model/Dimension.h>
13#include <aws/iotwireless/model/MetricName.h>
14#include <aws/iotwireless/model/MetricQueryStatus.h>
15#include <aws/iotwireless/model/MetricQueryValue.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoTWireless {
27namespace Model {
28
36 public:
37 AWS_IOTWIRELESS_API SummaryMetricQueryResult() = default;
40 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetQueryId() const { return m_queryId; }
47 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
48 template <typename QueryIdT = Aws::String>
49 void SetQueryId(QueryIdT&& value) {
50 m_queryIdHasBeenSet = true;
51 m_queryId = std::forward<QueryIdT>(value);
52 }
53 template <typename QueryIdT = Aws::String>
55 SetQueryId(std::forward<QueryIdT>(value));
56 return *this;
57 }
59
61
64 inline MetricQueryStatus GetQueryStatus() const { return m_queryStatus; }
65 inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; }
66 inline void SetQueryStatus(MetricQueryStatus value) {
67 m_queryStatusHasBeenSet = true;
68 m_queryStatus = value;
69 }
71 SetQueryStatus(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetError() const { return m_error; }
81 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
82 template <typename ErrorT = Aws::String>
83 void SetError(ErrorT&& value) {
84 m_errorHasBeenSet = true;
85 m_error = std::forward<ErrorT>(value);
86 }
87 template <typename ErrorT = Aws::String>
89 SetError(std::forward<ErrorT>(value));
90 return *this;
91 }
93
95
98 inline MetricName GetMetricName() const { return m_metricName; }
99 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
100 inline void SetMetricName(MetricName value) {
101 m_metricNameHasBeenSet = true;
102 m_metricName = value;
103 }
105 SetMetricName(value);
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
115 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
116 template <typename DimensionsT = Aws::Vector<Dimension>>
117 void SetDimensions(DimensionsT&& value) {
118 m_dimensionsHasBeenSet = true;
119 m_dimensions = std::forward<DimensionsT>(value);
120 }
121 template <typename DimensionsT = Aws::Vector<Dimension>>
123 SetDimensions(std::forward<DimensionsT>(value));
124 return *this;
125 }
126 template <typename DimensionsT = Dimension>
128 m_dimensionsHasBeenSet = true;
129 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
130 return *this;
131 }
133
135
138 inline AggregationPeriod GetAggregationPeriod() const { return m_aggregationPeriod; }
139 inline bool AggregationPeriodHasBeenSet() const { return m_aggregationPeriodHasBeenSet; }
141 m_aggregationPeriodHasBeenSet = true;
142 m_aggregationPeriod = value;
143 }
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
155 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
156 template <typename StartTimestampT = Aws::Utils::DateTime>
157 void SetStartTimestamp(StartTimestampT&& value) {
158 m_startTimestampHasBeenSet = true;
159 m_startTimestamp = std::forward<StartTimestampT>(value);
160 }
161 template <typename StartTimestampT = Aws::Utils::DateTime>
163 SetStartTimestamp(std::forward<StartTimestampT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetEndTimestamp() const { return m_endTimestamp; }
173 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
174 template <typename EndTimestampT = Aws::Utils::DateTime>
175 void SetEndTimestamp(EndTimestampT&& value) {
176 m_endTimestampHasBeenSet = true;
177 m_endTimestamp = std::forward<EndTimestampT>(value);
178 }
179 template <typename EndTimestampT = Aws::Utils::DateTime>
181 SetEndTimestamp(std::forward<EndTimestampT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const { return m_timestamps; }
191 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
192 template <typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
193 void SetTimestamps(TimestampsT&& value) {
194 m_timestampsHasBeenSet = true;
195 m_timestamps = std::forward<TimestampsT>(value);
196 }
197 template <typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
199 SetTimestamps(std::forward<TimestampsT>(value));
200 return *this;
201 }
202 template <typename TimestampsT = Aws::Utils::DateTime>
204 m_timestampsHasBeenSet = true;
205 m_timestamps.emplace_back(std::forward<TimestampsT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Vector<MetricQueryValue>& GetValues() const { return m_values; }
215 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
216 template <typename ValuesT = Aws::Vector<MetricQueryValue>>
217 void SetValues(ValuesT&& value) {
218 m_valuesHasBeenSet = true;
219 m_values = std::forward<ValuesT>(value);
220 }
221 template <typename ValuesT = Aws::Vector<MetricQueryValue>>
223 SetValues(std::forward<ValuesT>(value));
224 return *this;
225 }
226 template <typename ValuesT = MetricQueryValue>
228 m_valuesHasBeenSet = true;
229 m_values.emplace_back(std::forward<ValuesT>(value));
230 return *this;
231 }
233
235
239 inline const Aws::String& GetUnit() const { return m_unit; }
240 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
241 template <typename UnitT = Aws::String>
242 void SetUnit(UnitT&& value) {
243 m_unitHasBeenSet = true;
244 m_unit = std::forward<UnitT>(value);
245 }
246 template <typename UnitT = Aws::String>
248 SetUnit(std::forward<UnitT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_queryId;
254
256
257 Aws::String m_error;
258
259 MetricName m_metricName{MetricName::NOT_SET};
260
261 Aws::Vector<Dimension> m_dimensions;
262
264
265 Aws::Utils::DateTime m_startTimestamp{};
266
267 Aws::Utils::DateTime m_endTimestamp{};
268
270
272
273 Aws::String m_unit;
274 bool m_queryIdHasBeenSet = false;
275 bool m_queryStatusHasBeenSet = false;
276 bool m_errorHasBeenSet = false;
277 bool m_metricNameHasBeenSet = false;
278 bool m_dimensionsHasBeenSet = false;
279 bool m_aggregationPeriodHasBeenSet = false;
280 bool m_startTimestampHasBeenSet = false;
281 bool m_endTimestampHasBeenSet = false;
282 bool m_timestampsHasBeenSet = false;
283 bool m_valuesHasBeenSet = false;
284 bool m_unitHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace IoTWireless
289} // namespace Aws
const Aws::Vector< MetricQueryValue > & GetValues() const
AWS_IOTWIRELESS_API SummaryMetricQueryResult(Aws::Utils::Json::JsonView jsonValue)
SummaryMetricQueryResult & WithUnit(UnitT &&value)
AWS_IOTWIRELESS_API SummaryMetricQueryResult()=default
AWS_IOTWIRELESS_API SummaryMetricQueryResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SummaryMetricQueryResult & WithValues(ValuesT &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
const Aws::Vector< Dimension > & GetDimensions() const
SummaryMetricQueryResult & WithQueryId(QueryIdT &&value)
SummaryMetricQueryResult & WithDimensions(DimensionsT &&value)
SummaryMetricQueryResult & AddDimensions(DimensionsT &&value)
SummaryMetricQueryResult & WithStartTimestamp(StartTimestampT &&value)
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
SummaryMetricQueryResult & WithEndTimestamp(EndTimestampT &&value)
SummaryMetricQueryResult & WithQueryStatus(MetricQueryStatus value)
SummaryMetricQueryResult & WithError(ErrorT &&value)
SummaryMetricQueryResult & WithTimestamps(TimestampsT &&value)
SummaryMetricQueryResult & AddTimestamps(TimestampsT &&value)
SummaryMetricQueryResult & AddValues(ValuesT &&value)
SummaryMetricQueryResult & WithAggregationPeriod(AggregationPeriod value)
SummaryMetricQueryResult & WithMetricName(MetricName value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue