AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateProjectResult.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/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/EnvironmentConfigurationUserParameter.h>
13#include <aws/datazone/model/EnvironmentDeploymentDetails.h>
14#include <aws/datazone/model/ProjectDeletionError.h>
15#include <aws/datazone/model/ProjectStatus.h>
16#include <aws/datazone/model/ResourceTag.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DataZone {
30namespace Model {
32 public:
33 AWS_DATAZONE_API CreateProjectResult() = default;
36
38
42 inline const Aws::String& GetDomainId() const { return m_domainId; }
43 template <typename DomainIdT = Aws::String>
44 void SetDomainId(DomainIdT&& value) {
45 m_domainIdHasBeenSet = true;
46 m_domainId = std::forward<DomainIdT>(value);
47 }
48 template <typename DomainIdT = Aws::String>
49 CreateProjectResult& WithDomainId(DomainIdT&& value) {
50 SetDomainId(std::forward<DomainIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 template <typename IdT = Aws::String>
61 void SetId(IdT&& value) {
62 m_idHasBeenSet = true;
63 m_id = std::forward<IdT>(value);
64 }
65 template <typename IdT = Aws::String>
67 SetId(std::forward<IdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 CreateProjectResult& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 CreateProjectResult& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline ProjectStatus GetProjectStatus() const { return m_projectStatus; }
111 inline void SetProjectStatus(ProjectStatus value) {
112 m_projectStatusHasBeenSet = true;
113 m_projectStatus = value;
114 }
116 SetProjectStatus(value);
117 return *this;
118 }
120
122
126 inline const Aws::Vector<ProjectDeletionError>& GetFailureReasons() const { return m_failureReasons; }
127 template <typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
128 void SetFailureReasons(FailureReasonsT&& value) {
129 m_failureReasonsHasBeenSet = true;
130 m_failureReasons = std::forward<FailureReasonsT>(value);
131 }
132 template <typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
133 CreateProjectResult& WithFailureReasons(FailureReasonsT&& value) {
134 SetFailureReasons(std::forward<FailureReasonsT>(value));
135 return *this;
136 }
137 template <typename FailureReasonsT = ProjectDeletionError>
138 CreateProjectResult& AddFailureReasons(FailureReasonsT&& value) {
139 m_failureReasonsHasBeenSet = true;
140 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
150 template <typename CreatedByT = Aws::String>
151 void SetCreatedBy(CreatedByT&& value) {
152 m_createdByHasBeenSet = true;
153 m_createdBy = std::forward<CreatedByT>(value);
154 }
155 template <typename CreatedByT = Aws::String>
156 CreateProjectResult& WithCreatedBy(CreatedByT&& value) {
157 SetCreatedBy(std::forward<CreatedByT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
167 template <typename CreatedAtT = Aws::Utils::DateTime>
168 void SetCreatedAt(CreatedAtT&& value) {
169 m_createdAtHasBeenSet = true;
170 m_createdAt = std::forward<CreatedAtT>(value);
171 }
172 template <typename CreatedAtT = Aws::Utils::DateTime>
173 CreateProjectResult& WithCreatedAt(CreatedAtT&& value) {
174 SetCreatedAt(std::forward<CreatedAtT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
184 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
185 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
186 m_lastUpdatedAtHasBeenSet = true;
187 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
188 }
189 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
190 CreateProjectResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
191 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
201 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
202 void SetResourceTags(ResourceTagsT&& value) {
203 m_resourceTagsHasBeenSet = true;
204 m_resourceTags = std::forward<ResourceTagsT>(value);
205 }
206 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
207 CreateProjectResult& WithResourceTags(ResourceTagsT&& value) {
208 SetResourceTags(std::forward<ResourceTagsT>(value));
209 return *this;
210 }
211 template <typename ResourceTagsT = ResourceTag>
212 CreateProjectResult& AddResourceTags(ResourceTagsT&& value) {
213 m_resourceTagsHasBeenSet = true;
214 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
224 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
225 void SetGlossaryTerms(GlossaryTermsT&& value) {
226 m_glossaryTermsHasBeenSet = true;
227 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
228 }
229 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
230 CreateProjectResult& WithGlossaryTerms(GlossaryTermsT&& value) {
231 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
232 return *this;
233 }
234 template <typename GlossaryTermsT = Aws::String>
235 CreateProjectResult& AddGlossaryTerms(GlossaryTermsT&& value) {
236 m_glossaryTermsHasBeenSet = true;
237 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
247 template <typename DomainUnitIdT = Aws::String>
248 void SetDomainUnitId(DomainUnitIdT&& value) {
249 m_domainUnitIdHasBeenSet = true;
250 m_domainUnitId = std::forward<DomainUnitIdT>(value);
251 }
252 template <typename DomainUnitIdT = Aws::String>
253 CreateProjectResult& WithDomainUnitId(DomainUnitIdT&& value) {
254 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::String& GetProjectProfileId() const { return m_projectProfileId; }
264 template <typename ProjectProfileIdT = Aws::String>
265 void SetProjectProfileId(ProjectProfileIdT&& value) {
266 m_projectProfileIdHasBeenSet = true;
267 m_projectProfileId = std::forward<ProjectProfileIdT>(value);
268 }
269 template <typename ProjectProfileIdT = Aws::String>
270 CreateProjectResult& WithProjectProfileId(ProjectProfileIdT&& value) {
271 SetProjectProfileId(std::forward<ProjectProfileIdT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Vector<EnvironmentConfigurationUserParameter>& GetUserParameters() const { return m_userParameters; }
281 template <typename UserParametersT = Aws::Vector<EnvironmentConfigurationUserParameter>>
282 void SetUserParameters(UserParametersT&& value) {
283 m_userParametersHasBeenSet = true;
284 m_userParameters = std::forward<UserParametersT>(value);
285 }
286 template <typename UserParametersT = Aws::Vector<EnvironmentConfigurationUserParameter>>
287 CreateProjectResult& WithUserParameters(UserParametersT&& value) {
288 SetUserParameters(std::forward<UserParametersT>(value));
289 return *this;
290 }
291 template <typename UserParametersT = EnvironmentConfigurationUserParameter>
292 CreateProjectResult& AddUserParameters(UserParametersT&& value) {
293 m_userParametersHasBeenSet = true;
294 m_userParameters.emplace_back(std::forward<UserParametersT>(value));
295 return *this;
296 }
298
300
303 inline const EnvironmentDeploymentDetails& GetEnvironmentDeploymentDetails() const { return m_environmentDeploymentDetails; }
304 template <typename EnvironmentDeploymentDetailsT = EnvironmentDeploymentDetails>
305 void SetEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT&& value) {
306 m_environmentDeploymentDetailsHasBeenSet = true;
307 m_environmentDeploymentDetails = std::forward<EnvironmentDeploymentDetailsT>(value);
308 }
309 template <typename EnvironmentDeploymentDetailsT = EnvironmentDeploymentDetails>
310 CreateProjectResult& WithEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT&& value) {
311 SetEnvironmentDeploymentDetails(std::forward<EnvironmentDeploymentDetailsT>(value));
312 return *this;
313 }
315
317
318 inline const Aws::String& GetRequestId() const { return m_requestId; }
319 template <typename RequestIdT = Aws::String>
320 void SetRequestId(RequestIdT&& value) {
321 m_requestIdHasBeenSet = true;
322 m_requestId = std::forward<RequestIdT>(value);
323 }
324 template <typename RequestIdT = Aws::String>
325 CreateProjectResult& WithRequestId(RequestIdT&& value) {
326 SetRequestId(std::forward<RequestIdT>(value));
327 return *this;
328 }
330 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
331
332 private:
333 Aws::String m_domainId;
334
335 Aws::String m_id;
336
337 Aws::String m_name;
338
339 Aws::String m_description;
340
341 ProjectStatus m_projectStatus{ProjectStatus::NOT_SET};
342
343 Aws::Vector<ProjectDeletionError> m_failureReasons;
344
345 Aws::String m_createdBy;
346
347 Aws::Utils::DateTime m_createdAt{};
348
349 Aws::Utils::DateTime m_lastUpdatedAt{};
350
351 Aws::Vector<ResourceTag> m_resourceTags;
352
353 Aws::Vector<Aws::String> m_glossaryTerms;
354
355 Aws::String m_domainUnitId;
356
357 Aws::String m_projectProfileId;
358
360
361 EnvironmentDeploymentDetails m_environmentDeploymentDetails;
362
363 Aws::String m_requestId;
364 Aws::Http::HttpResponseCode m_HttpResponseCode;
365 bool m_domainIdHasBeenSet = false;
366 bool m_idHasBeenSet = false;
367 bool m_nameHasBeenSet = false;
368 bool m_descriptionHasBeenSet = false;
369 bool m_projectStatusHasBeenSet = false;
370 bool m_failureReasonsHasBeenSet = false;
371 bool m_createdByHasBeenSet = false;
372 bool m_createdAtHasBeenSet = false;
373 bool m_lastUpdatedAtHasBeenSet = false;
374 bool m_resourceTagsHasBeenSet = false;
375 bool m_glossaryTermsHasBeenSet = false;
376 bool m_domainUnitIdHasBeenSet = false;
377 bool m_projectProfileIdHasBeenSet = false;
378 bool m_userParametersHasBeenSet = false;
379 bool m_environmentDeploymentDetailsHasBeenSet = false;
380 bool m_requestIdHasBeenSet = false;
381};
382
383} // namespace Model
384} // namespace DataZone
385} // namespace Aws
AWS_DATAZONE_API CreateProjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateProjectResult & WithRequestId(RequestIdT &&value)
void SetEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
CreateProjectResult & AddResourceTags(ResourceTagsT &&value)
AWS_DATAZONE_API CreateProjectResult()=default
void SetFailureReasons(FailureReasonsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetGlossaryTerms(GlossaryTermsT &&value)
CreateProjectResult & WithProjectProfileId(ProjectProfileIdT &&value)
CreateProjectResult & WithDescription(DescriptionT &&value)
CreateProjectResult & WithDomainUnitId(DomainUnitIdT &&value)
void SetProjectProfileId(ProjectProfileIdT &&value)
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
CreateProjectResult & WithCreatedBy(CreatedByT &&value)
CreateProjectResult & WithProjectStatus(ProjectStatus value)
const Aws::String & GetProjectProfileId() const
CreateProjectResult & WithGlossaryTerms(GlossaryTermsT &&value)
CreateProjectResult & WithResourceTags(ResourceTagsT &&value)
const EnvironmentDeploymentDetails & GetEnvironmentDeploymentDetails() const
CreateProjectResult & AddFailureReasons(FailureReasonsT &&value)
AWS_DATAZONE_API CreateProjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateProjectResult & WithUserParameters(UserParametersT &&value)
CreateProjectResult & WithEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetUserParameters(UserParametersT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
const Aws::Vector< EnvironmentConfigurationUserParameter > & GetUserParameters() const
CreateProjectResult & WithFailureReasons(FailureReasonsT &&value)
const Aws::Vector< ProjectDeletionError > & GetFailureReasons() const
CreateProjectResult & AddUserParameters(UserParametersT &&value)
CreateProjectResult & WithDomainId(DomainIdT &&value)
CreateProjectResult & WithId(IdT &&value)
CreateProjectResult & WithCreatedAt(CreatedAtT &&value)
CreateProjectResult & AddGlossaryTerms(GlossaryTermsT &&value)
CreateProjectResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
CreateProjectResult & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue