AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
SearchEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchmemory/OpenSearchMemoryRequest.h>
11#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchMemory {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHMEMORY_API SearchEventsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchEvents"; }
30
31 AWS_OPENSEARCHMEMORY_API Aws::String SerializePayload() const override;
32
33 AWS_OPENSEARCHMEMORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
38 AWS_OPENSEARCHMEMORY_API EndpointParameters GetEndpointContextParams() const override;
39
41
45 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
46 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
47 template <typename SpaceIdT = Aws::String>
48 void SetSpaceId(SpaceIdT&& value) {
49 m_spaceIdHasBeenSet = true;
50 m_spaceId = std::forward<SpaceIdT>(value);
51 }
52 template <typename SpaceIdT = Aws::String>
53 SearchEventsRequest& WithSpaceId(SpaceIdT&& value) {
54 SetSpaceId(std::forward<SpaceIdT>(value));
55 return *this;
56 }
58
60
68 inline const Aws::String& GetActorId() const { return m_actorId; }
69 inline bool ActorIdHasBeenSet() const { return m_actorIdHasBeenSet; }
70 template <typename ActorIdT = Aws::String>
71 void SetActorId(ActorIdT&& value) {
72 m_actorIdHasBeenSet = true;
73 m_actorId = std::forward<ActorIdT>(value);
74 }
75 template <typename ActorIdT = Aws::String>
76 SearchEventsRequest& WithActorId(ActorIdT&& value) {
77 SetActorId(std::forward<ActorIdT>(value));
78 return *this;
79 }
81
83
91 inline const Aws::Vector<Aws::String>& GetSessionIds() const { return m_sessionIds; }
92 inline bool SessionIdsHasBeenSet() const { return m_sessionIdsHasBeenSet; }
93 template <typename SessionIdsT = Aws::Vector<Aws::String>>
94 void SetSessionIds(SessionIdsT&& value) {
95 m_sessionIdsHasBeenSet = true;
96 m_sessionIds = std::forward<SessionIdsT>(value);
97 }
98 template <typename SessionIdsT = Aws::Vector<Aws::String>>
99 SearchEventsRequest& WithSessionIds(SessionIdsT&& value) {
100 SetSessionIds(std::forward<SessionIdsT>(value));
101 return *this;
102 }
103 template <typename SessionIdsT = Aws::String>
104 SearchEventsRequest& AddSessionIds(SessionIdsT&& value) {
105 m_sessionIdsHasBeenSet = true;
106 m_sessionIds.emplace_back(std::forward<SessionIdsT>(value));
107 return *this;
108 }
110
112
128 inline Aws::Utils::DocumentView GetQuery() const { return m_query; }
129 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
130 template <typename QueryT = Aws::Utils::Document>
131 void SetQuery(QueryT&& value) {
132 m_queryHasBeenSet = true;
133 m_query = std::forward<QueryT>(value);
134 }
135 template <typename QueryT = Aws::Utils::Document>
137 SetQuery(std::forward<QueryT>(value));
138 return *this;
139 }
141
143
147 inline Aws::Utils::DocumentView GetSort() const { return m_sort; }
148 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
149 template <typename SortT = Aws::Utils::Document>
150 void SetSort(SortT&& value) {
151 m_sortHasBeenSet = true;
152 m_sort = std::forward<SortT>(value);
153 }
154 template <typename SortT = Aws::Utils::Document>
156 SetSort(std::forward<SortT>(value));
157 return *this;
158 }
160
162
165 inline int GetMaxResults() const { return m_maxResults; }
166 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
167 inline void SetMaxResults(int value) {
168 m_maxResultsHasBeenSet = true;
169 m_maxResults = value;
170 }
172 SetMaxResults(value);
173 return *this;
174 }
176
178
182 inline const Aws::String& GetNextToken() const { return m_nextToken; }
183 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
184 template <typename NextTokenT = Aws::String>
185 void SetNextToken(NextTokenT&& value) {
186 m_nextTokenHasBeenSet = true;
187 m_nextToken = std::forward<NextTokenT>(value);
188 }
189 template <typename NextTokenT = Aws::String>
190 SearchEventsRequest& WithNextToken(NextTokenT&& value) {
191 SetNextToken(std::forward<NextTokenT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_spaceId;
197
198 Aws::String m_actorId;
199
200 Aws::Vector<Aws::String> m_sessionIds;
201
202 Aws::Utils::Document m_query;
203
205
206 int m_maxResults{0};
207
208 Aws::String m_nextToken;
209 bool m_spaceIdHasBeenSet = false;
210 bool m_actorIdHasBeenSet = false;
211 bool m_sessionIdsHasBeenSet = false;
212 bool m_queryHasBeenSet = false;
213 bool m_sortHasBeenSet = false;
214 bool m_maxResultsHasBeenSet = false;
215 bool m_nextTokenHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace OpenSearchMemory
220} // namespace Aws
SearchEventsRequest & WithSort(SortT &&value)
virtual const char * GetServiceRequestName() const override
SearchEventsRequest & WithSessionIds(SessionIdsT &&value)
AWS_OPENSEARCHMEMORY_API Aws::String SerializePayload() const override
SearchEventsRequest & WithSpaceId(SpaceIdT &&value)
SearchEventsRequest & WithNextToken(NextTokenT &&value)
AWS_OPENSEARCHMEMORY_API EndpointParameters GetEndpointContextParams() const override
const Aws::Vector< Aws::String > & GetSessionIds() const
SearchEventsRequest & WithActorId(ActorIdT &&value)
SearchEventsRequest & WithQuery(QueryT &&value)
AWS_OPENSEARCHMEMORY_API SearchEventsRequest()=default
AWS_OPENSEARCHMEMORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchEventsRequest & AddSessionIds(SessionIdsT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector