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>
26namespace IoTWireless {
48 template <
typename QueryIdT = Aws::String>
50 m_queryIdHasBeenSet =
true;
51 m_queryId = std::forward<QueryIdT>(value);
53 template <
typename QueryIdT = Aws::String>
67 m_queryStatusHasBeenSet =
true;
68 m_queryStatus = value;
82 template <
typename ErrorT = Aws::String>
84 m_errorHasBeenSet =
true;
85 m_error = std::forward<ErrorT>(value);
87 template <
typename ErrorT = Aws::String>
89 SetError(std::forward<ErrorT>(value));
101 m_metricNameHasBeenSet =
true;
102 m_metricName = value;
116 template <
typename DimensionsT = Aws::Vector<Dimension>>
118 m_dimensionsHasBeenSet =
true;
119 m_dimensions = std::forward<DimensionsT>(value);
121 template <
typename DimensionsT = Aws::Vector<Dimension>>
126 template <
typename DimensionsT = Dimension>
128 m_dimensionsHasBeenSet =
true;
129 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
141 m_aggregationPeriodHasBeenSet =
true;
142 m_aggregationPeriod = value;
156 template <
typename StartTimestampT = Aws::Utils::DateTime>
158 m_startTimestampHasBeenSet =
true;
159 m_startTimestamp = std::forward<StartTimestampT>(value);
161 template <
typename StartTimestampT = Aws::Utils::DateTime>
174 template <
typename EndTimestampT = Aws::Utils::DateTime>
176 m_endTimestampHasBeenSet =
true;
177 m_endTimestamp = std::forward<EndTimestampT>(value);
179 template <
typename EndTimestampT = Aws::Utils::DateTime>
192 template <
typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
194 m_timestampsHasBeenSet =
true;
195 m_timestamps = std::forward<TimestampsT>(value);
197 template <
typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
202 template <
typename TimestampsT = Aws::Utils::DateTime>
204 m_timestampsHasBeenSet =
true;
205 m_timestamps.emplace_back(std::forward<TimestampsT>(value));
216 template <
typename ValuesT = Aws::Vector<MetricQueryValue>>
218 m_valuesHasBeenSet =
true;
219 m_values = std::forward<ValuesT>(value);
221 template <
typename ValuesT = Aws::Vector<MetricQueryValue>>
226 template <
typename ValuesT = MetricQueryValue>
228 m_valuesHasBeenSet =
true;
229 m_values.emplace_back(std::forward<ValuesT>(value));
241 template <
typename UnitT = Aws::String>
243 m_unitHasBeenSet =
true;
244 m_unit = std::forward<UnitT>(value);
246 template <
typename UnitT = Aws::String>
248 SetUnit(std::forward<UnitT>(value));
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;
void SetDimensions(DimensionsT &&value)
void SetQueryStatus(MetricQueryStatus value)
bool UnitHasBeenSet() const
bool DimensionsHasBeenSet() const
void SetAggregationPeriod(AggregationPeriod value)
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)
bool TimestampsHasBeenSet() const
const Aws::String & GetUnit() const
const Aws::Utils::DateTime & GetEndTimestamp() const
MetricQueryStatus GetQueryStatus() const
SummaryMetricQueryResult & WithValues(ValuesT &&value)
void SetError(ErrorT &&value)
MetricName GetMetricName() const
bool AggregationPeriodHasBeenSet() const
bool QueryStatusHasBeenSet() const
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
AggregationPeriod GetAggregationPeriod() const
void SetValues(ValuesT &&value)
const Aws::Vector< Dimension > & GetDimensions() const
bool EndTimestampHasBeenSet() const
void SetQueryId(QueryIdT &&value)
SummaryMetricQueryResult & WithQueryId(QueryIdT &&value)
void SetUnit(UnitT &&value)
const Aws::String & GetError() const
bool ValuesHasBeenSet() const
bool ErrorHasBeenSet() const
SummaryMetricQueryResult & WithDimensions(DimensionsT &&value)
void SetTimestamps(TimestampsT &&value)
SummaryMetricQueryResult & AddDimensions(DimensionsT &&value)
SummaryMetricQueryResult & WithStartTimestamp(StartTimestampT &&value)
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricName(MetricName value)
SummaryMetricQueryResult & WithEndTimestamp(EndTimestampT &&value)
const Aws::String & GetQueryId() const
const Aws::Utils::DateTime & GetStartTimestamp() const
SummaryMetricQueryResult & WithQueryStatus(MetricQueryStatus value)
bool StartTimestampHasBeenSet() const
bool QueryIdHasBeenSet() const
SummaryMetricQueryResult & WithError(ErrorT &&value)
bool MetricNameHasBeenSet() const
void SetStartTimestamp(StartTimestampT &&value)
void SetEndTimestamp(EndTimestampT &&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