AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFaqRequest.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/S3Path.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/kendra/model/FaqFileFormat.h>
13#include <aws/kendra/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace kendra
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_KENDRA_API CreateFaqRequest() = default;
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_KENDRA_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetIndexId() const { return m_indexId; }
47 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
48 template<typename IndexIdT = Aws::String>
49 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
50 template<typename IndexIdT = Aws::String>
51 CreateFaqRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateFaqRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 CreateFaqRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const S3Path& GetS3Path() const { return m_s3Path; }
83 inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; }
84 template<typename S3PathT = S3Path>
85 void SetS3Path(S3PathT&& value) { m_s3PathHasBeenSet = true; m_s3Path = std::forward<S3PathT>(value); }
86 template<typename S3PathT = S3Path>
87 CreateFaqRequest& WithS3Path(S3PathT&& value) { SetS3Path(std::forward<S3PathT>(value)); return *this;}
89
91
97 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
98 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
99 template<typename RoleArnT = Aws::String>
100 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
101 template<typename RoleArnT = Aws::String>
102 CreateFaqRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
104
106
110 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Vector<Tag>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Vector<Tag>>
115 CreateFaqRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsT = Tag>
117 CreateFaqRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
119
121
130 inline FaqFileFormat GetFileFormat() const { return m_fileFormat; }
131 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
132 inline void SetFileFormat(FaqFileFormat value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; }
133 inline CreateFaqRequest& WithFileFormat(FaqFileFormat value) { SetFileFormat(value); return *this;}
135
137
142 inline const Aws::String& GetClientToken() const { return m_clientToken; }
143 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
144 template<typename ClientTokenT = Aws::String>
145 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
146 template<typename ClientTokenT = Aws::String>
147 CreateFaqRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
149
151
158 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
159 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
160 template<typename LanguageCodeT = Aws::String>
161 void SetLanguageCode(LanguageCodeT&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::forward<LanguageCodeT>(value); }
162 template<typename LanguageCodeT = Aws::String>
163 CreateFaqRequest& WithLanguageCode(LanguageCodeT&& value) { SetLanguageCode(std::forward<LanguageCodeT>(value)); return *this;}
165 private:
166
167 Aws::String m_indexId;
168 bool m_indexIdHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
176 S3Path m_s3Path;
177 bool m_s3PathHasBeenSet = false;
178
179 Aws::String m_roleArn;
180 bool m_roleArnHasBeenSet = false;
181
182 Aws::Vector<Tag> m_tags;
183 bool m_tagsHasBeenSet = false;
184
186 bool m_fileFormatHasBeenSet = false;
187
189 bool m_clientTokenHasBeenSet = true;
190
191 Aws::String m_languageCode;
192 bool m_languageCodeHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace kendra
197} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetLanguageCode(LanguageCodeT &&value)
const Aws::String & GetLanguageCode() const
AWS_KENDRA_API CreateFaqRequest()=default
const Aws::Vector< Tag > & GetTags() const
CreateFaqRequest & AddTags(TagsT &&value)
const Aws::String & GetIndexId() const
CreateFaqRequest & WithDescription(DescriptionT &&value)
CreateFaqRequest & WithName(NameT &&value)
CreateFaqRequest & WithLanguageCode(LanguageCodeT &&value)
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFaqRequest & WithTags(TagsT &&value)
const Aws::String & GetClientToken() const
CreateFaqRequest & WithRoleArn(RoleArnT &&value)
const Aws::String & GetDescription() const
CreateFaqRequest & WithS3Path(S3PathT &&value)
const Aws::String & GetName() const
CreateFaqRequest & WithIndexId(IndexIdT &&value)
void SetClientToken(ClientTokenT &&value)
CreateFaqRequest & WithFileFormat(FaqFileFormat value)
void SetDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetRoleArn() const
AWS_KENDRA_API Aws::String SerializePayload() const override
CreateFaqRequest & WithClientToken(ClientTokenT &&value)
void SetFileFormat(FaqFileFormat value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector