AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
SearchAgentContextRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/SearchAgentContextType.h>
10#include <aws/context/model/SearchFilter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Context {
17namespace Model {
18
25 public:
26 AWS_CONTEXT_API SearchAgentContextRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchAgentContext"; }
33
34 AWS_CONTEXT_API Aws::String SerializePayload() const override;
35
37
39
42 inline int GetMaxResults() const { return m_maxResults; }
43 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
44 inline void SetMaxResults(int value) {
45 m_maxResultsHasBeenSet = true;
46 m_maxResults = value;
47 }
49 SetMaxResults(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
77 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
78 template <typename AgentContextIdT = Aws::String>
79 void SetAgentContextId(AgentContextIdT&& value) {
80 m_agentContextIdHasBeenSet = true;
81 m_agentContextId = std::forward<AgentContextIdT>(value);
82 }
83 template <typename AgentContextIdT = Aws::String>
85 SetAgentContextId(std::forward<AgentContextIdT>(value));
86 return *this;
87 }
89
91
97 inline const Aws::String& GetQuery() const { return m_query; }
98 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
99 template <typename QueryT = Aws::String>
100 void SetQuery(QueryT&& value) {
101 m_queryHasBeenSet = true;
102 m_query = std::forward<QueryT>(value);
103 }
104 template <typename QueryT = Aws::String>
106 SetQuery(std::forward<QueryT>(value));
107 return *this;
108 }
110
112
116 inline const SearchFilter& GetFilter() const { return m_filter; }
117 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
118 template <typename FilterT = SearchFilter>
119 void SetFilter(FilterT&& value) {
120 m_filterHasBeenSet = true;
121 m_filter = std::forward<FilterT>(value);
122 }
123 template <typename FilterT = SearchFilter>
125 SetFilter(std::forward<FilterT>(value));
126 return *this;
127 }
129
131
138 inline SearchAgentContextType GetSearchType() const { return m_searchType; }
139 inline bool SearchTypeHasBeenSet() const { return m_searchTypeHasBeenSet; }
141 m_searchTypeHasBeenSet = true;
142 m_searchType = value;
143 }
145 SetSearchType(value);
146 return *this;
147 }
149 private:
150 int m_maxResults{0};
151
152 Aws::String m_nextToken;
153
154 Aws::String m_agentContextId;
155
156 Aws::String m_query;
157
158 SearchFilter m_filter;
159
161 bool m_maxResultsHasBeenSet = false;
162 bool m_nextTokenHasBeenSet = false;
163 bool m_agentContextIdHasBeenSet = false;
164 bool m_queryHasBeenSet = false;
165 bool m_filterHasBeenSet = false;
166 bool m_searchTypeHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Context
171} // namespace Aws
SearchAgentContextRequest & WithMaxResults(int value)
SearchAgentContextRequest & WithFilter(FilterT &&value)
SearchAgentContextRequest & WithSearchType(SearchAgentContextType value)
AWS_CONTEXT_API Aws::String SerializePayload() const override
AWS_CONTEXT_API SearchAgentContextRequest()=default
SearchAgentContextRequest & WithQuery(QueryT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchAgentContextRequest & WithNextToken(NextTokenT &&value)
SearchAgentContextRequest & WithAgentContextId(AgentContextIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String