AWS SDK for C++  1.8.71
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 
16 namespace Aws
17 {
18 namespace kendra
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateFaq"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetIndexId() const{ return m_indexId; }
45 
49  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
50 
54  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
55 
59  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
60 
64  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
65 
69  inline CreateFaqRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
70 
74  inline CreateFaqRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
75 
79  inline CreateFaqRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
80 
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 
95  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 
105  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 
110  inline CreateFaqRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
111 
115  inline CreateFaqRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 
120  inline CreateFaqRequest& WithName(const char* value) { SetName(value); return *this;}
121 
122 
126  inline const Aws::String& GetDescription() const{ return m_description; }
127 
131  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
132 
136  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
137 
141  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
142 
146  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
147 
151  inline CreateFaqRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
152 
156  inline CreateFaqRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
157 
161  inline CreateFaqRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
162 
163 
167  inline const S3Path& GetS3Path() const{ return m_s3Path; }
168 
172  inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; }
173 
177  inline void SetS3Path(const S3Path& value) { m_s3PathHasBeenSet = true; m_s3Path = value; }
178 
182  inline void SetS3Path(S3Path&& value) { m_s3PathHasBeenSet = true; m_s3Path = std::move(value); }
183 
187  inline CreateFaqRequest& WithS3Path(const S3Path& value) { SetS3Path(value); return *this;}
188 
192  inline CreateFaqRequest& WithS3Path(S3Path&& value) { SetS3Path(std::move(value)); return *this;}
193 
194 
201  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
202 
209  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
210 
217  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
218 
225  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
226 
233  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
234 
241  inline CreateFaqRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
242 
249  inline CreateFaqRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
250 
257  inline CreateFaqRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
258 
259 
264  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
265 
270  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
271 
276  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
277 
282  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
283 
288  inline CreateFaqRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
289 
294  inline CreateFaqRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
295 
300  inline CreateFaqRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
301 
306  inline CreateFaqRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
307 
308 
318  inline const FaqFileFormat& GetFileFormat() const{ return m_fileFormat; }
319 
329  inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
330 
340  inline void SetFileFormat(const FaqFileFormat& value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; }
341 
351  inline void SetFileFormat(FaqFileFormat&& value) { m_fileFormatHasBeenSet = true; m_fileFormat = std::move(value); }
352 
362  inline CreateFaqRequest& WithFileFormat(const FaqFileFormat& value) { SetFileFormat(value); return *this;}
363 
373  inline CreateFaqRequest& WithFileFormat(FaqFileFormat&& value) { SetFileFormat(std::move(value)); return *this;}
374 
375  private:
376 
377  Aws::String m_indexId;
378  bool m_indexIdHasBeenSet;
379 
380  Aws::String m_name;
381  bool m_nameHasBeenSet;
382 
383  Aws::String m_description;
384  bool m_descriptionHasBeenSet;
385 
386  S3Path m_s3Path;
387  bool m_s3PathHasBeenSet;
388 
389  Aws::String m_roleArn;
390  bool m_roleArnHasBeenSet;
391 
392  Aws::Vector<Tag> m_tags;
393  bool m_tagsHasBeenSet;
394 
395  FaqFileFormat m_fileFormat;
396  bool m_fileFormatHasBeenSet;
397  };
398 
399 } // namespace Model
400 } // namespace kendra
401 } // namespace Aws
const Aws::String & GetName() const
CreateFaqRequest & WithTags(const Aws::Vector< Tag > &value)
void SetIndexId(const char *value)
#define AWS_KENDRA_API
void SetDescription(Aws::String &&value)
CreateFaqRequest & WithRoleArn(const Aws::String &value)
CreateFaqRequest & AddTags(const Tag &value)
CreateFaqRequest & WithIndexId(const char *value)
const Aws::String & GetRoleArn() const
CreateFaqRequest & WithS3Path(S3Path &&value)
CreateFaqRequest & WithTags(Aws::Vector< Tag > &&value)
void SetIndexId(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateFaqRequest & WithDescription(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetS3Path(const S3Path &value)
CreateFaqRequest & WithFileFormat(const FaqFileFormat &value)
const FaqFileFormat & GetFileFormat() const
void SetName(const Aws::String &value)
void SetIndexId(Aws::String &&value)
CreateFaqRequest & WithDescription(const char *value)
CreateFaqRequest & WithDescription(const Aws::String &value)
const Aws::String & GetDescription() const
CreateFaqRequest & WithIndexId(const Aws::String &value)
CreateFaqRequest & WithName(Aws::String &&value)
CreateFaqRequest & WithName(const char *value)
CreateFaqRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetFileFormat(const FaqFileFormat &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDescription(const char *value)
CreateFaqRequest & AddTags(Tag &&value)
void SetDescription(const Aws::String &value)
void SetRoleArn(Aws::String &&value)
const Aws::String & GetIndexId() const
CreateFaqRequest & WithRoleArn(const char *value)
void SetFileFormat(FaqFileFormat &&value)
void SetTags(Aws::Vector< Tag > &&value)
CreateFaqRequest & WithS3Path(const S3Path &value)
void SetName(Aws::String &&value)
CreateFaqRequest & WithFileFormat(FaqFileFormat &&value)
CreateFaqRequest & WithRoleArn(Aws::String &&value)
CreateFaqRequest & WithIndexId(Aws::String &&value)