AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeAppResult.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/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/AppStatus.h>
12#include <aws/sagemaker/model/AppType.h>
13#include <aws/sagemaker/model/FeatureStatus.h>
14#include <aws/sagemaker/model/ResourceSpec.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 SageMaker {
28namespace Model {
30 public:
31 AWS_SAGEMAKER_API DescribeAppResult() = default;
34
36
39 inline const Aws::String& GetAppArn() const { return m_appArn; }
40 template <typename AppArnT = Aws::String>
41 void SetAppArn(AppArnT&& value) {
42 m_appArnHasBeenSet = true;
43 m_appArn = std::forward<AppArnT>(value);
44 }
45 template <typename AppArnT = Aws::String>
46 DescribeAppResult& WithAppArn(AppArnT&& value) {
47 SetAppArn(std::forward<AppArnT>(value));
48 return *this;
49 }
51
53
56 inline AppType GetAppType() const { return m_appType; }
57 inline void SetAppType(AppType value) {
58 m_appTypeHasBeenSet = true;
59 m_appType = value;
60 }
62 SetAppType(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetAppName() const { return m_appName; }
72 template <typename AppNameT = Aws::String>
73 void SetAppName(AppNameT&& value) {
74 m_appNameHasBeenSet = true;
75 m_appName = std::forward<AppNameT>(value);
76 }
77 template <typename AppNameT = Aws::String>
78 DescribeAppResult& WithAppName(AppNameT&& value) {
79 SetAppName(std::forward<AppNameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDomainId() const { return m_domainId; }
89 template <typename DomainIdT = Aws::String>
90 void SetDomainId(DomainIdT&& value) {
91 m_domainIdHasBeenSet = true;
92 m_domainId = std::forward<DomainIdT>(value);
93 }
94 template <typename DomainIdT = Aws::String>
95 DescribeAppResult& WithDomainId(DomainIdT&& value) {
96 SetDomainId(std::forward<DomainIdT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetUserProfileName() const { return m_userProfileName; }
106 template <typename UserProfileNameT = Aws::String>
107 void SetUserProfileName(UserProfileNameT&& value) {
108 m_userProfileNameHasBeenSet = true;
109 m_userProfileName = std::forward<UserProfileNameT>(value);
110 }
111 template <typename UserProfileNameT = Aws::String>
112 DescribeAppResult& WithUserProfileName(UserProfileNameT&& value) {
113 SetUserProfileName(std::forward<UserProfileNameT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
124 template <typename SpaceNameT = Aws::String>
125 void SetSpaceName(SpaceNameT&& value) {
126 m_spaceNameHasBeenSet = true;
127 m_spaceName = std::forward<SpaceNameT>(value);
128 }
129 template <typename SpaceNameT = Aws::String>
130 DescribeAppResult& WithSpaceName(SpaceNameT&& value) {
131 SetSpaceName(std::forward<SpaceNameT>(value));
132 return *this;
133 }
135
137
140 inline AppStatus GetStatus() const { return m_status; }
141 inline void SetStatus(AppStatus value) {
142 m_statusHasBeenSet = true;
143 m_status = value;
144 }
146 SetStatus(value);
147 return *this;
148 }
150
152
158 inline FeatureStatus GetEffectiveTrustedIdentityPropagationStatus() const { return m_effectiveTrustedIdentityPropagationStatus; }
160 m_effectiveTrustedIdentityPropagationStatusHasBeenSet = true;
161 m_effectiveTrustedIdentityPropagationStatus = value;
162 }
165 return *this;
166 }
168
170
173 inline bool GetRecoveryMode() const { return m_recoveryMode; }
174 inline void SetRecoveryMode(bool value) {
175 m_recoveryModeHasBeenSet = true;
176 m_recoveryMode = value;
177 }
179 SetRecoveryMode(value);
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetLastHealthCheckTimestamp() const { return m_lastHealthCheckTimestamp; }
189 template <typename LastHealthCheckTimestampT = Aws::Utils::DateTime>
190 void SetLastHealthCheckTimestamp(LastHealthCheckTimestampT&& value) {
191 m_lastHealthCheckTimestampHasBeenSet = true;
192 m_lastHealthCheckTimestamp = std::forward<LastHealthCheckTimestampT>(value);
193 }
194 template <typename LastHealthCheckTimestampT = Aws::Utils::DateTime>
195 DescribeAppResult& WithLastHealthCheckTimestamp(LastHealthCheckTimestampT&& value) {
196 SetLastHealthCheckTimestamp(std::forward<LastHealthCheckTimestampT>(value));
197 return *this;
198 }
200
202
208 inline const Aws::Utils::DateTime& GetLastUserActivityTimestamp() const { return m_lastUserActivityTimestamp; }
209 template <typename LastUserActivityTimestampT = Aws::Utils::DateTime>
210 void SetLastUserActivityTimestamp(LastUserActivityTimestampT&& value) {
211 m_lastUserActivityTimestampHasBeenSet = true;
212 m_lastUserActivityTimestamp = std::forward<LastUserActivityTimestampT>(value);
213 }
214 template <typename LastUserActivityTimestampT = Aws::Utils::DateTime>
215 DescribeAppResult& WithLastUserActivityTimestamp(LastUserActivityTimestampT&& value) {
216 SetLastUserActivityTimestamp(std::forward<LastUserActivityTimestampT>(value));
217 return *this;
218 }
220
222
231 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
232 template <typename CreationTimeT = Aws::Utils::DateTime>
233 void SetCreationTime(CreationTimeT&& value) {
234 m_creationTimeHasBeenSet = true;
235 m_creationTime = std::forward<CreationTimeT>(value);
236 }
237 template <typename CreationTimeT = Aws::Utils::DateTime>
238 DescribeAppResult& WithCreationTime(CreationTimeT&& value) {
239 SetCreationTime(std::forward<CreationTimeT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
249 template <typename FailureReasonT = Aws::String>
250 void SetFailureReason(FailureReasonT&& value) {
251 m_failureReasonHasBeenSet = true;
252 m_failureReason = std::forward<FailureReasonT>(value);
253 }
254 template <typename FailureReasonT = Aws::String>
255 DescribeAppResult& WithFailureReason(FailureReasonT&& value) {
256 SetFailureReason(std::forward<FailureReasonT>(value));
257 return *this;
258 }
260
262
266 inline const ResourceSpec& GetResourceSpec() const { return m_resourceSpec; }
267 template <typename ResourceSpecT = ResourceSpec>
268 void SetResourceSpec(ResourceSpecT&& value) {
269 m_resourceSpecHasBeenSet = true;
270 m_resourceSpec = std::forward<ResourceSpecT>(value);
271 }
272 template <typename ResourceSpecT = ResourceSpec>
273 DescribeAppResult& WithResourceSpec(ResourceSpecT&& value) {
274 SetResourceSpec(std::forward<ResourceSpecT>(value));
275 return *this;
276 }
278
280
284 inline const Aws::String& GetBuiltInLifecycleConfigArn() const { return m_builtInLifecycleConfigArn; }
285 template <typename BuiltInLifecycleConfigArnT = Aws::String>
286 void SetBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT&& value) {
287 m_builtInLifecycleConfigArnHasBeenSet = true;
288 m_builtInLifecycleConfigArn = std::forward<BuiltInLifecycleConfigArnT>(value);
289 }
290 template <typename BuiltInLifecycleConfigArnT = Aws::String>
291 DescribeAppResult& WithBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT&& value) {
292 SetBuiltInLifecycleConfigArn(std::forward<BuiltInLifecycleConfigArnT>(value));
293 return *this;
294 }
296
298
299 inline const Aws::String& GetRequestId() const { return m_requestId; }
300 template <typename RequestIdT = Aws::String>
301 void SetRequestId(RequestIdT&& value) {
302 m_requestIdHasBeenSet = true;
303 m_requestId = std::forward<RequestIdT>(value);
304 }
305 template <typename RequestIdT = Aws::String>
306 DescribeAppResult& WithRequestId(RequestIdT&& value) {
307 SetRequestId(std::forward<RequestIdT>(value));
308 return *this;
309 }
311 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
312
313 private:
314 Aws::String m_appArn;
315
316 AppType m_appType{AppType::NOT_SET};
317
318 Aws::String m_appName;
319
320 Aws::String m_domainId;
321
322 Aws::String m_userProfileName;
323
324 Aws::String m_spaceName;
325
327
328 FeatureStatus m_effectiveTrustedIdentityPropagationStatus{FeatureStatus::NOT_SET};
329
330 bool m_recoveryMode{false};
331
332 Aws::Utils::DateTime m_lastHealthCheckTimestamp{};
333
334 Aws::Utils::DateTime m_lastUserActivityTimestamp{};
335
336 Aws::Utils::DateTime m_creationTime{};
337
338 Aws::String m_failureReason;
339
340 ResourceSpec m_resourceSpec;
341
342 Aws::String m_builtInLifecycleConfigArn;
343
344 Aws::String m_requestId;
345 Aws::Http::HttpResponseCode m_HttpResponseCode;
346 bool m_appArnHasBeenSet = false;
347 bool m_appTypeHasBeenSet = false;
348 bool m_appNameHasBeenSet = false;
349 bool m_domainIdHasBeenSet = false;
350 bool m_userProfileNameHasBeenSet = false;
351 bool m_spaceNameHasBeenSet = false;
352 bool m_statusHasBeenSet = false;
353 bool m_effectiveTrustedIdentityPropagationStatusHasBeenSet = false;
354 bool m_recoveryModeHasBeenSet = false;
355 bool m_lastHealthCheckTimestampHasBeenSet = false;
356 bool m_lastUserActivityTimestampHasBeenSet = false;
357 bool m_creationTimeHasBeenSet = false;
358 bool m_failureReasonHasBeenSet = false;
359 bool m_resourceSpecHasBeenSet = false;
360 bool m_builtInLifecycleConfigArnHasBeenSet = false;
361 bool m_requestIdHasBeenSet = false;
362};
363
364} // namespace Model
365} // namespace SageMaker
366} // namespace Aws
DescribeAppResult & WithFailureReason(FailureReasonT &&value)
void SetLastUserActivityTimestamp(LastUserActivityTimestampT &&value)
const Aws::Utils::DateTime & GetLastUserActivityTimestamp() const
const ResourceSpec & GetResourceSpec() const
const Aws::String & GetUserProfileName() const
const Aws::Utils::DateTime & GetLastHealthCheckTimestamp() const
DescribeAppResult & WithRecoveryMode(bool value)
DescribeAppResult & WithEffectiveTrustedIdentityPropagationStatus(FeatureStatus value)
DescribeAppResult & WithAppName(AppNameT &&value)
AWS_SAGEMAKER_API DescribeAppResult()=default
DescribeAppResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetDomainId() const
AWS_SAGEMAKER_API DescribeAppResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAppResult & WithAppType(AppType value)
DescribeAppResult & WithBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT &&value)
void SetLastHealthCheckTimestamp(LastHealthCheckTimestampT &&value)
DescribeAppResult & WithCreationTime(CreationTimeT &&value)
void SetEffectiveTrustedIdentityPropagationStatus(FeatureStatus value)
const Aws::String & GetBuiltInLifecycleConfigArn() const
DescribeAppResult & WithLastUserActivityTimestamp(LastUserActivityTimestampT &&value)
DescribeAppResult & WithSpaceName(SpaceNameT &&value)
DescribeAppResult & WithResourceSpec(ResourceSpecT &&value)
DescribeAppResult & WithLastHealthCheckTimestamp(LastHealthCheckTimestampT &&value)
AWS_SAGEMAKER_API DescribeAppResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAppResult & WithAppArn(AppArnT &&value)
void SetResourceSpec(ResourceSpecT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT &&value)
void SetFailureReason(FailureReasonT &&value)
DescribeAppResult & WithUserProfileName(UserProfileNameT &&value)
DescribeAppResult & WithStatus(AppStatus value)
const Aws::String & GetFailureReason() const
void SetUserProfileName(UserProfileNameT &&value)
FeatureStatus GetEffectiveTrustedIdentityPropagationStatus() const
void SetCreationTime(CreationTimeT &&value)
DescribeAppResult & WithDomainId(DomainIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue