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>
54 template<
typename QueryIdT = Aws::String>
55 void SetQueryId(QueryIdT&& value) { m_queryIdHasBeenSet =
true; m_queryId = std::forward<QueryIdT>(value); }
56 template<
typename QueryIdT = Aws::String>
76 template<
typename ErrorT = Aws::String>
77 void SetError(ErrorT&& value) { m_errorHasBeenSet =
true; m_error = std::forward<ErrorT>(value); }
78 template<
typename ErrorT = Aws::String>
98 template<
typename DimensionsT = Aws::Vector<Dimension>>
99 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions = std::forward<DimensionsT>(value); }
100 template<
typename DimensionsT = Aws::Vector<Dimension>>
102 template<
typename DimensionsT = Dimension>
122 template<
typename StartTimestampT = Aws::Utils::DateTime>
123 void SetStartTimestamp(StartTimestampT&& value) { m_startTimestampHasBeenSet =
true; m_startTimestamp = std::forward<StartTimestampT>(value); }
124 template<
typename StartTimestampT = Aws::Utils::DateTime>
134 template<
typename EndTimestampT = Aws::Utils::DateTime>
135 void SetEndTimestamp(EndTimestampT&& value) { m_endTimestampHasBeenSet =
true; m_endTimestamp = std::forward<EndTimestampT>(value); }
136 template<
typename EndTimestampT = Aws::Utils::DateTime>
146 template<
typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
147 void SetTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet =
true; m_timestamps = std::forward<TimestampsT>(value); }
148 template<
typename TimestampsT = Aws::Vector<Aws::Utils::DateTime>>
150 template<
typename TimestampsT = Aws::Utils::DateTime>
160 template<
typename ValuesT = Aws::Vector<MetricQueryValue>>
161 void SetValues(ValuesT&& value) { m_valuesHasBeenSet =
true; m_values = std::forward<ValuesT>(value); }
162 template<
typename ValuesT = Aws::Vector<MetricQueryValue>>
164 template<
typename ValuesT = MetricQueryValue>
175 template<
typename UnitT = Aws::String>
176 void SetUnit(UnitT&& value) { m_unitHasBeenSet =
true; m_unit = std::forward<UnitT>(value); }
177 template<
typename UnitT = Aws::String>
183 bool m_queryIdHasBeenSet =
false;
186 bool m_queryStatusHasBeenSet =
false;
189 bool m_errorHasBeenSet =
false;
192 bool m_metricNameHasBeenSet =
false;
195 bool m_dimensionsHasBeenSet =
false;
198 bool m_aggregationPeriodHasBeenSet =
false;
201 bool m_startTimestampHasBeenSet =
false;
204 bool m_endTimestampHasBeenSet =
false;
207 bool m_timestampsHasBeenSet =
false;
210 bool m_valuesHasBeenSet =
false;
213 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