AWS SDK for C++  1.9.125
AWS SDK for C++
UpdateThesaurusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace kendra
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateThesaurus"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetId() const{ return m_id; }
42 
46  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 
51  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 
56  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 
61  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 
66  inline UpdateThesaurusRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
67 
71  inline UpdateThesaurusRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 
76  inline UpdateThesaurusRequest& WithId(const char* value) { SetId(value); return *this;}
77 
78 
82  inline const Aws::String& GetName() const{ return m_name; }
83 
87  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 
92  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 
97  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
98 
102  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
103 
107  inline UpdateThesaurusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
108 
112  inline UpdateThesaurusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
113 
117  inline UpdateThesaurusRequest& WithName(const char* value) { SetName(value); return *this;}
118 
119 
123  inline const Aws::String& GetIndexId() const{ return m_indexId; }
124 
128  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
129 
133  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
134 
138  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
139 
143  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
144 
148  inline UpdateThesaurusRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
149 
153  inline UpdateThesaurusRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
154 
158  inline UpdateThesaurusRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
159 
160 
164  inline const Aws::String& GetDescription() const{ return m_description; }
165 
169  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 
174  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
175 
179  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
180 
184  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
185 
189  inline UpdateThesaurusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
190 
194  inline UpdateThesaurusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
195 
199  inline UpdateThesaurusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
200 
201 
205  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
206 
210  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
211 
215  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
216 
220  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
221 
225  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
226 
230  inline UpdateThesaurusRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
231 
235  inline UpdateThesaurusRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
236 
240  inline UpdateThesaurusRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
241 
242 
243 
244  inline const S3Path& GetSourceS3Path() const{ return m_sourceS3Path; }
245 
246 
247  inline bool SourceS3PathHasBeenSet() const { return m_sourceS3PathHasBeenSet; }
248 
249 
250  inline void SetSourceS3Path(const S3Path& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = value; }
251 
252 
253  inline void SetSourceS3Path(S3Path&& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = std::move(value); }
254 
255 
256  inline UpdateThesaurusRequest& WithSourceS3Path(const S3Path& value) { SetSourceS3Path(value); return *this;}
257 
258 
259  inline UpdateThesaurusRequest& WithSourceS3Path(S3Path&& value) { SetSourceS3Path(std::move(value)); return *this;}
260 
261  private:
262 
263  Aws::String m_id;
264  bool m_idHasBeenSet;
265 
266  Aws::String m_name;
267  bool m_nameHasBeenSet;
268 
269  Aws::String m_indexId;
270  bool m_indexIdHasBeenSet;
271 
272  Aws::String m_description;
273  bool m_descriptionHasBeenSet;
274 
275  Aws::String m_roleArn;
276  bool m_roleArnHasBeenSet;
277 
278  S3Path m_sourceS3Path;
279  bool m_sourceS3PathHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace kendra
284 } // namespace Aws
Aws::kendra::Model::UpdateThesaurusRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateThesaurusRequest.h:164
Aws::kendra::Model::UpdateThesaurusRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:138
Aws::kendra::Model::UpdateThesaurusRequest::WithIndexId
UpdateThesaurusRequest & WithIndexId(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:148
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::UpdateThesaurusRequest::WithName
UpdateThesaurusRequest & WithName(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:112
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::UpdateThesaurusRequest::SetIndexId
void SetIndexId(const char *value)
Definition: UpdateThesaurusRequest.h:143
Aws::kendra::Model::UpdateThesaurusRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: UpdateThesaurusRequest.h:205
Aws::kendra::Model::UpdateThesaurusRequest::WithSourceS3Path
UpdateThesaurusRequest & WithSourceS3Path(S3Path &&value)
Definition: UpdateThesaurusRequest.h:259
Aws::kendra::Model::UpdateThesaurusRequest::WithId
UpdateThesaurusRequest & WithId(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:66
Aws::kendra::Model::UpdateThesaurusRequest::WithName
UpdateThesaurusRequest & WithName(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:107
KendraRequest.h
Aws::kendra::Model::UpdateThesaurusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateThesaurusRequest.h:31
Aws::kendra::Model::UpdateThesaurusRequest::GetSourceS3Path
const S3Path & GetSourceS3Path() const
Definition: UpdateThesaurusRequest.h:244
Aws::kendra::Model::UpdateThesaurusRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:174
S3Path.h
Aws::kendra::Model::UpdateThesaurusRequest::GetName
const Aws::String & GetName() const
Definition: UpdateThesaurusRequest.h:82
Aws::kendra::Model::UpdateThesaurusRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:97
Aws::kendra::Model::UpdateThesaurusRequest::WithDescription
UpdateThesaurusRequest & WithDescription(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:194
Aws::kendra::Model::UpdateThesaurusRequest::WithId
UpdateThesaurusRequest & WithId(const char *value)
Definition: UpdateThesaurusRequest.h:76
Aws::kendra::Model::S3Path
Definition: S3Path.h:33
Aws::kendra::Model::UpdateThesaurusRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:179
Aws::kendra::Model::UpdateThesaurusRequest::SourceS3PathHasBeenSet
bool SourceS3PathHasBeenSet() const
Definition: UpdateThesaurusRequest.h:247
Aws::kendra::Model::UpdateThesaurusRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: UpdateThesaurusRequest.h:128
Aws::kendra::Model::UpdateThesaurusRequest::UpdateThesaurusRequest
UpdateThesaurusRequest()
Aws::kendra::Model::UpdateThesaurusRequest::WithIndexId
UpdateThesaurusRequest & WithIndexId(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:153
Aws::kendra::Model::UpdateThesaurusRequest::SetSourceS3Path
void SetSourceS3Path(const S3Path &value)
Definition: UpdateThesaurusRequest.h:250
Kendra_EXPORTS.h
Aws::kendra::Model::UpdateThesaurusRequest::SetId
void SetId(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:56
Aws::kendra::Model::UpdateThesaurusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::kendra::Model::UpdateThesaurusRequest::WithId
UpdateThesaurusRequest & WithId(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:71
Aws::kendra::Model::UpdateThesaurusRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:220
Aws::kendra::Model::UpdateThesaurusRequest::WithIndexId
UpdateThesaurusRequest & WithIndexId(const char *value)
Definition: UpdateThesaurusRequest.h:158
Aws::kendra::Model::UpdateThesaurusRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateThesaurusRequest.h:184
AWSString.h
Aws::kendra::Model::UpdateThesaurusRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateThesaurusRequest.h:46
Aws::kendra::Model::UpdateThesaurusRequest::WithDescription
UpdateThesaurusRequest & WithDescription(const char *value)
Definition: UpdateThesaurusRequest.h:199
Aws::kendra::Model::UpdateThesaurusRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: UpdateThesaurusRequest.h:225
Aws::kendra::Model::UpdateThesaurusRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: UpdateThesaurusRequest.h:123
Aws::kendra::Model::UpdateThesaurusRequest::SetId
void SetId(const char *value)
Definition: UpdateThesaurusRequest.h:61
Aws::kendra::Model::UpdateThesaurusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::UpdateThesaurusRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateThesaurusRequest.h:87
Aws::kendra::Model::UpdateThesaurusRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateThesaurusRequest.h:169
Aws::kendra::Model::UpdateThesaurusRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:133
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::UpdateThesaurusRequest::SetId
void SetId(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:51
Aws::kendra::Model::UpdateThesaurusRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:92
Aws::kendra::Model::UpdateThesaurusRequest::WithRoleArn
UpdateThesaurusRequest & WithRoleArn(Aws::String &&value)
Definition: UpdateThesaurusRequest.h:235
Aws::kendra::Model::UpdateThesaurusRequest::WithDescription
UpdateThesaurusRequest & WithDescription(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:189
Aws::kendra::Model::UpdateThesaurusRequest
Definition: UpdateThesaurusRequest.h:23
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::UpdateThesaurusRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:215
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::UpdateThesaurusRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: UpdateThesaurusRequest.h:210
Aws::kendra::Model::UpdateThesaurusRequest::WithRoleArn
UpdateThesaurusRequest & WithRoleArn(const char *value)
Definition: UpdateThesaurusRequest.h:240
Aws::kendra::Model::UpdateThesaurusRequest::WithSourceS3Path
UpdateThesaurusRequest & WithSourceS3Path(const S3Path &value)
Definition: UpdateThesaurusRequest.h:256
Aws::kendra::Model::UpdateThesaurusRequest::SetName
void SetName(const char *value)
Definition: UpdateThesaurusRequest.h:102
Aws::kendra::Model::UpdateThesaurusRequest::GetId
const Aws::String & GetId() const
Definition: UpdateThesaurusRequest.h:41
Aws::kendra::Model::UpdateThesaurusRequest::WithRoleArn
UpdateThesaurusRequest & WithRoleArn(const Aws::String &value)
Definition: UpdateThesaurusRequest.h:230
Aws::kendra::Model::UpdateThesaurusRequest::WithName
UpdateThesaurusRequest & WithName(const char *value)
Definition: UpdateThesaurusRequest.h:117
Aws::kendra::Model::UpdateThesaurusRequest::SetSourceS3Path
void SetSourceS3Path(S3Path &&value)
Definition: UpdateThesaurusRequest.h:253