AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeExperienceResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/Kendra_EXPORTS.h>
12#include <aws/kendra/model/ExperienceConfiguration.h>
13#include <aws/kendra/model/ExperienceEndpoint.h>
14#include <aws/kendra/model/ExperienceStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace kendra {
28namespace Model {
30 public:
31 AWS_KENDRA_API DescribeExperienceResult() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetIndexId() const { return m_indexId; }
57 template <typename IndexIdT = Aws::String>
58 void SetIndexId(IndexIdT&& value) {
59 m_indexIdHasBeenSet = true;
60 m_indexId = std::forward<IndexIdT>(value);
61 }
62 template <typename IndexIdT = Aws::String>
64 SetIndexId(std::forward<IndexIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Vector<ExperienceEndpoint>& GetEndpoints() const { return m_endpoints; }
92 template <typename EndpointsT = Aws::Vector<ExperienceEndpoint>>
93 void SetEndpoints(EndpointsT&& value) {
94 m_endpointsHasBeenSet = true;
95 m_endpoints = std::forward<EndpointsT>(value);
96 }
97 template <typename EndpointsT = Aws::Vector<ExperienceEndpoint>>
99 SetEndpoints(std::forward<EndpointsT>(value));
100 return *this;
101 }
102 template <typename EndpointsT = ExperienceEndpoint>
104 m_endpointsHasBeenSet = true;
105 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
106 return *this;
107 }
109
111
118 inline const ExperienceConfiguration& GetConfiguration() const { return m_configuration; }
119 template <typename ConfigurationT = ExperienceConfiguration>
120 void SetConfiguration(ConfigurationT&& value) {
121 m_configurationHasBeenSet = true;
122 m_configuration = std::forward<ConfigurationT>(value);
123 }
124 template <typename ConfigurationT = ExperienceConfiguration>
126 SetConfiguration(std::forward<ConfigurationT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 void SetCreatedAt(CreatedAtT&& value) {
138 m_createdAtHasBeenSet = true;
139 m_createdAt = std::forward<CreatedAtT>(value);
140 }
141 template <typename CreatedAtT = Aws::Utils::DateTime>
143 SetCreatedAt(std::forward<CreatedAtT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
153 template <typename UpdatedAtT = Aws::Utils::DateTime>
154 void SetUpdatedAt(UpdatedAtT&& value) {
155 m_updatedAtHasBeenSet = true;
156 m_updatedAt = std::forward<UpdatedAtT>(value);
157 }
158 template <typename UpdatedAtT = Aws::Utils::DateTime>
160 SetUpdatedAt(std::forward<UpdatedAtT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDescription() const { return m_description; }
170 template <typename DescriptionT = Aws::String>
171 void SetDescription(DescriptionT&& value) {
172 m_descriptionHasBeenSet = true;
173 m_description = std::forward<DescriptionT>(value);
174 }
175 template <typename DescriptionT = Aws::String>
177 SetDescription(std::forward<DescriptionT>(value));
178 return *this;
179 }
181
183
189 inline ExperienceStatus GetStatus() const { return m_status; }
190 inline void SetStatus(ExperienceStatus value) {
191 m_statusHasBeenSet = true;
192 m_status = value;
193 }
195 SetStatus(value);
196 return *this;
197 }
199
201
207 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
208 template <typename RoleArnT = Aws::String>
209 void SetRoleArn(RoleArnT&& value) {
210 m_roleArnHasBeenSet = true;
211 m_roleArn = std::forward<RoleArnT>(value);
212 }
213 template <typename RoleArnT = Aws::String>
215 SetRoleArn(std::forward<RoleArnT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
225 template <typename ErrorMessageT = Aws::String>
226 void SetErrorMessage(ErrorMessageT&& value) {
227 m_errorMessageHasBeenSet = true;
228 m_errorMessage = std::forward<ErrorMessageT>(value);
229 }
230 template <typename ErrorMessageT = Aws::String>
232 SetErrorMessage(std::forward<ErrorMessageT>(value));
233 return *this;
234 }
236
238
239 inline const Aws::String& GetRequestId() const { return m_requestId; }
240 template <typename RequestIdT = Aws::String>
241 void SetRequestId(RequestIdT&& value) {
242 m_requestIdHasBeenSet = true;
243 m_requestId = std::forward<RequestIdT>(value);
244 }
245 template <typename RequestIdT = Aws::String>
247 SetRequestId(std::forward<RequestIdT>(value));
248 return *this;
249 }
251 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
252
253 private:
254 Aws::String m_id;
255
256 Aws::String m_indexId;
257
258 Aws::String m_name;
259
261
262 ExperienceConfiguration m_configuration;
263
264 Aws::Utils::DateTime m_createdAt{};
265
266 Aws::Utils::DateTime m_updatedAt{};
267
268 Aws::String m_description;
269
271
272 Aws::String m_roleArn;
273
274 Aws::String m_errorMessage;
275
276 Aws::String m_requestId;
277 Aws::Http::HttpResponseCode m_HttpResponseCode;
278 bool m_idHasBeenSet = false;
279 bool m_indexIdHasBeenSet = false;
280 bool m_nameHasBeenSet = false;
281 bool m_endpointsHasBeenSet = false;
282 bool m_configurationHasBeenSet = false;
283 bool m_createdAtHasBeenSet = false;
284 bool m_updatedAtHasBeenSet = false;
285 bool m_descriptionHasBeenSet = false;
286 bool m_statusHasBeenSet = false;
287 bool m_roleArnHasBeenSet = false;
288 bool m_errorMessageHasBeenSet = false;
289 bool m_requestIdHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace kendra
294} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_KENDRA_API DescribeExperienceResult()=default
DescribeExperienceResult & WithId(IdT &&value)
DescribeExperienceResult & WithConfiguration(ConfigurationT &&value)
DescribeExperienceResult & WithUpdatedAt(UpdatedAtT &&value)
DescribeExperienceResult & WithName(NameT &&value)
DescribeExperienceResult & WithEndpoints(EndpointsT &&value)
AWS_KENDRA_API DescribeExperienceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
DescribeExperienceResult & AddEndpoints(EndpointsT &&value)
DescribeExperienceResult & WithRequestId(RequestIdT &&value)
DescribeExperienceResult & WithRoleArn(RoleArnT &&value)
AWS_KENDRA_API DescribeExperienceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeExperienceResult & WithStatus(ExperienceStatus value)
const ExperienceConfiguration & GetConfiguration() const
DescribeExperienceResult & WithErrorMessage(ErrorMessageT &&value)
DescribeExperienceResult & WithDescription(DescriptionT &&value)
DescribeExperienceResult & WithCreatedAt(CreatedAtT &&value)
DescribeExperienceResult & WithIndexId(IndexIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< ExperienceEndpoint > & GetEndpoints() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue