AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetQueryResultsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
11#include <aws/internetmonitor/model/QueryField.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace InternetMonitor {
25namespace Model {
27 public:
28 AWS_INTERNETMONITOR_API GetQueryResultsResult() = default;
31
33
37 inline const Aws::Vector<QueryField>& GetFields() const { return m_fields; }
38 template <typename FieldsT = Aws::Vector<QueryField>>
39 void SetFields(FieldsT&& value) {
40 m_fieldsHasBeenSet = true;
41 m_fields = std::forward<FieldsT>(value);
42 }
43 template <typename FieldsT = Aws::Vector<QueryField>>
45 SetFields(std::forward<FieldsT>(value));
46 return *this;
47 }
48 template <typename FieldsT = QueryField>
49 GetQueryResultsResult& AddFields(FieldsT&& value) {
50 m_fieldsHasBeenSet = true;
51 m_fields.emplace_back(std::forward<FieldsT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetData() const { return m_data; }
65 template <typename DataT = Aws::Vector<Aws::Vector<Aws::String>>>
66 void SetData(DataT&& value) {
67 m_dataHasBeenSet = true;
68 m_data = std::forward<DataT>(value);
69 }
70 template <typename DataT = Aws::Vector<Aws::Vector<Aws::String>>>
72 SetData(std::forward<DataT>(value));
73 return *this;
74 }
75 template <typename DataT = Aws::Vector<Aws::String>>
77 m_dataHasBeenSet = true;
78 m_data.emplace_back(std::forward<DataT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetNextToken() const { return m_nextToken; }
89 template <typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) {
91 m_nextTokenHasBeenSet = true;
92 m_nextToken = std::forward<NextTokenT>(value);
93 }
94 template <typename NextTokenT = Aws::String>
95 GetQueryResultsResult& WithNextToken(NextTokenT&& value) {
96 SetNextToken(std::forward<NextTokenT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template <typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) {
106 m_requestIdHasBeenSet = true;
107 m_requestId = std::forward<RequestIdT>(value);
108 }
109 template <typename RequestIdT = Aws::String>
111 SetRequestId(std::forward<RequestIdT>(value));
112 return *this;
113 }
115 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
116
117 private:
119
121
122 Aws::String m_nextToken;
123
124 Aws::String m_requestId;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_fieldsHasBeenSet = false;
127 bool m_dataHasBeenSet = false;
128 bool m_nextTokenHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace InternetMonitor
134} // namespace Aws
GetQueryResultsResult & WithData(DataT &&value)
GetQueryResultsResult & WithFields(FieldsT &&value)
GetQueryResultsResult & AddData(DataT &&value)
AWS_INTERNETMONITOR_API GetQueryResultsResult()=default
GetQueryResultsResult & WithNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< QueryField > & GetFields() const
GetQueryResultsResult & WithRequestId(RequestIdT &&value)
AWS_INTERNETMONITOR_API GetQueryResultsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQueryResultsResult & AddFields(FieldsT &&value)
const Aws::Vector< Aws::Vector< Aws::String > > & GetData() const
AWS_INTERNETMONITOR_API GetQueryResultsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue