AWS SDK for C++  1.9.131
AWS SDK for C++
ListThesauriRequest.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 "ListThesauri"; }
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 ListThesauriRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
66 
70  inline ListThesauriRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
71 
75  inline ListThesauriRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
76 
77 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
92  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 
100  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 
108  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
109 
116  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
117 
124  inline ListThesauriRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
125 
132  inline ListThesauriRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 
140  inline ListThesauriRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
141 
142 
146  inline int GetMaxResults() const{ return m_maxResults; }
147 
151  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
152 
156  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
157 
161  inline ListThesauriRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
162 
163  private:
164 
165  Aws::String m_indexId;
166  bool m_indexIdHasBeenSet;
167 
168  Aws::String m_nextToken;
169  bool m_nextTokenHasBeenSet;
170 
171  int m_maxResults;
172  bool m_maxResultsHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace kendra
177 } // namespace Aws
Aws::kendra::Model::ListThesauriRequest::WithMaxResults
ListThesauriRequest & WithMaxResults(int value)
Definition: ListThesauriRequest.h:161
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::ListThesauriRequest
Definition: ListThesauriRequest.h:22
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::ListThesauriRequest::WithNextToken
ListThesauriRequest & WithNextToken(const char *value)
Definition: ListThesauriRequest.h:140
Aws::kendra::Model::ListThesauriRequest::ListThesauriRequest
ListThesauriRequest()
Aws::kendra::Model::ListThesauriRequest::SetIndexId
void SetIndexId(const char *value)
Definition: ListThesauriRequest.h:60
Aws::kendra::Model::ListThesauriRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
KendraRequest.h
Aws::kendra::Model::ListThesauriRequest::GetMaxResults
int GetMaxResults() const
Definition: ListThesauriRequest.h:146
Aws::kendra::Model::ListThesauriRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListThesauriRequest.h:92
Aws::kendra::Model::ListThesauriRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListThesauriRequest.h:156
Aws::kendra::Model::ListThesauriRequest::WithNextToken
ListThesauriRequest & WithNextToken(const Aws::String &value)
Definition: ListThesauriRequest.h:124
Aws::kendra::Model::ListThesauriRequest::WithIndexId
ListThesauriRequest & WithIndexId(const Aws::String &value)
Definition: ListThesauriRequest.h:65
Aws::kendra::Model::ListThesauriRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListThesauriRequest.h:116
Aws::kendra::Model::ListThesauriRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThesauriRequest.h:108
Aws::kendra::Model::ListThesauriRequest::WithNextToken
ListThesauriRequest & WithNextToken(Aws::String &&value)
Definition: ListThesauriRequest.h:132
Kendra_EXPORTS.h
Aws::kendra::Model::ListThesauriRequest::WithIndexId
ListThesauriRequest & WithIndexId(Aws::String &&value)
Definition: ListThesauriRequest.h:70
AWSString.h
Aws::kendra::Model::ListThesauriRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: ListThesauriRequest.h:40
Aws::kendra::Model::ListThesauriRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: ListThesauriRequest.h:50
Aws::kendra::Model::ListThesauriRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListThesauriRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::ListThesauriRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::ListThesauriRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: ListThesauriRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::ListThesauriRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: ListThesauriRequest.h:55
Aws::kendra::Model::ListThesauriRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThesauriRequest.h:100
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::ListThesauriRequest::WithIndexId
ListThesauriRequest & WithIndexId(const char *value)
Definition: ListThesauriRequest.h:75
Aws::kendra::Model::ListThesauriRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThesauriRequest.h:84
Aws::kendra::Model::ListThesauriRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListThesauriRequest.h:151