AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SummaryMetricQueryResult.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotwireless/model/MetricQueryStatus.h>
10#include <aws/iotwireless/model/MetricName.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotwireless/model/AggregationPeriod.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/iotwireless/model/Dimension.h>
15#include <aws/iotwireless/model/MetricQueryValue.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace IoTWireless
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_IOTWIRELESS_API SummaryMetricQueryResult();
45 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetQueryId() const{ return m_queryId; }
53 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
54 inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
55 inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
56 inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
57 inline SummaryMetricQueryResult& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
58 inline SummaryMetricQueryResult& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
59 inline SummaryMetricQueryResult& WithQueryId(const char* value) { SetQueryId(value); return *this;}
61
63
66 inline const MetricQueryStatus& GetQueryStatus() const{ return m_queryStatus; }
67 inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; }
68 inline void SetQueryStatus(const MetricQueryStatus& value) { m_queryStatusHasBeenSet = true; m_queryStatus = value; }
69 inline void SetQueryStatus(MetricQueryStatus&& value) { m_queryStatusHasBeenSet = true; m_queryStatus = std::move(value); }
70 inline SummaryMetricQueryResult& WithQueryStatus(const MetricQueryStatus& value) { SetQueryStatus(value); return *this;}
71 inline SummaryMetricQueryResult& WithQueryStatus(MetricQueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;}
73
75
78 inline const Aws::String& GetError() const{ return m_error; }
79 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
80 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
81 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
82 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
83 inline SummaryMetricQueryResult& WithError(const Aws::String& value) { SetError(value); return *this;}
84 inline SummaryMetricQueryResult& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
85 inline SummaryMetricQueryResult& WithError(const char* value) { SetError(value); return *this;}
87
89
92 inline const MetricName& GetMetricName() const{ return m_metricName; }
93 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
94 inline void SetMetricName(const MetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
95 inline void SetMetricName(MetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
96 inline SummaryMetricQueryResult& WithMetricName(const MetricName& value) { SetMetricName(value); return *this;}
97 inline SummaryMetricQueryResult& WithMetricName(MetricName&& value) { SetMetricName(std::move(value)); return *this;}
99
101
104 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
105 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
106 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
107 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
109 inline SummaryMetricQueryResult& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
110 inline SummaryMetricQueryResult& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
111 inline SummaryMetricQueryResult& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
113
115
118 inline const AggregationPeriod& GetAggregationPeriod() const{ return m_aggregationPeriod; }
119 inline bool AggregationPeriodHasBeenSet() const { return m_aggregationPeriodHasBeenSet; }
120 inline void SetAggregationPeriod(const AggregationPeriod& value) { m_aggregationPeriodHasBeenSet = true; m_aggregationPeriod = value; }
121 inline void SetAggregationPeriod(AggregationPeriod&& value) { m_aggregationPeriodHasBeenSet = true; m_aggregationPeriod = std::move(value); }
125
127
130 inline const Aws::Utils::DateTime& GetStartTimestamp() const{ return m_startTimestamp; }
131 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
132 inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
133 inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); }
135 inline SummaryMetricQueryResult& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(std::move(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetEndTimestamp() const{ return m_endTimestamp; }
143 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
144 inline void SetEndTimestamp(const Aws::Utils::DateTime& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = value; }
145 inline void SetEndTimestamp(Aws::Utils::DateTime&& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = std::move(value); }
147 inline SummaryMetricQueryResult& WithEndTimestamp(Aws::Utils::DateTime&& value) { SetEndTimestamp(std::move(value)); return *this;}
149
151
154 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
155 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
156 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
157 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
160 inline SummaryMetricQueryResult& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
161 inline SummaryMetricQueryResult& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
163
165
168 inline const Aws::Vector<MetricQueryValue>& GetValues() const{ return m_values; }
169 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
170 inline void SetValues(const Aws::Vector<MetricQueryValue>& value) { m_valuesHasBeenSet = true; m_values = value; }
171 inline void SetValues(Aws::Vector<MetricQueryValue>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
172 inline SummaryMetricQueryResult& WithValues(const Aws::Vector<MetricQueryValue>& value) { SetValues(value); return *this;}
173 inline SummaryMetricQueryResult& WithValues(Aws::Vector<MetricQueryValue>&& value) { SetValues(std::move(value)); return *this;}
174 inline SummaryMetricQueryResult& AddValues(const MetricQueryValue& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
175 inline SummaryMetricQueryResult& AddValues(MetricQueryValue&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
177
179
183 inline const Aws::String& GetUnit() const{ return m_unit; }
184 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
185 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
186 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
187 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
188 inline SummaryMetricQueryResult& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
189 inline SummaryMetricQueryResult& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
190 inline SummaryMetricQueryResult& WithUnit(const char* value) { SetUnit(value); return *this;}
192 private:
193
194 Aws::String m_queryId;
195 bool m_queryIdHasBeenSet = false;
196
197 MetricQueryStatus m_queryStatus;
198 bool m_queryStatusHasBeenSet = false;
199
200 Aws::String m_error;
201 bool m_errorHasBeenSet = false;
202
203 MetricName m_metricName;
204 bool m_metricNameHasBeenSet = false;
205
206 Aws::Vector<Dimension> m_dimensions;
207 bool m_dimensionsHasBeenSet = false;
208
209 AggregationPeriod m_aggregationPeriod;
210 bool m_aggregationPeriodHasBeenSet = false;
211
212 Aws::Utils::DateTime m_startTimestamp;
213 bool m_startTimestampHasBeenSet = false;
214
215 Aws::Utils::DateTime m_endTimestamp;
216 bool m_endTimestampHasBeenSet = false;
217
219 bool m_timestampsHasBeenSet = false;
220
222 bool m_valuesHasBeenSet = false;
223
224 Aws::String m_unit;
225 bool m_unitHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace IoTWireless
230} // namespace Aws
void SetValues(const Aws::Vector< MetricQueryValue > &value)
const Aws::Vector< MetricQueryValue > & GetValues() const
AWS_IOTWIRELESS_API SummaryMetricQueryResult(Aws::Utils::Json::JsonView jsonValue)
SummaryMetricQueryResult & WithQueryStatus(MetricQueryStatus &&value)
SummaryMetricQueryResult & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
SummaryMetricQueryResult & WithDimensions(const Aws::Vector< Dimension > &value)
SummaryMetricQueryResult & WithQueryId(const char *value)
SummaryMetricQueryResult & WithDimensions(Aws::Vector< Dimension > &&value)
SummaryMetricQueryResult & AddDimensions(const Dimension &value)
void SetStartTimestamp(const Aws::Utils::DateTime &value)
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
SummaryMetricQueryResult & WithUnit(Aws::String &&value)
SummaryMetricQueryResult & WithValues(const Aws::Vector< MetricQueryValue > &value)
AWS_IOTWIRELESS_API SummaryMetricQueryResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SummaryMetricQueryResult & WithValues(Aws::Vector< MetricQueryValue > &&value)
void SetEndTimestamp(const Aws::Utils::DateTime &value)
SummaryMetricQueryResult & AddTimestamps(Aws::Utils::DateTime &&value)
SummaryMetricQueryResult & WithError(Aws::String &&value)
void SetDimensions(Aws::Vector< Dimension > &&value)
SummaryMetricQueryResult & AddTimestamps(const Aws::Utils::DateTime &value)
SummaryMetricQueryResult & AddDimensions(Dimension &&value)
SummaryMetricQueryResult & WithStartTimestamp(const Aws::Utils::DateTime &value)
void SetAggregationPeriod(const AggregationPeriod &value)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
SummaryMetricQueryResult & WithMetricName(MetricName &&value)
SummaryMetricQueryResult & WithQueryId(Aws::String &&value)
const Aws::Vector< Dimension > & GetDimensions() const
SummaryMetricQueryResult & WithQueryStatus(const MetricQueryStatus &value)
SummaryMetricQueryResult & WithEndTimestamp(const Aws::Utils::DateTime &value)
void SetDimensions(const Aws::Vector< Dimension > &value)
SummaryMetricQueryResult & WithAggregationPeriod(AggregationPeriod &&value)
SummaryMetricQueryResult & WithEndTimestamp(Aws::Utils::DateTime &&value)
SummaryMetricQueryResult & WithQueryId(const Aws::String &value)
SummaryMetricQueryResult & WithError(const char *value)
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
SummaryMetricQueryResult & AddValues(MetricQueryValue &&value)
SummaryMetricQueryResult & WithUnit(const Aws::String &value)
SummaryMetricQueryResult & WithStartTimestamp(Aws::Utils::DateTime &&value)
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
SummaryMetricQueryResult & WithError(const Aws::String &value)
void SetValues(Aws::Vector< MetricQueryValue > &&value)
SummaryMetricQueryResult & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
SummaryMetricQueryResult & AddValues(const MetricQueryValue &value)
SummaryMetricQueryResult & WithUnit(const char *value)
SummaryMetricQueryResult & WithAggregationPeriod(const AggregationPeriod &value)
SummaryMetricQueryResult & WithMetricName(const 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