AWS SDK for C++  1.9.131
AWS SDK for C++
GetQuerySuggestionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace kendra
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetQuerySuggestions"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetIndexId() const{ return m_indexId; }
41 
45  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
46 
50  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
51 
55  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
56 
60  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
61 
65  inline GetQuerySuggestionsRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
66 
70  inline GetQuerySuggestionsRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
71 
75  inline GetQuerySuggestionsRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
76 
77 
86  inline const Aws::String& GetQueryText() const{ return m_queryText; }
87 
96  inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
97 
106  inline void SetQueryText(const Aws::String& value) { m_queryTextHasBeenSet = true; m_queryText = value; }
107 
116  inline void SetQueryText(Aws::String&& value) { m_queryTextHasBeenSet = true; m_queryText = std::move(value); }
117 
126  inline void SetQueryText(const char* value) { m_queryTextHasBeenSet = true; m_queryText.assign(value); }
127 
136  inline GetQuerySuggestionsRequest& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;}
137 
146  inline GetQuerySuggestionsRequest& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;}
147 
156  inline GetQuerySuggestionsRequest& WithQueryText(const char* value) { SetQueryText(value); return *this;}
157 
158 
162  inline int GetMaxSuggestionsCount() const{ return m_maxSuggestionsCount; }
163 
167  inline bool MaxSuggestionsCountHasBeenSet() const { return m_maxSuggestionsCountHasBeenSet; }
168 
172  inline void SetMaxSuggestionsCount(int value) { m_maxSuggestionsCountHasBeenSet = true; m_maxSuggestionsCount = value; }
173 
177  inline GetQuerySuggestionsRequest& WithMaxSuggestionsCount(int value) { SetMaxSuggestionsCount(value); return *this;}
178 
179  private:
180 
181  Aws::String m_indexId;
182  bool m_indexIdHasBeenSet;
183 
184  Aws::String m_queryText;
185  bool m_queryTextHasBeenSet;
186 
187  int m_maxSuggestionsCount;
188  bool m_maxSuggestionsCountHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace kendra
193 } // namespace Aws
Aws::kendra::Model::GetQuerySuggestionsRequest::WithMaxSuggestionsCount
GetQuerySuggestionsRequest & WithMaxSuggestionsCount(int value)
Definition: GetQuerySuggestionsRequest.h:177
Aws::kendra::Model::GetQuerySuggestionsRequest::GetMaxSuggestionsCount
int GetMaxSuggestionsCount() const
Definition: GetQuerySuggestionsRequest.h:162
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::GetQuerySuggestionsRequest::WithIndexId
GetQuerySuggestionsRequest & WithIndexId(const char *value)
Definition: GetQuerySuggestionsRequest.h:75
Aws::kendra::Model::GetQuerySuggestionsRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: GetQuerySuggestionsRequest.h:40
KendraRequest.h
Aws::kendra::Model::GetQuerySuggestionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::kendra::Model::GetQuerySuggestionsRequest::QueryTextHasBeenSet
bool QueryTextHasBeenSet() const
Definition: GetQuerySuggestionsRequest.h:96
Aws::kendra::Model::GetQuerySuggestionsRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: GetQuerySuggestionsRequest.h:55
Aws::kendra::Model::GetQuerySuggestionsRequest::WithQueryText
GetQuerySuggestionsRequest & WithQueryText(Aws::String &&value)
Definition: GetQuerySuggestionsRequest.h:146
Aws::kendra::Model::GetQuerySuggestionsRequest::WithIndexId
GetQuerySuggestionsRequest & WithIndexId(Aws::String &&value)
Definition: GetQuerySuggestionsRequest.h:70
Aws::kendra::Model::GetQuerySuggestionsRequest::SetQueryText
void SetQueryText(const char *value)
Definition: GetQuerySuggestionsRequest.h:126
Kendra_EXPORTS.h
Aws::kendra::Model::GetQuerySuggestionsRequest::WithQueryText
GetQuerySuggestionsRequest & WithQueryText(const Aws::String &value)
Definition: GetQuerySuggestionsRequest.h:136
Aws::kendra::Model::GetQuerySuggestionsRequest::SetQueryText
void SetQueryText(Aws::String &&value)
Definition: GetQuerySuggestionsRequest.h:116
Aws::kendra::Model::GetQuerySuggestionsRequest::GetQuerySuggestionsRequest
GetQuerySuggestionsRequest()
Aws::kendra::Model::GetQuerySuggestionsRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: GetQuerySuggestionsRequest.h:45
Aws::kendra::Model::GetQuerySuggestionsRequest::SetIndexId
void SetIndexId(const char *value)
Definition: GetQuerySuggestionsRequest.h:60
AWSString.h
Aws::kendra::Model::GetQuerySuggestionsRequest::SetQueryText
void SetQueryText(const Aws::String &value)
Definition: GetQuerySuggestionsRequest.h:106
Aws::kendra::Model::GetQuerySuggestionsRequest::GetQueryText
const Aws::String & GetQueryText() const
Definition: GetQuerySuggestionsRequest.h:86
Aws::kendra::Model::GetQuerySuggestionsRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: GetQuerySuggestionsRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::GetQuerySuggestionsRequest
Definition: GetQuerySuggestionsRequest.h:22
Aws::kendra::Model::GetQuerySuggestionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetQuerySuggestionsRequest.h:30
Aws::kendra::Model::GetQuerySuggestionsRequest::SetMaxSuggestionsCount
void SetMaxSuggestionsCount(int value)
Definition: GetQuerySuggestionsRequest.h:172
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::GetQuerySuggestionsRequest::WithIndexId
GetQuerySuggestionsRequest & WithIndexId(const Aws::String &value)
Definition: GetQuerySuggestionsRequest.h:65
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::GetQuerySuggestionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::GetQuerySuggestionsRequest::MaxSuggestionsCountHasBeenSet
bool MaxSuggestionsCountHasBeenSet() const
Definition: GetQuerySuggestionsRequest.h:167
Aws::kendra::Model::GetQuerySuggestionsRequest::WithQueryText
GetQuerySuggestionsRequest & WithQueryText(const char *value)
Definition: GetQuerySuggestionsRequest.h:156