AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Project.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ProjectStatus.h>
12#include <aws/sagemaker/model/ServiceCatalogProvisionedProductDetails.h>
13#include <aws/sagemaker/model/ServiceCatalogProvisioningDetails.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/TemplateProviderDetail.h>
16#include <aws/sagemaker/model/UserContext.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker {
28namespace Model {
29
36class Project {
37 public:
38 AWS_SAGEMAKER_API Project() = default;
39 AWS_SAGEMAKER_API Project(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Project& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
48 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
49 template <typename ProjectArnT = Aws::String>
50 void SetProjectArn(ProjectArnT&& value) {
51 m_projectArnHasBeenSet = true;
52 m_projectArn = std::forward<ProjectArnT>(value);
53 }
54 template <typename ProjectArnT = Aws::String>
55 Project& WithProjectArn(ProjectArnT&& value) {
56 SetProjectArn(std::forward<ProjectArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetProjectName() const { return m_projectName; }
66 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
67 template <typename ProjectNameT = Aws::String>
68 void SetProjectName(ProjectNameT&& value) {
69 m_projectNameHasBeenSet = true;
70 m_projectName = std::forward<ProjectNameT>(value);
71 }
72 template <typename ProjectNameT = Aws::String>
73 Project& WithProjectName(ProjectNameT&& value) {
74 SetProjectName(std::forward<ProjectNameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetProjectId() const { return m_projectId; }
84 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
85 template <typename ProjectIdT = Aws::String>
86 void SetProjectId(ProjectIdT&& value) {
87 m_projectIdHasBeenSet = true;
88 m_projectId = std::forward<ProjectIdT>(value);
89 }
90 template <typename ProjectIdT = Aws::String>
91 Project& WithProjectId(ProjectIdT&& value) {
92 SetProjectId(std::forward<ProjectIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetProjectDescription() const { return m_projectDescription; }
102 inline bool ProjectDescriptionHasBeenSet() const { return m_projectDescriptionHasBeenSet; }
103 template <typename ProjectDescriptionT = Aws::String>
104 void SetProjectDescription(ProjectDescriptionT&& value) {
105 m_projectDescriptionHasBeenSet = true;
106 m_projectDescription = std::forward<ProjectDescriptionT>(value);
107 }
108 template <typename ProjectDescriptionT = Aws::String>
109 Project& WithProjectDescription(ProjectDescriptionT&& value) {
110 SetProjectDescription(std::forward<ProjectDescriptionT>(value));
111 return *this;
112 }
114
116
118 return m_serviceCatalogProvisioningDetails;
119 }
120 inline bool ServiceCatalogProvisioningDetailsHasBeenSet() const { return m_serviceCatalogProvisioningDetailsHasBeenSet; }
121 template <typename ServiceCatalogProvisioningDetailsT = ServiceCatalogProvisioningDetails>
122 void SetServiceCatalogProvisioningDetails(ServiceCatalogProvisioningDetailsT&& value) {
123 m_serviceCatalogProvisioningDetailsHasBeenSet = true;
124 m_serviceCatalogProvisioningDetails = std::forward<ServiceCatalogProvisioningDetailsT>(value);
125 }
126 template <typename ServiceCatalogProvisioningDetailsT = ServiceCatalogProvisioningDetails>
127 Project& WithServiceCatalogProvisioningDetails(ServiceCatalogProvisioningDetailsT&& value) {
128 SetServiceCatalogProvisioningDetails(std::forward<ServiceCatalogProvisioningDetailsT>(value));
129 return *this;
130 }
132
134
136 return m_serviceCatalogProvisionedProductDetails;
137 }
138 inline bool ServiceCatalogProvisionedProductDetailsHasBeenSet() const { return m_serviceCatalogProvisionedProductDetailsHasBeenSet; }
139 template <typename ServiceCatalogProvisionedProductDetailsT = ServiceCatalogProvisionedProductDetails>
140 void SetServiceCatalogProvisionedProductDetails(ServiceCatalogProvisionedProductDetailsT&& value) {
141 m_serviceCatalogProvisionedProductDetailsHasBeenSet = true;
142 m_serviceCatalogProvisionedProductDetails = std::forward<ServiceCatalogProvisionedProductDetailsT>(value);
143 }
144 template <typename ServiceCatalogProvisionedProductDetailsT = ServiceCatalogProvisionedProductDetails>
145 Project& WithServiceCatalogProvisionedProductDetails(ServiceCatalogProvisionedProductDetailsT&& value) {
146 SetServiceCatalogProvisionedProductDetails(std::forward<ServiceCatalogProvisionedProductDetailsT>(value));
147 return *this;
148 }
150
152
155 inline ProjectStatus GetProjectStatus() const { return m_projectStatus; }
156 inline bool ProjectStatusHasBeenSet() const { return m_projectStatusHasBeenSet; }
157 inline void SetProjectStatus(ProjectStatus value) {
158 m_projectStatusHasBeenSet = true;
159 m_projectStatus = value;
160 }
162 SetProjectStatus(value);
163 return *this;
164 }
166
168
171 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
172 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
173 template <typename CreatedByT = UserContext>
174 void SetCreatedBy(CreatedByT&& value) {
175 m_createdByHasBeenSet = true;
176 m_createdBy = std::forward<CreatedByT>(value);
177 }
178 template <typename CreatedByT = UserContext>
179 Project& WithCreatedBy(CreatedByT&& value) {
180 SetCreatedBy(std::forward<CreatedByT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
190 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
191 template <typename CreationTimeT = Aws::Utils::DateTime>
192 void SetCreationTime(CreationTimeT&& value) {
193 m_creationTimeHasBeenSet = true;
194 m_creationTime = std::forward<CreationTimeT>(value);
195 }
196 template <typename CreationTimeT = Aws::Utils::DateTime>
197 Project& WithCreationTime(CreationTimeT&& value) {
198 SetCreationTime(std::forward<CreationTimeT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Vector<TemplateProviderDetail>& GetTemplateProviderDetails() const { return m_templateProviderDetails; }
208 inline bool TemplateProviderDetailsHasBeenSet() const { return m_templateProviderDetailsHasBeenSet; }
209 template <typename TemplateProviderDetailsT = Aws::Vector<TemplateProviderDetail>>
210 void SetTemplateProviderDetails(TemplateProviderDetailsT&& value) {
211 m_templateProviderDetailsHasBeenSet = true;
212 m_templateProviderDetails = std::forward<TemplateProviderDetailsT>(value);
213 }
214 template <typename TemplateProviderDetailsT = Aws::Vector<TemplateProviderDetail>>
215 Project& WithTemplateProviderDetails(TemplateProviderDetailsT&& value) {
216 SetTemplateProviderDetails(std::forward<TemplateProviderDetailsT>(value));
217 return *this;
218 }
219 template <typename TemplateProviderDetailsT = TemplateProviderDetail>
220 Project& AddTemplateProviderDetails(TemplateProviderDetailsT&& value) {
221 m_templateProviderDetailsHasBeenSet = true;
222 m_templateProviderDetails.emplace_back(std::forward<TemplateProviderDetailsT>(value));
223 return *this;
224 }
226
228
235 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
236 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
237 template <typename TagsT = Aws::Vector<Tag>>
238 void SetTags(TagsT&& value) {
239 m_tagsHasBeenSet = true;
240 m_tags = std::forward<TagsT>(value);
241 }
242 template <typename TagsT = Aws::Vector<Tag>>
243 Project& WithTags(TagsT&& value) {
244 SetTags(std::forward<TagsT>(value));
245 return *this;
246 }
247 template <typename TagsT = Tag>
248 Project& AddTags(TagsT&& value) {
249 m_tagsHasBeenSet = true;
250 m_tags.emplace_back(std::forward<TagsT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
260 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
261 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
262 void SetLastModifiedTime(LastModifiedTimeT&& value) {
263 m_lastModifiedTimeHasBeenSet = true;
264 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
265 }
266 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
267 Project& WithLastModifiedTime(LastModifiedTimeT&& value) {
268 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
269 return *this;
270 }
272
274
275 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
276 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
277 template <typename LastModifiedByT = UserContext>
278 void SetLastModifiedBy(LastModifiedByT&& value) {
279 m_lastModifiedByHasBeenSet = true;
280 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
281 }
282 template <typename LastModifiedByT = UserContext>
283 Project& WithLastModifiedBy(LastModifiedByT&& value) {
284 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
285 return *this;
286 }
288 private:
289 Aws::String m_projectArn;
290
291 Aws::String m_projectName;
292
293 Aws::String m_projectId;
294
295 Aws::String m_projectDescription;
296
297 ServiceCatalogProvisioningDetails m_serviceCatalogProvisioningDetails;
298
299 ServiceCatalogProvisionedProductDetails m_serviceCatalogProvisionedProductDetails;
300
301 ProjectStatus m_projectStatus{ProjectStatus::NOT_SET};
302
303 UserContext m_createdBy;
304
305 Aws::Utils::DateTime m_creationTime{};
306
307 Aws::Vector<TemplateProviderDetail> m_templateProviderDetails;
308
309 Aws::Vector<Tag> m_tags;
310
311 Aws::Utils::DateTime m_lastModifiedTime{};
312
313 UserContext m_lastModifiedBy;
314 bool m_projectArnHasBeenSet = false;
315 bool m_projectNameHasBeenSet = false;
316 bool m_projectIdHasBeenSet = false;
317 bool m_projectDescriptionHasBeenSet = false;
318 bool m_serviceCatalogProvisioningDetailsHasBeenSet = false;
319 bool m_serviceCatalogProvisionedProductDetailsHasBeenSet = false;
320 bool m_projectStatusHasBeenSet = false;
321 bool m_createdByHasBeenSet = false;
322 bool m_creationTimeHasBeenSet = false;
323 bool m_templateProviderDetailsHasBeenSet = false;
324 bool m_tagsHasBeenSet = false;
325 bool m_lastModifiedTimeHasBeenSet = false;
326 bool m_lastModifiedByHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace SageMaker
331} // namespace Aws
bool ServiceCatalogProvisionedProductDetailsHasBeenSet() const
Definition Project.h:138
Project & WithTemplateProviderDetails(TemplateProviderDetailsT &&value)
Definition Project.h:215
Project & WithServiceCatalogProvisioningDetails(ServiceCatalogProvisioningDetailsT &&value)
Definition Project.h:127
const Aws::String & GetProjectDescription() const
Definition Project.h:101
bool CreatedByHasBeenSet() const
Definition Project.h:172
const Aws::Vector< Tag > & GetTags() const
Definition Project.h:235
const Aws::String & GetProjectId() const
Definition Project.h:83
Project & WithProjectStatus(ProjectStatus value)
Definition Project.h:161
bool ProjectStatusHasBeenSet() const
Definition Project.h:156
Project & AddTemplateProviderDetails(TemplateProviderDetailsT &&value)
Definition Project.h:220
bool ProjectArnHasBeenSet() const
Definition Project.h:48
bool ProjectDescriptionHasBeenSet() const
Definition Project.h:102
Project & WithCreationTime(CreationTimeT &&value)
Definition Project.h:197
const ServiceCatalogProvisionedProductDetails & GetServiceCatalogProvisionedProductDetails() const
Definition Project.h:135
const ServiceCatalogProvisioningDetails & GetServiceCatalogProvisioningDetails() const
Definition Project.h:117
void SetCreatedBy(CreatedByT &&value)
Definition Project.h:174
AWS_SAGEMAKER_API Project(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Project.h:278
void SetProjectDescription(ProjectDescriptionT &&value)
Definition Project.h:104
AWS_SAGEMAKER_API Project & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(TagsT &&value)
Definition Project.h:238
Project & WithProjectDescription(ProjectDescriptionT &&value)
Definition Project.h:109
Project & WithServiceCatalogProvisionedProductDetails(ServiceCatalogProvisionedProductDetailsT &&value)
Definition Project.h:145
void SetCreationTime(CreationTimeT &&value)
Definition Project.h:192
Project & WithProjectName(ProjectNameT &&value)
Definition Project.h:73
void SetProjectName(ProjectNameT &&value)
Definition Project.h:68
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Project.h:259
const Aws::Vector< TemplateProviderDetail > & GetTemplateProviderDetails() const
Definition Project.h:207
AWS_SAGEMAKER_API Project()=default
bool LastModifiedTimeHasBeenSet() const
Definition Project.h:260
void SetTemplateProviderDetails(TemplateProviderDetailsT &&value)
Definition Project.h:210
Project & WithTags(TagsT &&value)
Definition Project.h:243
void SetServiceCatalogProvisioningDetails(ServiceCatalogProvisioningDetailsT &&value)
Definition Project.h:122
void SetProjectId(ProjectIdT &&value)
Definition Project.h:86
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Project.h:262
Project & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Project.h:267
ProjectStatus GetProjectStatus() const
Definition Project.h:155
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Project & WithCreatedBy(CreatedByT &&value)
Definition Project.h:179
const Aws::String & GetProjectArn() const
Definition Project.h:47
const UserContext & GetLastModifiedBy() const
Definition Project.h:275
bool CreationTimeHasBeenSet() const
Definition Project.h:190
const Aws::Utils::DateTime & GetCreationTime() const
Definition Project.h:189
void SetProjectStatus(ProjectStatus value)
Definition Project.h:157
bool LastModifiedByHasBeenSet() const
Definition Project.h:276
void SetProjectArn(ProjectArnT &&value)
Definition Project.h:50
bool ProjectNameHasBeenSet() const
Definition Project.h:66
bool ServiceCatalogProvisioningDetailsHasBeenSet() const
Definition Project.h:120
Project & WithProjectArn(ProjectArnT &&value)
Definition Project.h:55
const UserContext & GetCreatedBy() const
Definition Project.h:171
void SetServiceCatalogProvisionedProductDetails(ServiceCatalogProvisionedProductDetailsT &&value)
Definition Project.h:140
Project & AddTags(TagsT &&value)
Definition Project.h:248
bool ProjectIdHasBeenSet() const
Definition Project.h:84
bool TemplateProviderDetailsHasBeenSet() const
Definition Project.h:208
Project & WithLastModifiedBy(LastModifiedByT &&value)
Definition Project.h:283
Project & WithProjectId(ProjectIdT &&value)
Definition Project.h:91
const Aws::String & GetProjectName() const
Definition Project.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue