AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCursor(const Aws::String& value) { m_cursorHasBeenSet = true; m_cursor = value; }
61 inline void SetCursor(Aws::String&& value) { m_cursorHasBeenSet = true; m_cursor = std::move(value); }
62 inline void SetCursor(const char* value) { m_cursorHasBeenSet = true; m_cursor.assign(value); }
63 inline SearchRequest& WithCursor(const Aws::String& value) { SetCursor(value); return *this;}
64 inline SearchRequest& WithCursor(Aws::String&& value) { SetCursor(std::move(value)); return *this;}
65 inline SearchRequest& WithCursor(const char* value) { SetCursor(value); return *this;}
67
69
81 inline const Aws::String& GetExpr() const{ return m_expr; }
82 inline bool ExprHasBeenSet() const { return m_exprHasBeenSet; }
83 inline void SetExpr(const Aws::String& value) { m_exprHasBeenSet = true; m_expr = value; }
84 inline void SetExpr(Aws::String&& value) { m_exprHasBeenSet = true; m_expr = std::move(value); }
85 inline void SetExpr(const char* value) { m_exprHasBeenSet = true; m_expr.assign(value); }
86 inline SearchRequest& WithExpr(const Aws::String& value) { SetExpr(value); return *this;}
87 inline SearchRequest& WithExpr(Aws::String&& value) { SetExpr(std::move(value)); return *this;}
88 inline SearchRequest& WithExpr(const char* value) { SetExpr(value); return *this;}
90
92
138 inline const Aws::String& GetFacet() const{ return m_facet; }
139 inline bool FacetHasBeenSet() const { return m_facetHasBeenSet; }
140 inline void SetFacet(const Aws::String& value) { m_facetHasBeenSet = true; m_facet = value; }
141 inline void SetFacet(Aws::String&& value) { m_facetHasBeenSet = true; m_facet = std::move(value); }
142 inline void SetFacet(const char* value) { m_facetHasBeenSet = true; m_facet.assign(value); }
143 inline SearchRequest& WithFacet(const Aws::String& value) { SetFacet(value); return *this;}
144 inline SearchRequest& WithFacet(Aws::String&& value) { SetFacet(std::move(value)); return *this;}
145 inline SearchRequest& WithFacet(const char* value) { SetFacet(value); return *this;}
147
149
161 inline const Aws::String& GetFilterQuery() const{ return m_filterQuery; }
162 inline bool FilterQueryHasBeenSet() const { return m_filterQueryHasBeenSet; }
163 inline void SetFilterQuery(const Aws::String& value) { m_filterQueryHasBeenSet = true; m_filterQuery = value; }
164 inline void SetFilterQuery(Aws::String&& value) { m_filterQueryHasBeenSet = true; m_filterQuery = std::move(value); }
165 inline void SetFilterQuery(const char* value) { m_filterQueryHasBeenSet = true; m_filterQuery.assign(value); }
166 inline SearchRequest& WithFilterQuery(const Aws::String& value) { SetFilterQuery(value); return *this;}
167 inline SearchRequest& WithFilterQuery(Aws::String&& value) { SetFilterQuery(std::move(value)); return *this;}
168 inline SearchRequest& WithFilterQuery(const char* value) { SetFilterQuery(value); return *this;}
170
172
198 inline const Aws::String& GetHighlight() const{ return m_highlight; }
199 inline bool HighlightHasBeenSet() const { return m_highlightHasBeenSet; }
200 inline void SetHighlight(const Aws::String& value) { m_highlightHasBeenSet = true; m_highlight = value; }
201 inline void SetHighlight(Aws::String&& value) { m_highlightHasBeenSet = true; m_highlight = std::move(value); }
202 inline void SetHighlight(const char* value) { m_highlightHasBeenSet = true; m_highlight.assign(value); }
203 inline SearchRequest& WithHighlight(const Aws::String& value) { SetHighlight(value); return *this;}
204 inline SearchRequest& WithHighlight(Aws::String&& value) { SetHighlight(std::move(value)); return *this;}
205 inline SearchRequest& WithHighlight(const char* value) { SetHighlight(value); return *this;}
207
209
222 inline bool GetPartial() const{ return m_partial; }
223 inline bool PartialHasBeenSet() const { return m_partialHasBeenSet; }
224 inline void SetPartial(bool value) { m_partialHasBeenSet = true; m_partial = value; }
225 inline SearchRequest& WithPartial(bool value) { SetPartial(value); return *this;}
227
229
240 inline const Aws::String& GetQuery() const{ return m_query; }
241 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
242 inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
243 inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
244 inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
245 inline SearchRequest& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
246 inline SearchRequest& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
247 inline SearchRequest& WithQuery(const char* value) { SetQuery(value); return *this;}
249
251
344 inline const Aws::String& GetQueryOptions() const{ return m_queryOptions; }
345 inline bool QueryOptionsHasBeenSet() const { return m_queryOptionsHasBeenSet; }
346 inline void SetQueryOptions(const Aws::String& value) { m_queryOptionsHasBeenSet = true; m_queryOptions = value; }
347 inline void SetQueryOptions(Aws::String&& value) { m_queryOptionsHasBeenSet = true; m_queryOptions = std::move(value); }
348 inline void SetQueryOptions(const char* value) { m_queryOptionsHasBeenSet = true; m_queryOptions.assign(value); }
349 inline SearchRequest& WithQueryOptions(const Aws::String& value) { SetQueryOptions(value); return *this;}
350 inline SearchRequest& WithQueryOptions(Aws::String&& value) { SetQueryOptions(std::move(value)); return *this;}
351 inline SearchRequest& WithQueryOptions(const char* value) { SetQueryOptions(value); return *this;}
353
355
389 inline const QueryParser& GetQueryParser() const{ return m_queryParser; }
390 inline bool QueryParserHasBeenSet() const { return m_queryParserHasBeenSet; }
391 inline void SetQueryParser(const QueryParser& value) { m_queryParserHasBeenSet = true; m_queryParser = value; }
392 inline void SetQueryParser(QueryParser&& value) { m_queryParserHasBeenSet = true; m_queryParser = std::move(value); }
393 inline SearchRequest& WithQueryParser(const QueryParser& value) { SetQueryParser(value); return *this;}
394 inline SearchRequest& WithQueryParser(QueryParser&& value) { SetQueryParser(std::move(value)); return *this;}
396
398
406 inline const Aws::String& GetReturn() const{ return m_return; }
407 inline bool ReturnHasBeenSet() const { return m_returnHasBeenSet; }
408 inline void SetReturn(const Aws::String& value) { m_returnHasBeenSet = true; m_return = value; }
409 inline void SetReturn(Aws::String&& value) { m_returnHasBeenSet = true; m_return = std::move(value); }
410 inline void SetReturn(const char* value) { m_returnHasBeenSet = true; m_return.assign(value); }
411 inline SearchRequest& WithReturn(const Aws::String& value) { SetReturn(value); return *this;}
412 inline SearchRequest& WithReturn(Aws::String&& value) { SetReturn(std::move(value)); return *this;}
413 inline SearchRequest& WithReturn(const char* value) { SetReturn(value); return *this;}
415
417
420 inline long long GetSize() const{ return m_size; }
421 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
422 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
423 inline SearchRequest& WithSize(long long value) { SetSize(value); return *this;}
425
427
441 inline const Aws::String& GetSort() const{ return m_sort; }
442 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
443 inline void SetSort(const Aws::String& value) { m_sortHasBeenSet = true; m_sort = value; }
444 inline void SetSort(Aws::String&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
445 inline void SetSort(const char* value) { m_sortHasBeenSet = true; m_sort.assign(value); }
446 inline SearchRequest& WithSort(const Aws::String& value) { SetSort(value); return *this;}
447 inline SearchRequest& WithSort(Aws::String&& value) { SetSort(std::move(value)); return *this;}
448 inline SearchRequest& WithSort(const char* value) { SetSort(value); return *this;}
450
452
460 inline long long GetStart() const{ return m_start; }
461 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
462 inline void SetStart(long long value) { m_startHasBeenSet = true; m_start = value; }
463 inline SearchRequest& WithStart(long long value) { SetStart(value); return *this;}
465
467
474 inline const Aws::String& GetStats() const{ return m_stats; }
475 inline bool StatsHasBeenSet() const { return m_statsHasBeenSet; }
476 inline void SetStats(const Aws::String& value) { m_statsHasBeenSet = true; m_stats = value; }
477 inline void SetStats(Aws::String&& value) { m_statsHasBeenSet = true; m_stats = std::move(value); }
478 inline void SetStats(const char* value) { m_statsHasBeenSet = true; m_stats.assign(value); }
479 inline SearchRequest& WithStats(const Aws::String& value) { SetStats(value); return *this;}
480 inline SearchRequest& WithStats(Aws::String&& value) { SetStats(std::move(value)); return *this;}
481 inline SearchRequest& WithStats(const char* value) { SetStats(value); return *this;}
483 private:
484
485 Aws::String m_cursor;
486 bool m_cursorHasBeenSet = false;
487
488 Aws::String m_expr;
489 bool m_exprHasBeenSet = false;
490
491 Aws::String m_facet;
492 bool m_facetHasBeenSet = false;
493
494 Aws::String m_filterQuery;
495 bool m_filterQueryHasBeenSet = false;
496
497 Aws::String m_highlight;
498 bool m_highlightHasBeenSet = false;
499
500 bool m_partial;
501 bool m_partialHasBeenSet = false;
502
503 Aws::String m_query;
504 bool m_queryHasBeenSet = false;
505
506 Aws::String m_queryOptions;
507 bool m_queryOptionsHasBeenSet = false;
508
509 QueryParser m_queryParser;
510 bool m_queryParserHasBeenSet = false;
511
512 Aws::String m_return;
513 bool m_returnHasBeenSet = false;
514
515 long long m_size;
516 bool m_sizeHasBeenSet = false;
517
518 Aws::String m_sort;
519 bool m_sortHasBeenSet = false;
520
521 long long m_start;
522 bool m_startHasBeenSet = false;
523
524 Aws::String m_stats;
525 bool m_statsHasBeenSet = false;
526 };
527
528} // namespace Model
529} // namespace CloudSearchDomain
530} // namespace Aws
SearchRequest & WithFilterQuery(const char *value)
SearchRequest & WithQuery(const char *value)
const QueryParser & GetQueryParser() const
SearchRequest & WithStats(const char *value)
SearchRequest & WithCursor(const Aws::String &value)
SearchRequest & WithReturn(Aws::String &&value)
SearchRequest & WithSize(long long value)
SearchRequest & WithSort(const Aws::String &value)
SearchRequest & WithFilterQuery(const Aws::String &value)
SearchRequest & WithExpr(Aws::String &&value)
SearchRequest & WithQuery(const Aws::String &value)
void SetQueryParser(const QueryParser &value)
void SetQuery(const Aws::String &value)
SearchRequest & WithQueryParser(QueryParser &&value)
void SetFilterQuery(const Aws::String &value)
SearchRequest & WithQueryOptions(const char *value)
SearchRequest & WithStats(const Aws::String &value)
SearchRequest & WithHighlight(const char *value)
SearchRequest & WithStart(long long value)
const Aws::String & GetQueryOptions() const
SearchRequest & WithFilterQuery(Aws::String &&value)
SearchRequest & WithExpr(const char *value)
const Aws::String & GetFilterQuery() const
SearchRequest & WithCursor(const char *value)
SearchRequest & WithStats(Aws::String &&value)
void SetStats(const Aws::String &value)
void SetReturn(const Aws::String &value)
void SetHighlight(const Aws::String &value)
SearchRequest & WithHighlight(const Aws::String &value)
SearchRequest & WithQueryOptions(Aws::String &&value)
SearchRequest & WithExpr(const Aws::String &value)
AWS_CLOUDSEARCHDOMAIN_API SearchRequest()
void SetExpr(const Aws::String &value)
SearchRequest & WithHighlight(Aws::String &&value)
SearchRequest & WithReturn(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDSEARCHDOMAIN_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchRequest & WithQueryOptions(const Aws::String &value)
SearchRequest & WithQuery(Aws::String &&value)
void SetFacet(const Aws::String &value)
SearchRequest & WithFacet(Aws::String &&value)
SearchRequest & WithReturn(const Aws::String &value)
SearchRequest & WithCursor(Aws::String &&value)
SearchRequest & WithFacet(const Aws::String &value)
SearchRequest & WithQueryParser(const QueryParser &value)
void SetQueryOptions(const Aws::String &value)
AWS_CLOUDSEARCHDOMAIN_API Aws::String SerializePayload() const override
void SetCursor(const Aws::String &value)
void SetSort(const Aws::String &value)
SearchRequest & WithSort(const char *value)
SearchRequest & WithFacet(const char *value)
SearchRequest & WithSort(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String