AWS SDK for C++  1.9.131
AWS SDK for C++
ListQuerySuggestionsBlockListsRequest.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 "ListQuerySuggestionsBlockLists"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetIndexId() const{ return m_indexId; }
44 
51  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
52 
59  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
60 
67  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
68 
75  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
76 
83  inline ListQuerySuggestionsBlockListsRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
84 
91  inline ListQuerySuggestionsBlockListsRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
92 
99  inline ListQuerySuggestionsBlockListsRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
100 
101 
108  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
109 
116  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
117 
124  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
125 
132  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
133 
140  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
141 
148  inline ListQuerySuggestionsBlockListsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
149 
156  inline ListQuerySuggestionsBlockListsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
157 
164  inline ListQuerySuggestionsBlockListsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
165 
166 
170  inline int GetMaxResults() const{ return m_maxResults; }
171 
175  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
176 
180  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
181 
185  inline ListQuerySuggestionsBlockListsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
186 
187  private:
188 
189  Aws::String m_indexId;
190  bool m_indexIdHasBeenSet;
191 
192  Aws::String m_nextToken;
193  bool m_nextTokenHasBeenSet;
194 
195  int m_maxResults;
196  bool m_maxResultsHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace kendra
201 } // namespace Aws
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListQuerySuggestionsBlockListsRequest.h:180
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::WithIndexId
ListQuerySuggestionsBlockListsRequest & WithIndexId(Aws::String &&value)
Definition: ListQuerySuggestionsBlockListsRequest.h:91
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest
Definition: ListQuerySuggestionsBlockListsRequest.h:22
KendraRequest.h
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListQuerySuggestionsBlockListsRequest.h:140
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListQuerySuggestionsBlockListsRequest.h:132
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::WithNextToken
ListQuerySuggestionsBlockListsRequest & WithNextToken(const char *value)
Definition: ListQuerySuggestionsBlockListsRequest.h:164
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::ListQuerySuggestionsBlockListsRequest
ListQuerySuggestionsBlockListsRequest()
Kendra_EXPORTS.h
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::WithIndexId
ListQuerySuggestionsBlockListsRequest & WithIndexId(const Aws::String &value)
Definition: ListQuerySuggestionsBlockListsRequest.h:83
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::WithIndexId
ListQuerySuggestionsBlockListsRequest & WithIndexId(const char *value)
Definition: ListQuerySuggestionsBlockListsRequest.h:99
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListQuerySuggestionsBlockListsRequest.h:175
AWSString.h
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: ListQuerySuggestionsBlockListsRequest.h:43
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SetIndexId
void SetIndexId(const char *value)
Definition: ListQuerySuggestionsBlockListsRequest.h:75
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListQuerySuggestionsBlockListsRequest.h:108
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListQuerySuggestionsBlockListsRequest.h:124
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::WithMaxResults
ListQuerySuggestionsBlockListsRequest & WithMaxResults(int value)
Definition: ListQuerySuggestionsBlockListsRequest.h:185
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListQuerySuggestionsBlockListsRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListQuerySuggestionsBlockListsRequest.h:116
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListQuerySuggestionsBlockListsRequest.h:170
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: ListQuerySuggestionsBlockListsRequest.h:59
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: ListQuerySuggestionsBlockListsRequest.h:51
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::WithNextToken
ListQuerySuggestionsBlockListsRequest & WithNextToken(const Aws::String &value)
Definition: ListQuerySuggestionsBlockListsRequest.h:148
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::WithNextToken
ListQuerySuggestionsBlockListsRequest & WithNextToken(Aws::String &&value)
Definition: ListQuerySuggestionsBlockListsRequest.h:156
Aws::kendra::Model::ListQuerySuggestionsBlockListsRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: ListQuerySuggestionsBlockListsRequest.h:67