AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
GetTelemetryQueryResultsResult.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/QueryStatistics.h>
9#include <aws/cloudwatchomni/model/QueryStatus.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace CloudWatchOmni {
27namespace Model {
29 public:
30 AWS_CLOUDWATCHOMNI_API GetTelemetryQueryResultsResult() = default;
33
35
38 inline QueryStatus GetStatus() const { return m_status; }
39 inline void SetStatus(QueryStatus value) {
40 m_statusHasBeenSet = true;
41 m_status = value;
42 }
44 SetStatus(value);
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetRows() const { return m_rows; }
54 template <typename RowsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
55 void SetRows(RowsT&& value) {
56 m_rowsHasBeenSet = true;
57 m_rows = std::forward<RowsT>(value);
58 }
59 template <typename RowsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
61 SetRows(std::forward<RowsT>(value));
62 return *this;
63 }
64 template <typename RowsT = Aws::Map<Aws::String, Aws::String>>
66 m_rowsHasBeenSet = true;
67 m_rows.emplace_back(std::forward<RowsT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 template <typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) {
80 m_nextTokenHasBeenSet = true;
81 m_nextToken = std::forward<NextTokenT>(value);
82 }
83 template <typename NextTokenT = Aws::String>
85 SetNextToken(std::forward<NextTokenT>(value));
86 return *this;
87 }
89
91
94 inline const QueryStatistics& GetStatistics() const { return m_statistics; }
95 template <typename StatisticsT = QueryStatistics>
96 void SetStatistics(StatisticsT&& value) {
97 m_statisticsHasBeenSet = true;
98 m_statistics = std::forward<StatisticsT>(value);
99 }
100 template <typename StatisticsT = QueryStatistics>
102 SetStatistics(std::forward<StatisticsT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
122
123 private:
125
127
128 Aws::String m_nextToken;
129
130 QueryStatistics m_statistics;
131
132 Aws::String m_requestId;
133 Aws::Http::HttpResponseCode m_HttpResponseCode;
134 bool m_statusHasBeenSet = false;
135 bool m_rowsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137 bool m_statisticsHasBeenSet = false;
138 bool m_requestIdHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace CloudWatchOmni
143} // namespace Aws
GetTelemetryQueryResultsResult & WithStatus(QueryStatus value)
AWS_CLOUDWATCHOMNI_API GetTelemetryQueryResultsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
GetTelemetryQueryResultsResult & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHOMNI_API GetTelemetryQueryResultsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_CLOUDWATCHOMNI_API GetTelemetryQueryResultsResult()=default
GetTelemetryQueryResultsResult & WithStatistics(StatisticsT &&value)
GetTelemetryQueryResultsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetRows() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector