AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateFaqRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/KendraRequest.h>
11#include <aws/kendra/Kendra_EXPORTS.h>
12#include <aws/kendra/model/FaqFileFormat.h>
13#include <aws/kendra/model/S3Path.h>
14#include <aws/kendra/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace kendra {
20namespace Model {
21
25 public:
26 AWS_KENDRA_API CreateFaqRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFaq"; }
33
34 AWS_KENDRA_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetIndexId() const { return m_indexId; }
43 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
44 template <typename IndexIdT = Aws::String>
45 void SetIndexId(IndexIdT&& value) {
46 m_indexIdHasBeenSet = true;
47 m_indexId = std::forward<IndexIdT>(value);
48 }
49 template <typename IndexIdT = Aws::String>
50 CreateFaqRequest& WithIndexId(IndexIdT&& value) {
51 SetIndexId(std::forward<IndexIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 CreateFaqRequest& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 CreateFaqRequest& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const S3Path& GetS3Path() const { return m_s3Path; }
97 inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; }
98 template <typename S3PathT = S3Path>
99 void SetS3Path(S3PathT&& value) {
100 m_s3PathHasBeenSet = true;
101 m_s3Path = std::forward<S3PathT>(value);
102 }
103 template <typename S3PathT = S3Path>
104 CreateFaqRequest& WithS3Path(S3PathT&& value) {
105 SetS3Path(std::forward<S3PathT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
118 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
119 template <typename RoleArnT = Aws::String>
120 void SetRoleArn(RoleArnT&& value) {
121 m_roleArnHasBeenSet = true;
122 m_roleArn = std::forward<RoleArnT>(value);
123 }
124 template <typename RoleArnT = Aws::String>
125 CreateFaqRequest& WithRoleArn(RoleArnT&& value) {
126 SetRoleArn(std::forward<RoleArnT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Vector<Tag>>
144 CreateFaqRequest& WithTags(TagsT&& value) {
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsT = Tag>
149 CreateFaqRequest& AddTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace_back(std::forward<TagsT>(value));
152 return *this;
153 }
155
157
166 inline FaqFileFormat GetFileFormat() const { return m_fileFormat; }
167 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
168 inline void SetFileFormat(FaqFileFormat value) {
169 m_fileFormatHasBeenSet = true;
170 m_fileFormat = value;
171 }
173 SetFileFormat(value);
174 return *this;
175 }
177
179
184 inline const Aws::String& GetClientToken() const { return m_clientToken; }
185 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
186 template <typename ClientTokenT = Aws::String>
187 void SetClientToken(ClientTokenT&& value) {
188 m_clientTokenHasBeenSet = true;
189 m_clientToken = std::forward<ClientTokenT>(value);
190 }
191 template <typename ClientTokenT = Aws::String>
192 CreateFaqRequest& WithClientToken(ClientTokenT&& value) {
193 SetClientToken(std::forward<ClientTokenT>(value));
194 return *this;
195 }
197
199
206 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
207 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
208 template <typename LanguageCodeT = Aws::String>
209 void SetLanguageCode(LanguageCodeT&& value) {
210 m_languageCodeHasBeenSet = true;
211 m_languageCode = std::forward<LanguageCodeT>(value);
212 }
213 template <typename LanguageCodeT = Aws::String>
214 CreateFaqRequest& WithLanguageCode(LanguageCodeT&& value) {
215 SetLanguageCode(std::forward<LanguageCodeT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_indexId;
221 bool m_indexIdHasBeenSet = false;
222
223 Aws::String m_name;
224 bool m_nameHasBeenSet = false;
225
226 Aws::String m_description;
227 bool m_descriptionHasBeenSet = false;
228
229 S3Path m_s3Path;
230 bool m_s3PathHasBeenSet = false;
231
232 Aws::String m_roleArn;
233 bool m_roleArnHasBeenSet = false;
234
235 Aws::Vector<Tag> m_tags;
236 bool m_tagsHasBeenSet = false;
237
239 bool m_fileFormatHasBeenSet = false;
240
242 bool m_clientTokenHasBeenSet = true;
243
244 Aws::String m_languageCode;
245 bool m_languageCodeHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace kendra
250} // 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