AWS SDK for C++  1.9.16
AWS SDK for C++
CreateFaqRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/kendra/model/Tag.h>
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace kendra
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateFaq"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetIndexId() const{ return m_indexId; }
46 
50  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
51 
55  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
56 
60  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
61 
65  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
66 
70  inline CreateFaqRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
71 
75  inline CreateFaqRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
76 
80  inline CreateFaqRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
81 
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline CreateFaqRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline CreateFaqRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 
121  inline CreateFaqRequest& WithName(const char* value) { SetName(value); return *this;}
122 
123 
127  inline const Aws::String& GetDescription() const{ return m_description; }
128 
132  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 
137  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
138 
142  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
143 
147  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
148 
152  inline CreateFaqRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
153 
157  inline CreateFaqRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
158 
162  inline CreateFaqRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
163 
164 
168  inline const S3Path& GetS3Path() const{ return m_s3Path; }
169 
173  inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; }
174 
178  inline void SetS3Path(const S3Path& value) { m_s3PathHasBeenSet = true; m_s3Path = value; }
179 
183  inline void SetS3Path(S3Path&& value) { m_s3PathHasBeenSet = true; m_s3Path = std::move(value); }
184 
188  inline CreateFaqRequest& WithS3Path(const S3Path& value) { SetS3Path(value); return *this;}
189 
193  inline CreateFaqRequest& WithS3Path(S3Path&& value) { SetS3Path(std::move(value)); return *this;}
194 
195 
202  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
203 
210  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
211 
218  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
219 
226  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
227 
234  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
235 
242  inline CreateFaqRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
243 
250  inline CreateFaqRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
251 
258  inline CreateFaqRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
259 
260 
265  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
266 
271  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
272 
277  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
278 
283  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
284 
289  inline CreateFaqRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
290 
295  inline CreateFaqRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
296 
301  inline CreateFaqRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
302 
307  inline CreateFaqRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
308 
309 
319  inline const FaqFileFormat& GetFileFormat() const{ return m_fileFormat; }
320 
330  inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
331 
341  inline void SetFileFormat(const FaqFileFormat& value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; }
342 
352  inline void SetFileFormat(FaqFileFormat&& value) { m_fileFormatHasBeenSet = true; m_fileFormat = std::move(value); }
353 
363  inline CreateFaqRequest& WithFileFormat(const FaqFileFormat& value) { SetFileFormat(value); return *this;}
364 
374  inline CreateFaqRequest& WithFileFormat(FaqFileFormat&& value) { SetFileFormat(std::move(value)); return *this;}
375 
376 
382  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
383 
389  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
390 
396  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
397 
403  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
404 
410  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
411 
417  inline CreateFaqRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
418 
424  inline CreateFaqRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
425 
431  inline CreateFaqRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
432 
433  private:
434 
435  Aws::String m_indexId;
436  bool m_indexIdHasBeenSet;
437 
438  Aws::String m_name;
439  bool m_nameHasBeenSet;
440 
441  Aws::String m_description;
442  bool m_descriptionHasBeenSet;
443 
444  S3Path m_s3Path;
445  bool m_s3PathHasBeenSet;
446 
447  Aws::String m_roleArn;
448  bool m_roleArnHasBeenSet;
449 
450  Aws::Vector<Tag> m_tags;
451  bool m_tagsHasBeenSet;
452 
453  FaqFileFormat m_fileFormat;
454  bool m_fileFormatHasBeenSet;
455 
456  Aws::String m_clientToken;
457  bool m_clientTokenHasBeenSet;
458  };
459 
460 } // namespace Model
461 } // namespace kendra
462 } // namespace Aws
Aws::kendra::Model::FaqFileFormat
FaqFileFormat
Definition: FaqFileFormat.h:17
Aws::kendra::Model::CreateFaqRequest::AddTags
CreateFaqRequest & AddTags(const Tag &value)
Definition: CreateFaqRequest.h:301
Aws::kendra::Model::CreateFaqRequest::WithIndexId
CreateFaqRequest & WithIndexId(const char *value)
Definition: CreateFaqRequest.h:80
Aws::kendra::Model::CreateFaqRequest
Definition: CreateFaqRequest.h:27
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::CreateFaqRequest::WithS3Path
CreateFaqRequest & WithS3Path(S3Path &&value)
Definition: CreateFaqRequest.h:193
Aws::kendra::Model::CreateFaqRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateFaqRequest.h:147
Aws::kendra::Model::CreateFaqRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: CreateFaqRequest.h:45
Aws::kendra::Model::CreateFaqRequest::GetFileFormat
const FaqFileFormat & GetFileFormat() const
Definition: CreateFaqRequest.h:319
Aws::kendra::Model::CreateFaqRequest::WithS3Path
CreateFaqRequest & WithS3Path(const S3Path &value)
Definition: CreateFaqRequest.h:188
Aws::kendra::Model::CreateFaqRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateFaqRequest.h:271
Aws::kendra::Model::CreateFaqRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: CreateFaqRequest.h:60
Aws::kendra::Model::CreateFaqRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateFaqRequest.h:410
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::CreateFaqRequest::WithFileFormat
CreateFaqRequest & WithFileFormat(FaqFileFormat &&value)
Definition: CreateFaqRequest.h:374
Aws::kendra::Model::CreateFaqRequest::WithRoleArn
CreateFaqRequest & WithRoleArn(const char *value)
Definition: CreateFaqRequest.h:258
Aws::kendra::Model::CreateFaqRequest::WithClientToken
CreateFaqRequest & WithClientToken(const Aws::String &value)
Definition: CreateFaqRequest.h:417
Aws::kendra::Model::CreateFaqRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateFaqRequest.h:396
Aws::kendra::Model::CreateFaqRequest::WithDescription
CreateFaqRequest & WithDescription(const Aws::String &value)
Definition: CreateFaqRequest.h:152
Aws::kendra::Model::CreateFaqRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: CreateFaqRequest.h:50
Aws::kendra::Model::CreateFaqRequest::WithTags
CreateFaqRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateFaqRequest.h:289
KendraRequest.h
Aws::kendra::Model::CreateFaqRequest::SetIndexId
void SetIndexId(const char *value)
Definition: CreateFaqRequest.h:65
Aws::kendra::Model::CreateFaqRequest::WithIndexId
CreateFaqRequest & WithIndexId(Aws::String &&value)
Definition: CreateFaqRequest.h:75
Aws::kendra::Model::CreateFaqRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateFaqRequest.h:127
Aws::kendra::Model::CreateFaqRequest::S3PathHasBeenSet
bool S3PathHasBeenSet() const
Definition: CreateFaqRequest.h:173
Aws::kendra::Model::CreateFaqRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateFaqRequest.h:234
Aws::kendra::Model::CreateFaqRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
S3Path.h
Aws::kendra::Model::CreateFaqRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateFaqRequest.h:202
Aws::kendra::Model::CreateFaqRequest::GetName
const Aws::String & GetName() const
Definition: CreateFaqRequest.h:86
AWSVector.h
Aws::kendra::Model::S3Path
Definition: S3Path.h:33
Aws::kendra::Model::CreateFaqRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateFaqRequest.h:389
Aws::kendra::Model::CreateFaqRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::CreateFaqRequest::WithIndexId
CreateFaqRequest & WithIndexId(const Aws::String &value)
Definition: CreateFaqRequest.h:70
Aws::kendra::Model::CreateFaqRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateFaqRequest.h:382
Aws::kendra::Model::CreateFaqRequest::WithName
CreateFaqRequest & WithName(Aws::String &&value)
Definition: CreateFaqRequest.h:116
Aws::kendra::Model::CreateFaqRequest::GetS3Path
const S3Path & GetS3Path() const
Definition: CreateFaqRequest.h:168
Aws::kendra::Model::CreateFaqRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateFaqRequest.h:210
Aws::kendra::Model::CreateFaqRequest::SetS3Path
void SetS3Path(S3Path &&value)
Definition: CreateFaqRequest.h:183
Aws::kendra::Model::CreateFaqRequest::SetName
void SetName(const char *value)
Definition: CreateFaqRequest.h:106
Kendra_EXPORTS.h
Aws::kendra::Model::CreateFaqRequest::WithFileFormat
CreateFaqRequest & WithFileFormat(const FaqFileFormat &value)
Definition: CreateFaqRequest.h:363
Aws::kendra::Model::CreateFaqRequest::WithTags
CreateFaqRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateFaqRequest.h:295
Aws::kendra::Model::CreateFaqRequest::CreateFaqRequest
CreateFaqRequest()
Aws::kendra::Model::CreateFaqRequest::WithClientToken
CreateFaqRequest & WithClientToken(const char *value)
Definition: CreateFaqRequest.h:431
Aws::kendra::Model::CreateFaqRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: CreateFaqRequest.h:55
Aws::kendra::Model::CreateFaqRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateFaqRequest.h:96
Aws::kendra::Model::CreateFaqRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateFaqRequest.h:218
Aws::kendra::Model::CreateFaqRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateFaqRequest.h:91
Aws::kendra::Model::CreateFaqRequest::WithDescription
CreateFaqRequest & WithDescription(const char *value)
Definition: CreateFaqRequest.h:162
Aws::kendra::Model::CreateFaqRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFaqRequest.h:35
Aws::kendra::Model::CreateFaqRequest::WithDescription
CreateFaqRequest & WithDescription(Aws::String &&value)
Definition: CreateFaqRequest.h:157
Aws::kendra::Model::CreateFaqRequest::SetS3Path
void SetS3Path(const S3Path &value)
Definition: CreateFaqRequest.h:178
Aws::kendra::Model::CreateFaqRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateFaqRequest.h:403
Aws::kendra::Model::CreateFaqRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateFaqRequest.h:277
FaqFileFormat.h
AWSString.h
Aws::kendra::Model::CreateFaqRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateFaqRequest.h:226
Aws::kendra::Model::CreateFaqRequest::AddTags
CreateFaqRequest & AddTags(Tag &&value)
Definition: CreateFaqRequest.h:307
Aws::kendra::Model::CreateFaqRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateFaqRequest.h:283
Aws::kendra::Model::CreateFaqRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateFaqRequest.h:132
Aws::kendra::Model::CreateFaqRequest::FileFormatHasBeenSet
bool FileFormatHasBeenSet() const
Definition: CreateFaqRequest.h:330
Aws::kendra::Model::CreateFaqRequest::WithRoleArn
CreateFaqRequest & WithRoleArn(Aws::String &&value)
Definition: CreateFaqRequest.h:250
Aws::kendra::Model::CreateFaqRequest::SetFileFormat
void SetFileFormat(FaqFileFormat &&value)
Definition: CreateFaqRequest.h:352
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::CreateFaqRequest::WithName
CreateFaqRequest & WithName(const Aws::String &value)
Definition: CreateFaqRequest.h:111
Aws::kendra::Model::CreateFaqRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateFaqRequest.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::kendra::Model::CreateFaqRequest::WithName
CreateFaqRequest & WithName(const char *value)
Definition: CreateFaqRequest.h:121
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::CreateFaqRequest::WithClientToken
CreateFaqRequest & WithClientToken(Aws::String &&value)
Definition: CreateFaqRequest.h:424
Aws::kendra::Model::CreateFaqRequest::WithRoleArn
CreateFaqRequest & WithRoleArn(const Aws::String &value)
Definition: CreateFaqRequest.h:242
UUID.h
Aws::kendra::Model::CreateFaqRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateFaqRequest.h:137
Aws::kendra::Model::CreateFaqRequest::SetFileFormat
void SetFileFormat(const FaqFileFormat &value)
Definition: CreateFaqRequest.h:341
Aws::kendra::Model::CreateFaqRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateFaqRequest.h:142
Aws::kendra::Model::CreateFaqRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateFaqRequest.h:265
Aws::kendra::Model::Tag
Definition: Tag.h:34