AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
DescribeFleetMetricResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/AggregationType.h>
12#include <aws/iot/model/FleetMetricUnit.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT {
26namespace Model {
28 public:
29 AWS_IOT_API DescribeFleetMetricResult() = default;
32
34
37 inline const Aws::String& GetMetricName() const { return m_metricName; }
38 template <typename MetricNameT = Aws::String>
39 void SetMetricName(MetricNameT&& value) {
40 m_metricNameHasBeenSet = true;
41 m_metricName = std::forward<MetricNameT>(value);
42 }
43 template <typename MetricNameT = Aws::String>
45 SetMetricName(std::forward<MetricNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetQueryString() const { return m_queryString; }
55 template <typename QueryStringT = Aws::String>
56 void SetQueryString(QueryStringT&& value) {
57 m_queryStringHasBeenSet = true;
58 m_queryString = std::forward<QueryStringT>(value);
59 }
60 template <typename QueryStringT = Aws::String>
62 SetQueryString(std::forward<QueryStringT>(value));
63 return *this;
64 }
66
68
71 inline const AggregationType& GetAggregationType() const { return m_aggregationType; }
72 template <typename AggregationTypeT = AggregationType>
73 void SetAggregationType(AggregationTypeT&& value) {
74 m_aggregationTypeHasBeenSet = true;
75 m_aggregationType = std::forward<AggregationTypeT>(value);
76 }
77 template <typename AggregationTypeT = AggregationType>
79 SetAggregationType(std::forward<AggregationTypeT>(value));
80 return *this;
81 }
83
85
89 inline int GetPeriod() const { return m_period; }
90 inline void SetPeriod(int value) {
91 m_periodHasBeenSet = true;
92 m_period = value;
93 }
95 SetPeriod(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetAggregationField() const { return m_aggregationField; }
105 template <typename AggregationFieldT = Aws::String>
106 void SetAggregationField(AggregationFieldT&& value) {
107 m_aggregationFieldHasBeenSet = true;
108 m_aggregationField = std::forward<AggregationFieldT>(value);
109 }
110 template <typename AggregationFieldT = Aws::String>
112 SetAggregationField(std::forward<AggregationFieldT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetDescription() const { return m_description; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
139 template <typename QueryVersionT = Aws::String>
140 void SetQueryVersion(QueryVersionT&& value) {
141 m_queryVersionHasBeenSet = true;
142 m_queryVersion = std::forward<QueryVersionT>(value);
143 }
144 template <typename QueryVersionT = Aws::String>
146 SetQueryVersion(std::forward<QueryVersionT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetIndexName() const { return m_indexName; }
156 template <typename IndexNameT = Aws::String>
157 void SetIndexName(IndexNameT&& value) {
158 m_indexNameHasBeenSet = true;
159 m_indexName = std::forward<IndexNameT>(value);
160 }
161 template <typename IndexNameT = Aws::String>
163 SetIndexName(std::forward<IndexNameT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
173 template <typename CreationDateT = Aws::Utils::DateTime>
174 void SetCreationDate(CreationDateT&& value) {
175 m_creationDateHasBeenSet = true;
176 m_creationDate = std::forward<CreationDateT>(value);
177 }
178 template <typename CreationDateT = Aws::Utils::DateTime>
180 SetCreationDate(std::forward<CreationDateT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
190 template <typename LastModifiedDateT = Aws::Utils::DateTime>
191 void SetLastModifiedDate(LastModifiedDateT&& value) {
192 m_lastModifiedDateHasBeenSet = true;
193 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
194 }
195 template <typename LastModifiedDateT = Aws::Utils::DateTime>
197 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
198 return *this;
199 }
201
203
209 inline FleetMetricUnit GetUnit() const { return m_unit; }
210 inline void SetUnit(FleetMetricUnit value) {
211 m_unitHasBeenSet = true;
212 m_unit = value;
213 }
215 SetUnit(value);
216 return *this;
217 }
219
221
224 inline long long GetVersion() const { return m_version; }
225 inline void SetVersion(long long value) {
226 m_versionHasBeenSet = true;
227 m_version = value;
228 }
229 inline DescribeFleetMetricResult& WithVersion(long long value) {
230 SetVersion(value);
231 return *this;
232 }
234
236
239 inline const Aws::String& GetMetricArn() const { return m_metricArn; }
240 template <typename MetricArnT = Aws::String>
241 void SetMetricArn(MetricArnT&& value) {
242 m_metricArnHasBeenSet = true;
243 m_metricArn = std::forward<MetricArnT>(value);
244 }
245 template <typename MetricArnT = Aws::String>
247 SetMetricArn(std::forward<MetricArnT>(value));
248 return *this;
249 }
251
253
254 inline const Aws::String& GetRequestId() const { return m_requestId; }
255 template <typename RequestIdT = Aws::String>
256 void SetRequestId(RequestIdT&& value) {
257 m_requestIdHasBeenSet = true;
258 m_requestId = std::forward<RequestIdT>(value);
259 }
260 template <typename RequestIdT = Aws::String>
262 SetRequestId(std::forward<RequestIdT>(value));
263 return *this;
264 }
266 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
267
268 private:
269 Aws::String m_metricName;
270
271 Aws::String m_queryString;
272
273 AggregationType m_aggregationType;
274
275 int m_period{0};
276
277 Aws::String m_aggregationField;
278
279 Aws::String m_description;
280
281 Aws::String m_queryVersion;
282
283 Aws::String m_indexName;
284
285 Aws::Utils::DateTime m_creationDate{};
286
287 Aws::Utils::DateTime m_lastModifiedDate{};
288
290
291 long long m_version{0};
292
293 Aws::String m_metricArn;
294
295 Aws::String m_requestId;
296 Aws::Http::HttpResponseCode m_HttpResponseCode;
297 bool m_metricNameHasBeenSet = false;
298 bool m_queryStringHasBeenSet = false;
299 bool m_aggregationTypeHasBeenSet = false;
300 bool m_periodHasBeenSet = false;
301 bool m_aggregationFieldHasBeenSet = false;
302 bool m_descriptionHasBeenSet = false;
303 bool m_queryVersionHasBeenSet = false;
304 bool m_indexNameHasBeenSet = false;
305 bool m_creationDateHasBeenSet = false;
306 bool m_lastModifiedDateHasBeenSet = false;
307 bool m_unitHasBeenSet = false;
308 bool m_versionHasBeenSet = false;
309 bool m_metricArnHasBeenSet = false;
310 bool m_requestIdHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace IoT
315} // namespace Aws
DescribeFleetMetricResult & WithPeriod(int value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_IOT_API DescribeFleetMetricResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeFleetMetricResult & WithQueryString(QueryStringT &&value)
DescribeFleetMetricResult & WithAggregationField(AggregationFieldT &&value)
AWS_IOT_API DescribeFleetMetricResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeFleetMetricResult & WithLastModifiedDate(LastModifiedDateT &&value)
DescribeFleetMetricResult & WithAggregationType(AggregationTypeT &&value)
DescribeFleetMetricResult & WithIndexName(IndexNameT &&value)
DescribeFleetMetricResult & WithQueryVersion(QueryVersionT &&value)
DescribeFleetMetricResult & WithDescription(DescriptionT &&value)
DescribeFleetMetricResult & WithVersion(long long value)
DescribeFleetMetricResult & WithMetricArn(MetricArnT &&value)
DescribeFleetMetricResult & WithRequestId(RequestIdT &&value)
DescribeFleetMetricResult & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
DescribeFleetMetricResult & WithMetricName(MetricNameT &&value)
DescribeFleetMetricResult & WithUnit(FleetMetricUnit value)
AWS_IOT_API DescribeFleetMetricResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue