AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SearchResourcesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workdocs/WorkDocsRequest.h>
10#include <aws/workdocs/WorkDocs_EXPORTS.h>
11#include <aws/workdocs/model/AdditionalResponseFieldType.h>
12#include <aws/workdocs/model/Filters.h>
13#include <aws/workdocs/model/SearchQueryScopeType.h>
14#include <aws/workdocs/model/SearchSortResult.h>
15
16#include <utility>
17
18namespace Aws {
19namespace WorkDocs {
20namespace Model {
21
25 public:
26 AWS_WORKDOCS_API SearchResourcesRequest() = 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 "SearchResources"; }
33
34 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
44 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
45 template <typename AuthenticationTokenT = Aws::String>
46 void SetAuthenticationToken(AuthenticationTokenT&& value) {
47 m_authenticationTokenHasBeenSet = true;
48 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
49 }
50 template <typename AuthenticationTokenT = Aws::String>
51 SearchResourcesRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
52 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetQueryText() const { return m_queryText; }
64 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
65 template <typename QueryTextT = Aws::String>
66 void SetQueryText(QueryTextT&& value) {
67 m_queryTextHasBeenSet = true;
68 m_queryText = std::forward<QueryTextT>(value);
69 }
70 template <typename QueryTextT = Aws::String>
72 SetQueryText(std::forward<QueryTextT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<SearchQueryScopeType>& GetQueryScopes() const { return m_queryScopes; }
84 inline bool QueryScopesHasBeenSet() const { return m_queryScopesHasBeenSet; }
85 template <typename QueryScopesT = Aws::Vector<SearchQueryScopeType>>
86 void SetQueryScopes(QueryScopesT&& value) {
87 m_queryScopesHasBeenSet = true;
88 m_queryScopes = std::forward<QueryScopesT>(value);
89 }
90 template <typename QueryScopesT = Aws::Vector<SearchQueryScopeType>>
91 SearchResourcesRequest& WithQueryScopes(QueryScopesT&& value) {
92 SetQueryScopes(std::forward<QueryScopesT>(value));
93 return *this;
94 }
96 m_queryScopesHasBeenSet = true;
97 m_queryScopes.push_back(value);
98 return *this;
99 }
101
103
107 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
108 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
109 template <typename OrganizationIdT = Aws::String>
110 void SetOrganizationId(OrganizationIdT&& value) {
111 m_organizationIdHasBeenSet = true;
112 m_organizationId = std::forward<OrganizationIdT>(value);
113 }
114 template <typename OrganizationIdT = Aws::String>
115 SearchResourcesRequest& WithOrganizationId(OrganizationIdT&& value) {
116 SetOrganizationId(std::forward<OrganizationIdT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Vector<AdditionalResponseFieldType>& GetAdditionalResponseFields() const { return m_additionalResponseFields; }
127 inline bool AdditionalResponseFieldsHasBeenSet() const { return m_additionalResponseFieldsHasBeenSet; }
128 template <typename AdditionalResponseFieldsT = Aws::Vector<AdditionalResponseFieldType>>
129 void SetAdditionalResponseFields(AdditionalResponseFieldsT&& value) {
130 m_additionalResponseFieldsHasBeenSet = true;
131 m_additionalResponseFields = std::forward<AdditionalResponseFieldsT>(value);
132 }
133 template <typename AdditionalResponseFieldsT = Aws::Vector<AdditionalResponseFieldType>>
134 SearchResourcesRequest& WithAdditionalResponseFields(AdditionalResponseFieldsT&& value) {
135 SetAdditionalResponseFields(std::forward<AdditionalResponseFieldsT>(value));
136 return *this;
137 }
139 m_additionalResponseFieldsHasBeenSet = true;
140 m_additionalResponseFields.push_back(value);
141 return *this;
142 }
144
146
149 inline const Filters& GetFilters() const { return m_filters; }
150 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
151 template <typename FiltersT = Filters>
152 void SetFilters(FiltersT&& value) {
153 m_filtersHasBeenSet = true;
154 m_filters = std::forward<FiltersT>(value);
155 }
156 template <typename FiltersT = Filters>
158 SetFilters(std::forward<FiltersT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Vector<SearchSortResult>& GetOrderBy() const { return m_orderBy; }
168 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
169 template <typename OrderByT = Aws::Vector<SearchSortResult>>
170 void SetOrderBy(OrderByT&& value) {
171 m_orderByHasBeenSet = true;
172 m_orderBy = std::forward<OrderByT>(value);
173 }
174 template <typename OrderByT = Aws::Vector<SearchSortResult>>
176 SetOrderBy(std::forward<OrderByT>(value));
177 return *this;
178 }
179 template <typename OrderByT = SearchSortResult>
181 m_orderByHasBeenSet = true;
182 m_orderBy.emplace_back(std::forward<OrderByT>(value));
183 return *this;
184 }
186
188
191 inline int GetLimit() const { return m_limit; }
192 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
193 inline void SetLimit(int value) {
194 m_limitHasBeenSet = true;
195 m_limit = value;
196 }
198 SetLimit(value);
199 return *this;
200 }
202
204
207 inline const Aws::String& GetMarker() const { return m_marker; }
208 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
209 template <typename MarkerT = Aws::String>
210 void SetMarker(MarkerT&& value) {
211 m_markerHasBeenSet = true;
212 m_marker = std::forward<MarkerT>(value);
213 }
214 template <typename MarkerT = Aws::String>
216 SetMarker(std::forward<MarkerT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_authenticationToken;
222
223 Aws::String m_queryText;
224
226
227 Aws::String m_organizationId;
228
229 Aws::Vector<AdditionalResponseFieldType> m_additionalResponseFields;
230
231 Filters m_filters;
232
234
235 int m_limit{0};
236
237 Aws::String m_marker;
238 bool m_authenticationTokenHasBeenSet = false;
239 bool m_queryTextHasBeenSet = false;
240 bool m_queryScopesHasBeenSet = false;
241 bool m_organizationIdHasBeenSet = false;
242 bool m_additionalResponseFieldsHasBeenSet = false;
243 bool m_filtersHasBeenSet = false;
244 bool m_orderByHasBeenSet = false;
245 bool m_limitHasBeenSet = false;
246 bool m_markerHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace WorkDocs
251} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_WORKDOCS_API Aws::String SerializePayload() const override
SearchResourcesRequest & WithFilters(FiltersT &&value)
SearchResourcesRequest & AddAdditionalResponseFields(AdditionalResponseFieldType value)
SearchResourcesRequest & WithMarker(MarkerT &&value)
SearchResourcesRequest & WithQueryText(QueryTextT &&value)
const Aws::Vector< AdditionalResponseFieldType > & GetAdditionalResponseFields() const
SearchResourcesRequest & AddQueryScopes(SearchQueryScopeType value)
AWS_WORKDOCS_API SearchResourcesRequest()=default
SearchResourcesRequest & WithAdditionalResponseFields(AdditionalResponseFieldsT &&value)
void SetAdditionalResponseFields(AdditionalResponseFieldsT &&value)
SearchResourcesRequest & WithOrganizationId(OrganizationIdT &&value)
SearchResourcesRequest & WithLimit(int value)
const Aws::Vector< SearchQueryScopeType > & GetQueryScopes() const
const Aws::Vector< SearchSortResult > & GetOrderBy() const
SearchResourcesRequest & AddOrderBy(OrderByT &&value)
SearchResourcesRequest & WithQueryScopes(QueryScopesT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
SearchResourcesRequest & WithOrderBy(OrderByT &&value)
SearchResourcesRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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