AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchRequest.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
8#include <aws/cloudsearchdomain/CloudSearchDomainRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudsearchdomain/model/QueryParser.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace CloudSearchDomain
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_CLOUDSEARCHDOMAIN_API SearchRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "Search"; }
40
41 AWS_CLOUDSEARCHDOMAIN_API Aws::String SerializePayload() const override;
42
43 AWS_CLOUDSEARCHDOMAIN_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
58 inline const Aws::String& GetCursor() const { return m_cursor; }
59 inline bool CursorHasBeenSet() const { return m_cursorHasBeenSet; }
60 template<typename CursorT = Aws::String>
61 void SetCursor(CursorT&& value) { m_cursorHasBeenSet = true; m_cursor = std::forward<CursorT>(value); }
62 template<typename CursorT = Aws::String>
63 SearchRequest& WithCursor(CursorT&& value) { SetCursor(std::forward<CursorT>(value)); return *this;}
65
67
79 inline const Aws::String& GetExpr() const { return m_expr; }
80 inline bool ExprHasBeenSet() const { return m_exprHasBeenSet; }
81 template<typename ExprT = Aws::String>
82 void SetExpr(ExprT&& value) { m_exprHasBeenSet = true; m_expr = std::forward<ExprT>(value); }
83 template<typename ExprT = Aws::String>
84 SearchRequest& WithExpr(ExprT&& value) { SetExpr(std::forward<ExprT>(value)); return *this;}
86
88
134 inline const Aws::String& GetFacet() const { return m_facet; }
135 inline bool FacetHasBeenSet() const { return m_facetHasBeenSet; }
136 template<typename FacetT = Aws::String>
137 void SetFacet(FacetT&& value) { m_facetHasBeenSet = true; m_facet = std::forward<FacetT>(value); }
138 template<typename FacetT = Aws::String>
139 SearchRequest& WithFacet(FacetT&& value) { SetFacet(std::forward<FacetT>(value)); return *this;}
141
143
155 inline const Aws::String& GetFilterQuery() const { return m_filterQuery; }
156 inline bool FilterQueryHasBeenSet() const { return m_filterQueryHasBeenSet; }
157 template<typename FilterQueryT = Aws::String>
158 void SetFilterQuery(FilterQueryT&& value) { m_filterQueryHasBeenSet = true; m_filterQuery = std::forward<FilterQueryT>(value); }
159 template<typename FilterQueryT = Aws::String>
160 SearchRequest& WithFilterQuery(FilterQueryT&& value) { SetFilterQuery(std::forward<FilterQueryT>(value)); return *this;}
162
164
190 inline const Aws::String& GetHighlight() const { return m_highlight; }
191 inline bool HighlightHasBeenSet() const { return m_highlightHasBeenSet; }
192 template<typename HighlightT = Aws::String>
193 void SetHighlight(HighlightT&& value) { m_highlightHasBeenSet = true; m_highlight = std::forward<HighlightT>(value); }
194 template<typename HighlightT = Aws::String>
195 SearchRequest& WithHighlight(HighlightT&& value) { SetHighlight(std::forward<HighlightT>(value)); return *this;}
197
199
212 inline bool GetPartial() const { return m_partial; }
213 inline bool PartialHasBeenSet() const { return m_partialHasBeenSet; }
214 inline void SetPartial(bool value) { m_partialHasBeenSet = true; m_partial = value; }
215 inline SearchRequest& WithPartial(bool value) { SetPartial(value); return *this;}
217
219
230 inline const Aws::String& GetQuery() const { return m_query; }
231 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
232 template<typename QueryT = Aws::String>
233 void SetQuery(QueryT&& value) { m_queryHasBeenSet = true; m_query = std::forward<QueryT>(value); }
234 template<typename QueryT = Aws::String>
235 SearchRequest& WithQuery(QueryT&& value) { SetQuery(std::forward<QueryT>(value)); return *this;}
237
239
332 inline const Aws::String& GetQueryOptions() const { return m_queryOptions; }
333 inline bool QueryOptionsHasBeenSet() const { return m_queryOptionsHasBeenSet; }
334 template<typename QueryOptionsT = Aws::String>
335 void SetQueryOptions(QueryOptionsT&& value) { m_queryOptionsHasBeenSet = true; m_queryOptions = std::forward<QueryOptionsT>(value); }
336 template<typename QueryOptionsT = Aws::String>
337 SearchRequest& WithQueryOptions(QueryOptionsT&& value) { SetQueryOptions(std::forward<QueryOptionsT>(value)); return *this;}
339
341
375 inline QueryParser GetQueryParser() const { return m_queryParser; }
376 inline bool QueryParserHasBeenSet() const { return m_queryParserHasBeenSet; }
377 inline void SetQueryParser(QueryParser value) { m_queryParserHasBeenSet = true; m_queryParser = value; }
378 inline SearchRequest& WithQueryParser(QueryParser value) { SetQueryParser(value); return *this;}
380
382
390 inline const Aws::String& GetReturn() const { return m_return; }
391 inline bool ReturnHasBeenSet() const { return m_returnHasBeenSet; }
392 template<typename ReturnT = Aws::String>
393 void SetReturn(ReturnT&& value) { m_returnHasBeenSet = true; m_return = std::forward<ReturnT>(value); }
394 template<typename ReturnT = Aws::String>
395 SearchRequest& WithReturn(ReturnT&& value) { SetReturn(std::forward<ReturnT>(value)); return *this;}
397
399
402 inline long long GetSize() const { return m_size; }
403 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
404 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
405 inline SearchRequest& WithSize(long long value) { SetSize(value); return *this;}
407
409
423 inline const Aws::String& GetSort() const { return m_sort; }
424 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
425 template<typename SortT = Aws::String>
426 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
427 template<typename SortT = Aws::String>
428 SearchRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
430
432
440 inline long long GetStart() const { return m_start; }
441 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
442 inline void SetStart(long long value) { m_startHasBeenSet = true; m_start = value; }
443 inline SearchRequest& WithStart(long long value) { SetStart(value); return *this;}
445
447
454 inline const Aws::String& GetStats() const { return m_stats; }
455 inline bool StatsHasBeenSet() const { return m_statsHasBeenSet; }
456 template<typename StatsT = Aws::String>
457 void SetStats(StatsT&& value) { m_statsHasBeenSet = true; m_stats = std::forward<StatsT>(value); }
458 template<typename StatsT = Aws::String>
459 SearchRequest& WithStats(StatsT&& value) { SetStats(std::forward<StatsT>(value)); return *this;}
461 private:
462
463 Aws::String m_cursor;
464 bool m_cursorHasBeenSet = false;
465
466 Aws::String m_expr;
467 bool m_exprHasBeenSet = false;
468
469 Aws::String m_facet;
470 bool m_facetHasBeenSet = false;
471
472 Aws::String m_filterQuery;
473 bool m_filterQueryHasBeenSet = false;
474
475 Aws::String m_highlight;
476 bool m_highlightHasBeenSet = false;
477
478 bool m_partial{false};
479 bool m_partialHasBeenSet = false;
480
481 Aws::String m_query;
482 bool m_queryHasBeenSet = false;
483
484 Aws::String m_queryOptions;
485 bool m_queryOptionsHasBeenSet = false;
486
487 QueryParser m_queryParser{QueryParser::NOT_SET};
488 bool m_queryParserHasBeenSet = false;
489
490 Aws::String m_return;
491 bool m_returnHasBeenSet = false;
492
493 long long m_size{0};
494 bool m_sizeHasBeenSet = false;
495
496 Aws::String m_sort;
497 bool m_sortHasBeenSet = false;
498
499 long long m_start{0};
500 bool m_startHasBeenSet = false;
501
502 Aws::String m_stats;
503 bool m_statsHasBeenSet = false;
504 };
505
506} // namespace Model
507} // namespace CloudSearchDomain
508} // namespace Aws
SearchRequest & WithHighlight(HighlightT &&value)
SearchRequest & WithSort(SortT &&value)
AWS_CLOUDSEARCHDOMAIN_API SearchRequest()=default
void SetQueryOptions(QueryOptionsT &&value)
SearchRequest & WithSize(long long value)
SearchRequest & WithExpr(ExprT &&value)
SearchRequest & WithFilterQuery(FilterQueryT &&value)
SearchRequest & WithStart(long long value)
const Aws::String & GetQueryOptions() const
SearchRequest & WithReturn(ReturnT &&value)
const Aws::String & GetFilterQuery() const
SearchRequest & WithQueryParser(QueryParser value)
SearchRequest & WithQuery(QueryT &&value)
SearchRequest & WithCursor(CursorT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDSEARCHDOMAIN_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchRequest & WithQueryOptions(QueryOptionsT &&value)
SearchRequest & WithStats(StatsT &&value)
SearchRequest & WithFacet(FacetT &&value)
AWS_CLOUDSEARCHDOMAIN_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String