AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeFaqResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/FaqFileFormat.h>
12#include <aws/kendra/model/FaqStatus.h>
13#include <aws/kendra/model/S3Path.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace kendra {
27namespace Model {
29 public:
30 AWS_KENDRA_API DescribeFaqResult() = default;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
45 DescribeFaqResult& WithId(IdT&& value) {
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetIndexId() const { return m_indexId; }
56 template <typename IndexIdT = Aws::String>
57 void SetIndexId(IndexIdT&& value) {
58 m_indexIdHasBeenSet = true;
59 m_indexId = std::forward<IndexIdT>(value);
60 }
61 template <typename IndexIdT = Aws::String>
62 DescribeFaqResult& WithIndexId(IndexIdT&& value) {
63 SetIndexId(std::forward<IndexIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
79 DescribeFaqResult& WithName(NameT&& value) {
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 DescribeFaqResult& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
107 template <typename CreatedAtT = Aws::Utils::DateTime>
108 void SetCreatedAt(CreatedAtT&& value) {
109 m_createdAtHasBeenSet = true;
110 m_createdAt = std::forward<CreatedAtT>(value);
111 }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 DescribeFaqResult& WithCreatedAt(CreatedAtT&& value) {
114 SetCreatedAt(std::forward<CreatedAtT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
124 template <typename UpdatedAtT = Aws::Utils::DateTime>
125 void SetUpdatedAt(UpdatedAtT&& value) {
126 m_updatedAtHasBeenSet = true;
127 m_updatedAt = std::forward<UpdatedAtT>(value);
128 }
129 template <typename UpdatedAtT = Aws::Utils::DateTime>
130 DescribeFaqResult& WithUpdatedAt(UpdatedAtT&& value) {
131 SetUpdatedAt(std::forward<UpdatedAtT>(value));
132 return *this;
133 }
135
137
138 inline const S3Path& GetS3Path() const { return m_s3Path; }
139 template <typename S3PathT = S3Path>
140 void SetS3Path(S3PathT&& value) {
141 m_s3PathHasBeenSet = true;
142 m_s3Path = std::forward<S3PathT>(value);
143 }
144 template <typename S3PathT = S3Path>
145 DescribeFaqResult& WithS3Path(S3PathT&& value) {
146 SetS3Path(std::forward<S3PathT>(value));
147 return *this;
148 }
150
152
156 inline FaqStatus GetStatus() const { return m_status; }
157 inline void SetStatus(FaqStatus value) {
158 m_statusHasBeenSet = true;
159 m_status = value;
160 }
162 SetStatus(value);
163 return *this;
164 }
166
168
172 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
173 template <typename RoleArnT = Aws::String>
174 void SetRoleArn(RoleArnT&& value) {
175 m_roleArnHasBeenSet = true;
176 m_roleArn = std::forward<RoleArnT>(value);
177 }
178 template <typename RoleArnT = Aws::String>
179 DescribeFaqResult& WithRoleArn(RoleArnT&& value) {
180 SetRoleArn(std::forward<RoleArnT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
191 template <typename ErrorMessageT = Aws::String>
192 void SetErrorMessage(ErrorMessageT&& value) {
193 m_errorMessageHasBeenSet = true;
194 m_errorMessage = std::forward<ErrorMessageT>(value);
195 }
196 template <typename ErrorMessageT = Aws::String>
197 DescribeFaqResult& WithErrorMessage(ErrorMessageT&& value) {
198 SetErrorMessage(std::forward<ErrorMessageT>(value));
199 return *this;
200 }
202
204
207 inline FaqFileFormat GetFileFormat() const { return m_fileFormat; }
208 inline void SetFileFormat(FaqFileFormat value) {
209 m_fileFormatHasBeenSet = true;
210 m_fileFormat = value;
211 }
213 SetFileFormat(value);
214 return *this;
215 }
217
219
226 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
227 template <typename LanguageCodeT = Aws::String>
228 void SetLanguageCode(LanguageCodeT&& value) {
229 m_languageCodeHasBeenSet = true;
230 m_languageCode = std::forward<LanguageCodeT>(value);
231 }
232 template <typename LanguageCodeT = Aws::String>
233 DescribeFaqResult& WithLanguageCode(LanguageCodeT&& value) {
234 SetLanguageCode(std::forward<LanguageCodeT>(value));
235 return *this;
236 }
238
240
241 inline const Aws::String& GetRequestId() const { return m_requestId; }
242 template <typename RequestIdT = Aws::String>
243 void SetRequestId(RequestIdT&& value) {
244 m_requestIdHasBeenSet = true;
245 m_requestId = std::forward<RequestIdT>(value);
246 }
247 template <typename RequestIdT = Aws::String>
248 DescribeFaqResult& WithRequestId(RequestIdT&& value) {
249 SetRequestId(std::forward<RequestIdT>(value));
250 return *this;
251 }
253 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
254
255 private:
256 Aws::String m_id;
257
258 Aws::String m_indexId;
259
260 Aws::String m_name;
261
262 Aws::String m_description;
263
264 Aws::Utils::DateTime m_createdAt{};
265
266 Aws::Utils::DateTime m_updatedAt{};
267
268 S3Path m_s3Path;
269
271
272 Aws::String m_roleArn;
273
274 Aws::String m_errorMessage;
275
277
278 Aws::String m_languageCode;
279
280 Aws::String m_requestId;
281 Aws::Http::HttpResponseCode m_HttpResponseCode;
282 bool m_idHasBeenSet = false;
283 bool m_indexIdHasBeenSet = false;
284 bool m_nameHasBeenSet = false;
285 bool m_descriptionHasBeenSet = false;
286 bool m_createdAtHasBeenSet = false;
287 bool m_updatedAtHasBeenSet = false;
288 bool m_s3PathHasBeenSet = false;
289 bool m_statusHasBeenSet = false;
290 bool m_roleArnHasBeenSet = false;
291 bool m_errorMessageHasBeenSet = false;
292 bool m_fileFormatHasBeenSet = false;
293 bool m_languageCodeHasBeenSet = false;
294 bool m_requestIdHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace kendra
299} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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