AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeAppResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/AppStatus.h>
11#include <aws/sagemaker/model/AppType.h>
12#include <aws/sagemaker/model/FeatureStatus.h>
13#include <aws/sagemaker/model/ResourceSpec.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 SageMaker {
27namespace Model {
29 public:
30 AWS_SAGEMAKER_API DescribeAppResult() = default;
33
35
38 inline const Aws::String& GetAppArn() const { return m_appArn; }
39 template <typename AppArnT = Aws::String>
40 void SetAppArn(AppArnT&& value) {
41 m_appArnHasBeenSet = true;
42 m_appArn = std::forward<AppArnT>(value);
43 }
44 template <typename AppArnT = Aws::String>
45 DescribeAppResult& WithAppArn(AppArnT&& value) {
46 SetAppArn(std::forward<AppArnT>(value));
47 return *this;
48 }
50
52
55 inline AppType GetAppType() const { return m_appType; }
56 inline void SetAppType(AppType value) {
57 m_appTypeHasBeenSet = true;
58 m_appType = value;
59 }
61 SetAppType(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetAppName() const { return m_appName; }
71 template <typename AppNameT = Aws::String>
72 void SetAppName(AppNameT&& value) {
73 m_appNameHasBeenSet = true;
74 m_appName = std::forward<AppNameT>(value);
75 }
76 template <typename AppNameT = Aws::String>
77 DescribeAppResult& WithAppName(AppNameT&& value) {
78 SetAppName(std::forward<AppNameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDomainId() const { return m_domainId; }
88 template <typename DomainIdT = Aws::String>
89 void SetDomainId(DomainIdT&& value) {
90 m_domainIdHasBeenSet = true;
91 m_domainId = std::forward<DomainIdT>(value);
92 }
93 template <typename DomainIdT = Aws::String>
94 DescribeAppResult& WithDomainId(DomainIdT&& value) {
95 SetDomainId(std::forward<DomainIdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetUserProfileName() const { return m_userProfileName; }
105 template <typename UserProfileNameT = Aws::String>
106 void SetUserProfileName(UserProfileNameT&& value) {
107 m_userProfileNameHasBeenSet = true;
108 m_userProfileName = std::forward<UserProfileNameT>(value);
109 }
110 template <typename UserProfileNameT = Aws::String>
111 DescribeAppResult& WithUserProfileName(UserProfileNameT&& value) {
112 SetUserProfileName(std::forward<UserProfileNameT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
123 template <typename SpaceNameT = Aws::String>
124 void SetSpaceName(SpaceNameT&& value) {
125 m_spaceNameHasBeenSet = true;
126 m_spaceName = std::forward<SpaceNameT>(value);
127 }
128 template <typename SpaceNameT = Aws::String>
129 DescribeAppResult& WithSpaceName(SpaceNameT&& value) {
130 SetSpaceName(std::forward<SpaceNameT>(value));
131 return *this;
132 }
134
136
139 inline AppStatus GetStatus() const { return m_status; }
140 inline void SetStatus(AppStatus value) {
141 m_statusHasBeenSet = true;
142 m_status = value;
143 }
145 SetStatus(value);
146 return *this;
147 }
149
151
157 inline FeatureStatus GetEffectiveTrustedIdentityPropagationStatus() const { return m_effectiveTrustedIdentityPropagationStatus; }
159 m_effectiveTrustedIdentityPropagationStatusHasBeenSet = true;
160 m_effectiveTrustedIdentityPropagationStatus = value;
161 }
164 return *this;
165 }
167
169
172 inline bool GetRecoveryMode() const { return m_recoveryMode; }
173 inline void SetRecoveryMode(bool value) {
174 m_recoveryModeHasBeenSet = true;
175 m_recoveryMode = value;
176 }
178 SetRecoveryMode(value);
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetLastHealthCheckTimestamp() const { return m_lastHealthCheckTimestamp; }
188 template <typename LastHealthCheckTimestampT = Aws::Utils::DateTime>
189 void SetLastHealthCheckTimestamp(LastHealthCheckTimestampT&& value) {
190 m_lastHealthCheckTimestampHasBeenSet = true;
191 m_lastHealthCheckTimestamp = std::forward<LastHealthCheckTimestampT>(value);
192 }
193 template <typename LastHealthCheckTimestampT = Aws::Utils::DateTime>
194 DescribeAppResult& WithLastHealthCheckTimestamp(LastHealthCheckTimestampT&& value) {
195 SetLastHealthCheckTimestamp(std::forward<LastHealthCheckTimestampT>(value));
196 return *this;
197 }
199
201
207 inline const Aws::Utils::DateTime& GetLastUserActivityTimestamp() const { return m_lastUserActivityTimestamp; }
208 template <typename LastUserActivityTimestampT = Aws::Utils::DateTime>
209 void SetLastUserActivityTimestamp(LastUserActivityTimestampT&& value) {
210 m_lastUserActivityTimestampHasBeenSet = true;
211 m_lastUserActivityTimestamp = std::forward<LastUserActivityTimestampT>(value);
212 }
213 template <typename LastUserActivityTimestampT = Aws::Utils::DateTime>
214 DescribeAppResult& WithLastUserActivityTimestamp(LastUserActivityTimestampT&& value) {
215 SetLastUserActivityTimestamp(std::forward<LastUserActivityTimestampT>(value));
216 return *this;
217 }
219
221
230 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
231 template <typename CreationTimeT = Aws::Utils::DateTime>
232 void SetCreationTime(CreationTimeT&& value) {
233 m_creationTimeHasBeenSet = true;
234 m_creationTime = std::forward<CreationTimeT>(value);
235 }
236 template <typename CreationTimeT = Aws::Utils::DateTime>
237 DescribeAppResult& WithCreationTime(CreationTimeT&& value) {
238 SetCreationTime(std::forward<CreationTimeT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
248 template <typename FailureReasonT = Aws::String>
249 void SetFailureReason(FailureReasonT&& value) {
250 m_failureReasonHasBeenSet = true;
251 m_failureReason = std::forward<FailureReasonT>(value);
252 }
253 template <typename FailureReasonT = Aws::String>
254 DescribeAppResult& WithFailureReason(FailureReasonT&& value) {
255 SetFailureReason(std::forward<FailureReasonT>(value));
256 return *this;
257 }
259
261
265 inline const ResourceSpec& GetResourceSpec() const { return m_resourceSpec; }
266 template <typename ResourceSpecT = ResourceSpec>
267 void SetResourceSpec(ResourceSpecT&& value) {
268 m_resourceSpecHasBeenSet = true;
269 m_resourceSpec = std::forward<ResourceSpecT>(value);
270 }
271 template <typename ResourceSpecT = ResourceSpec>
272 DescribeAppResult& WithResourceSpec(ResourceSpecT&& value) {
273 SetResourceSpec(std::forward<ResourceSpecT>(value));
274 return *this;
275 }
277
279
283 inline const Aws::String& GetBuiltInLifecycleConfigArn() const { return m_builtInLifecycleConfigArn; }
284 template <typename BuiltInLifecycleConfigArnT = Aws::String>
285 void SetBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT&& value) {
286 m_builtInLifecycleConfigArnHasBeenSet = true;
287 m_builtInLifecycleConfigArn = std::forward<BuiltInLifecycleConfigArnT>(value);
288 }
289 template <typename BuiltInLifecycleConfigArnT = Aws::String>
290 DescribeAppResult& WithBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT&& value) {
291 SetBuiltInLifecycleConfigArn(std::forward<BuiltInLifecycleConfigArnT>(value));
292 return *this;
293 }
295
297
298 inline const Aws::String& GetRequestId() const { return m_requestId; }
299 template <typename RequestIdT = Aws::String>
300 void SetRequestId(RequestIdT&& value) {
301 m_requestIdHasBeenSet = true;
302 m_requestId = std::forward<RequestIdT>(value);
303 }
304 template <typename RequestIdT = Aws::String>
305 DescribeAppResult& WithRequestId(RequestIdT&& value) {
306 SetRequestId(std::forward<RequestIdT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_appArn;
312
313 AppType m_appType{AppType::NOT_SET};
314
315 Aws::String m_appName;
316
317 Aws::String m_domainId;
318
319 Aws::String m_userProfileName;
320
321 Aws::String m_spaceName;
322
324
325 FeatureStatus m_effectiveTrustedIdentityPropagationStatus{FeatureStatus::NOT_SET};
326
327 bool m_recoveryMode{false};
328
329 Aws::Utils::DateTime m_lastHealthCheckTimestamp{};
330
331 Aws::Utils::DateTime m_lastUserActivityTimestamp{};
332
333 Aws::Utils::DateTime m_creationTime{};
334
335 Aws::String m_failureReason;
336
337 ResourceSpec m_resourceSpec;
338
339 Aws::String m_builtInLifecycleConfigArn;
340
341 Aws::String m_requestId;
342 bool m_appArnHasBeenSet = false;
343 bool m_appTypeHasBeenSet = false;
344 bool m_appNameHasBeenSet = false;
345 bool m_domainIdHasBeenSet = false;
346 bool m_userProfileNameHasBeenSet = false;
347 bool m_spaceNameHasBeenSet = false;
348 bool m_statusHasBeenSet = false;
349 bool m_effectiveTrustedIdentityPropagationStatusHasBeenSet = false;
350 bool m_recoveryModeHasBeenSet = false;
351 bool m_lastHealthCheckTimestampHasBeenSet = false;
352 bool m_lastUserActivityTimestampHasBeenSet = false;
353 bool m_creationTimeHasBeenSet = false;
354 bool m_failureReasonHasBeenSet = false;
355 bool m_resourceSpecHasBeenSet = false;
356 bool m_builtInLifecycleConfigArnHasBeenSet = false;
357 bool m_requestIdHasBeenSet = false;
358};
359
360} // namespace Model
361} // namespace SageMaker
362} // 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)
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