AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AppDetails.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/ResourceSpec.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
32 public:
33 AWS_SAGEMAKER_API AppDetails() = default;
34 AWS_SAGEMAKER_API AppDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API AppDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDomainId() const { return m_domainId; }
43 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
44 template <typename DomainIdT = Aws::String>
45 void SetDomainId(DomainIdT&& value) {
46 m_domainIdHasBeenSet = true;
47 m_domainId = std::forward<DomainIdT>(value);
48 }
49 template <typename DomainIdT = Aws::String>
50 AppDetails& WithDomainId(DomainIdT&& value) {
51 SetDomainId(std::forward<DomainIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetUserProfileName() const { return m_userProfileName; }
61 inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
62 template <typename UserProfileNameT = Aws::String>
63 void SetUserProfileName(UserProfileNameT&& value) {
64 m_userProfileNameHasBeenSet = true;
65 m_userProfileName = std::forward<UserProfileNameT>(value);
66 }
67 template <typename UserProfileNameT = Aws::String>
68 AppDetails& WithUserProfileName(UserProfileNameT&& value) {
69 SetUserProfileName(std::forward<UserProfileNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
79 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
80 template <typename SpaceNameT = Aws::String>
81 void SetSpaceName(SpaceNameT&& value) {
82 m_spaceNameHasBeenSet = true;
83 m_spaceName = std::forward<SpaceNameT>(value);
84 }
85 template <typename SpaceNameT = Aws::String>
86 AppDetails& WithSpaceName(SpaceNameT&& value) {
87 SetSpaceName(std::forward<SpaceNameT>(value));
88 return *this;
89 }
91
93
96 inline AppType GetAppType() const { return m_appType; }
97 inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; }
98 inline void SetAppType(AppType value) {
99 m_appTypeHasBeenSet = true;
100 m_appType = value;
101 }
103 SetAppType(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetAppName() const { return m_appName; }
113 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
114 template <typename AppNameT = Aws::String>
115 void SetAppName(AppNameT&& value) {
116 m_appNameHasBeenSet = true;
117 m_appName = std::forward<AppNameT>(value);
118 }
119 template <typename AppNameT = Aws::String>
120 AppDetails& WithAppName(AppNameT&& value) {
121 SetAppName(std::forward<AppNameT>(value));
122 return *this;
123 }
125
127
130 inline AppStatus GetStatus() const { return m_status; }
131 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
132 inline void SetStatus(AppStatus value) {
133 m_statusHasBeenSet = true;
134 m_status = value;
135 }
137 SetStatus(value);
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
147 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
148 template <typename CreationTimeT = Aws::Utils::DateTime>
149 void SetCreationTime(CreationTimeT&& value) {
150 m_creationTimeHasBeenSet = true;
151 m_creationTime = std::forward<CreationTimeT>(value);
152 }
153 template <typename CreationTimeT = Aws::Utils::DateTime>
154 AppDetails& WithCreationTime(CreationTimeT&& value) {
155 SetCreationTime(std::forward<CreationTimeT>(value));
156 return *this;
157 }
159
161
162 inline const ResourceSpec& GetResourceSpec() const { return m_resourceSpec; }
163 inline bool ResourceSpecHasBeenSet() const { return m_resourceSpecHasBeenSet; }
164 template <typename ResourceSpecT = ResourceSpec>
165 void SetResourceSpec(ResourceSpecT&& value) {
166 m_resourceSpecHasBeenSet = true;
167 m_resourceSpec = std::forward<ResourceSpecT>(value);
168 }
169 template <typename ResourceSpecT = ResourceSpec>
170 AppDetails& WithResourceSpec(ResourceSpecT&& value) {
171 SetResourceSpec(std::forward<ResourceSpecT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_domainId;
177
178 Aws::String m_userProfileName;
179
180 Aws::String m_spaceName;
181
182 AppType m_appType{AppType::NOT_SET};
183
184 Aws::String m_appName;
185
187
188 Aws::Utils::DateTime m_creationTime{};
189
190 ResourceSpec m_resourceSpec;
191 bool m_domainIdHasBeenSet = false;
192 bool m_userProfileNameHasBeenSet = false;
193 bool m_spaceNameHasBeenSet = false;
194 bool m_appTypeHasBeenSet = false;
195 bool m_appNameHasBeenSet = false;
196 bool m_statusHasBeenSet = false;
197 bool m_creationTimeHasBeenSet = false;
198 bool m_resourceSpecHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace SageMaker
203} // namespace Aws
AppDetails & WithSpaceName(SpaceNameT &&value)
Definition AppDetails.h:86
void SetAppName(AppNameT &&value)
Definition AppDetails.h:115
AppDetails & WithAppType(AppType value)
Definition AppDetails.h:102
AppDetails & WithResourceSpec(ResourceSpecT &&value)
Definition AppDetails.h:170
void SetStatus(AppStatus value)
Definition AppDetails.h:132
AppDetails & WithStatus(AppStatus value)
Definition AppDetails.h:136
AWS_SAGEMAKER_API AppDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUserProfileName() const
Definition AppDetails.h:60
const ResourceSpec & GetResourceSpec() const
Definition AppDetails.h:162
AppDetails & WithCreationTime(CreationTimeT &&value)
Definition AppDetails.h:154
void SetDomainId(DomainIdT &&value)
Definition AppDetails.h:45
void SetSpaceName(SpaceNameT &&value)
Definition AppDetails.h:81
AWS_SAGEMAKER_API AppDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceSpec(ResourceSpecT &&value)
Definition AppDetails.h:165
const Aws::String & GetDomainId() const
Definition AppDetails.h:42
void SetAppType(AppType value)
Definition AppDetails.h:98
const Aws::String & GetSpaceName() const
Definition AppDetails.h:78
AppDetails & WithAppName(AppNameT &&value)
Definition AppDetails.h:120
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API AppDetails()=default
void SetCreationTime(CreationTimeT &&value)
Definition AppDetails.h:149
const Aws::String & GetAppName() const
Definition AppDetails.h:112
AppDetails & WithDomainId(DomainIdT &&value)
Definition AppDetails.h:50
const Aws::Utils::DateTime & GetCreationTime() const
Definition AppDetails.h:146
AppDetails & WithUserProfileName(UserProfileNameT &&value)
Definition AppDetails.h:68
void SetUserProfileName(UserProfileNameT &&value)
Definition AppDetails.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue