AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
DescribeFaqResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/FaqFileFormat.h>
11#include <aws/kendra/model/FaqStatus.h>
12#include <aws/kendra/model/S3Path.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace kendra {
26namespace Model {
28 public:
29 AWS_KENDRA_API DescribeFaqResult() = default;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
44 DescribeFaqResult& WithId(IdT&& value) {
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetIndexId() const { return m_indexId; }
55 template <typename IndexIdT = Aws::String>
56 void SetIndexId(IndexIdT&& value) {
57 m_indexIdHasBeenSet = true;
58 m_indexId = std::forward<IndexIdT>(value);
59 }
60 template <typename IndexIdT = Aws::String>
61 DescribeFaqResult& WithIndexId(IndexIdT&& value) {
62 SetIndexId(std::forward<IndexIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
78 DescribeFaqResult& WithName(NameT&& value) {
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
95 DescribeFaqResult& WithDescription(DescriptionT&& value) {
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
106 template <typename CreatedAtT = Aws::Utils::DateTime>
107 void SetCreatedAt(CreatedAtT&& value) {
108 m_createdAtHasBeenSet = true;
109 m_createdAt = std::forward<CreatedAtT>(value);
110 }
111 template <typename CreatedAtT = Aws::Utils::DateTime>
112 DescribeFaqResult& WithCreatedAt(CreatedAtT&& value) {
113 SetCreatedAt(std::forward<CreatedAtT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
123 template <typename UpdatedAtT = Aws::Utils::DateTime>
124 void SetUpdatedAt(UpdatedAtT&& value) {
125 m_updatedAtHasBeenSet = true;
126 m_updatedAt = std::forward<UpdatedAtT>(value);
127 }
128 template <typename UpdatedAtT = Aws::Utils::DateTime>
129 DescribeFaqResult& WithUpdatedAt(UpdatedAtT&& value) {
130 SetUpdatedAt(std::forward<UpdatedAtT>(value));
131 return *this;
132 }
134
136
137 inline const S3Path& GetS3Path() const { return m_s3Path; }
138 template <typename S3PathT = S3Path>
139 void SetS3Path(S3PathT&& value) {
140 m_s3PathHasBeenSet = true;
141 m_s3Path = std::forward<S3PathT>(value);
142 }
143 template <typename S3PathT = S3Path>
144 DescribeFaqResult& WithS3Path(S3PathT&& value) {
145 SetS3Path(std::forward<S3PathT>(value));
146 return *this;
147 }
149
151
155 inline FaqStatus GetStatus() const { return m_status; }
156 inline void SetStatus(FaqStatus value) {
157 m_statusHasBeenSet = true;
158 m_status = value;
159 }
161 SetStatus(value);
162 return *this;
163 }
165
167
171 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
172 template <typename RoleArnT = Aws::String>
173 void SetRoleArn(RoleArnT&& value) {
174 m_roleArnHasBeenSet = true;
175 m_roleArn = std::forward<RoleArnT>(value);
176 }
177 template <typename RoleArnT = Aws::String>
178 DescribeFaqResult& WithRoleArn(RoleArnT&& value) {
179 SetRoleArn(std::forward<RoleArnT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
190 template <typename ErrorMessageT = Aws::String>
191 void SetErrorMessage(ErrorMessageT&& value) {
192 m_errorMessageHasBeenSet = true;
193 m_errorMessage = std::forward<ErrorMessageT>(value);
194 }
195 template <typename ErrorMessageT = Aws::String>
196 DescribeFaqResult& WithErrorMessage(ErrorMessageT&& value) {
197 SetErrorMessage(std::forward<ErrorMessageT>(value));
198 return *this;
199 }
201
203
206 inline FaqFileFormat GetFileFormat() const { return m_fileFormat; }
207 inline void SetFileFormat(FaqFileFormat value) {
208 m_fileFormatHasBeenSet = true;
209 m_fileFormat = value;
210 }
212 SetFileFormat(value);
213 return *this;
214 }
216
218
225 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
226 template <typename LanguageCodeT = Aws::String>
227 void SetLanguageCode(LanguageCodeT&& value) {
228 m_languageCodeHasBeenSet = true;
229 m_languageCode = std::forward<LanguageCodeT>(value);
230 }
231 template <typename LanguageCodeT = Aws::String>
232 DescribeFaqResult& WithLanguageCode(LanguageCodeT&& value) {
233 SetLanguageCode(std::forward<LanguageCodeT>(value));
234 return *this;
235 }
237
239
240 inline const Aws::String& GetRequestId() const { return m_requestId; }
241 template <typename RequestIdT = Aws::String>
242 void SetRequestId(RequestIdT&& value) {
243 m_requestIdHasBeenSet = true;
244 m_requestId = std::forward<RequestIdT>(value);
245 }
246 template <typename RequestIdT = Aws::String>
247 DescribeFaqResult& WithRequestId(RequestIdT&& value) {
248 SetRequestId(std::forward<RequestIdT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_id;
254 bool m_idHasBeenSet = false;
255
256 Aws::String m_indexId;
257 bool m_indexIdHasBeenSet = false;
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 Aws::String m_description;
263 bool m_descriptionHasBeenSet = false;
264
265 Aws::Utils::DateTime m_createdAt{};
266 bool m_createdAtHasBeenSet = false;
267
268 Aws::Utils::DateTime m_updatedAt{};
269 bool m_updatedAtHasBeenSet = false;
270
271 S3Path m_s3Path;
272 bool m_s3PathHasBeenSet = false;
273
275 bool m_statusHasBeenSet = false;
276
277 Aws::String m_roleArn;
278 bool m_roleArnHasBeenSet = false;
279
280 Aws::String m_errorMessage;
281 bool m_errorMessageHasBeenSet = false;
282
284 bool m_fileFormatHasBeenSet = false;
285
286 Aws::String m_languageCode;
287 bool m_languageCodeHasBeenSet = false;
288
289 Aws::String m_requestId;
290 bool m_requestIdHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace kendra
295} // namespace Aws
DescribeFaqResult & WithS3Path(S3PathT &&value)
const Aws::String & GetId() const
DescribeFaqResult & WithId(IdT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetIndexId() const
const Aws::String & GetErrorMessage() const
const Aws::String & GetName() const
AWS_KENDRA_API DescribeFaqResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetLanguageCode() const
void SetErrorMessage(ErrorMessageT &&value)
DescribeFaqResult & WithLanguageCode(LanguageCodeT &&value)
DescribeFaqResult & WithRoleArn(RoleArnT &&value)
DescribeFaqResult & WithDescription(DescriptionT &&value)
DescribeFaqResult & WithIndexId(IndexIdT &&value)
const Aws::String & GetRoleArn() const
DescribeFaqResult & WithErrorMessage(ErrorMessageT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
DescribeFaqResult & WithFileFormat(FaqFileFormat value)
AWS_KENDRA_API DescribeFaqResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeFaqResult & WithUpdatedAt(UpdatedAtT &&value)
DescribeFaqResult & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDescription(DescriptionT &&value)
DescribeFaqResult & WithStatus(FaqStatus value)
void SetFileFormat(FaqFileFormat value)
DescribeFaqResult & WithRequestId(RequestIdT &&value)
void SetLanguageCode(LanguageCodeT &&value)
const Aws::String & GetRequestId() const
DescribeFaqResult & WithCreatedAt(CreatedAtT &&value)
AWS_KENDRA_API DescribeFaqResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue