AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SuggestRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace CloudSearchDomain
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_CLOUDSEARCHDOMAIN_API SuggestRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "Suggest"; }
39
40 AWS_CLOUDSEARCHDOMAIN_API Aws::String SerializePayload() const override;
41
42 AWS_CLOUDSEARCHDOMAIN_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::String& GetQuery() const{ return m_query; }
50 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
51 inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
52 inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
53 inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
54 inline SuggestRequest& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
55 inline SuggestRequest& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
56 inline SuggestRequest& WithQuery(const char* value) { SetQuery(value); return *this;}
58
60
63 inline const Aws::String& GetSuggester() const{ return m_suggester; }
64 inline bool SuggesterHasBeenSet() const { return m_suggesterHasBeenSet; }
65 inline void SetSuggester(const Aws::String& value) { m_suggesterHasBeenSet = true; m_suggester = value; }
66 inline void SetSuggester(Aws::String&& value) { m_suggesterHasBeenSet = true; m_suggester = std::move(value); }
67 inline void SetSuggester(const char* value) { m_suggesterHasBeenSet = true; m_suggester.assign(value); }
68 inline SuggestRequest& WithSuggester(const Aws::String& value) { SetSuggester(value); return *this;}
69 inline SuggestRequest& WithSuggester(Aws::String&& value) { SetSuggester(std::move(value)); return *this;}
70 inline SuggestRequest& WithSuggester(const char* value) { SetSuggester(value); return *this;}
72
74
77 inline long long GetSize() const{ return m_size; }
78 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
79 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
80 inline SuggestRequest& WithSize(long long value) { SetSize(value); return *this;}
82 private:
83
84 Aws::String m_query;
85 bool m_queryHasBeenSet = false;
86
87 Aws::String m_suggester;
88 bool m_suggesterHasBeenSet = false;
89
90 long long m_size;
91 bool m_sizeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CloudSearchDomain
96} // namespace Aws
SuggestRequest & WithSuggester(Aws::String &&value)
AWS_CLOUDSEARCHDOMAIN_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetQuery(const Aws::String &value)
SuggestRequest & WithSuggester(const char *value)
SuggestRequest & WithQuery(const char *value)
void SetSuggester(const Aws::String &value)
SuggestRequest & WithSize(long long value)
AWS_CLOUDSEARCHDOMAIN_API Aws::String SerializePayload() const override
SuggestRequest & WithQuery(Aws::String &&value)
SuggestRequest & WithSuggester(const Aws::String &value)
SuggestRequest & WithQuery(const Aws::String &value)
AWS_CLOUDSEARCHDOMAIN_API SuggestRequest()
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String