AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 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>
57 SummaryMetricQueryResult& WithQueryId(QueryIdT&& value) { SetQueryId(std::forward<QueryIdT>(value)); return *this;}
59
61
64 inline MetricQueryStatus GetQueryStatus() const { return m_queryStatus; }
65 inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; }
66 inline void SetQueryStatus(MetricQueryStatus value) { m_queryStatusHasBeenSet = true; m_queryStatus = value; }
69
71
74 inline const Aws::String& GetError() const { return m_error; }
75 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
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>
79 SummaryMetricQueryResult& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
81
83
86 inline MetricName GetMetricName() const { return m_metricName; }
87 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
88 inline void SetMetricName(MetricName value) { m_metricNameHasBeenSet = true; m_metricName = value; }
89 inline SummaryMetricQueryResult& WithMetricName(MetricName value) { SetMetricName(value); return *this;}
91
93
96 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
97 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
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>>
101 SummaryMetricQueryResult& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
102 template<typename DimensionsT = Dimension>
103 SummaryMetricQueryResult& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
105
107
110 inline AggregationPeriod GetAggregationPeriod() const { return m_aggregationPeriod; }
111 inline bool AggregationPeriodHasBeenSet() const { return m_aggregationPeriodHasBeenSet; }
112 inline void SetAggregationPeriod(AggregationPeriod value) { m_aggregationPeriodHasBeenSet = true; m_aggregationPeriod = value; }
115
117
120 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
121 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
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>
125 SummaryMetricQueryResult& WithStartTimestamp(StartTimestampT&& value) { SetStartTimestamp(std::forward<StartTimestampT>(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetEndTimestamp() const { return m_endTimestamp; }
133 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
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>
137 SummaryMetricQueryResult& WithEndTimestamp(EndTimestampT&& value) { SetEndTimestamp(std::forward<EndTimestampT>(value)); return *this;}
139
141
144 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const { return m_timestamps; }
145 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
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>>
149 SummaryMetricQueryResult& WithTimestamps(TimestampsT&& value) { SetTimestamps(std::forward<TimestampsT>(value)); return *this;}
150 template<typename TimestampsT = Aws::Utils::DateTime>
151 SummaryMetricQueryResult& AddTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet = true; m_timestamps.emplace_back(std::forward<TimestampsT>(value)); return *this; }
153
155
158 inline const Aws::Vector<MetricQueryValue>& GetValues() const { return m_values; }
159 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
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>>
163 SummaryMetricQueryResult& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
164 template<typename ValuesT = MetricQueryValue>
165 SummaryMetricQueryResult& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
167
169
173 inline const Aws::String& GetUnit() const { return m_unit; }
174 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
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>
178 SummaryMetricQueryResult& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
180 private:
181
182 Aws::String m_queryId;
183 bool m_queryIdHasBeenSet = false;
184
186 bool m_queryStatusHasBeenSet = false;
187
188 Aws::String m_error;
189 bool m_errorHasBeenSet = false;
190
191 MetricName m_metricName{MetricName::NOT_SET};
192 bool m_metricNameHasBeenSet = false;
193
194 Aws::Vector<Dimension> m_dimensions;
195 bool m_dimensionsHasBeenSet = false;
196
198 bool m_aggregationPeriodHasBeenSet = false;
199
200 Aws::Utils::DateTime m_startTimestamp{};
201 bool m_startTimestampHasBeenSet = false;
202
203 Aws::Utils::DateTime m_endTimestamp{};
204 bool m_endTimestampHasBeenSet = false;
205
207 bool m_timestampsHasBeenSet = false;
208
210 bool m_valuesHasBeenSet = false;
211
212 Aws::String m_unit;
213 bool m_unitHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace IoTWireless
218} // 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