AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetProjectResult.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 GetProjectResult() = default;
36
38
41 inline const Aws::String& GetDomainId() const { return m_domainId; }
42 template <typename DomainIdT = Aws::String>
43 void SetDomainId(DomainIdT&& value) {
44 m_domainIdHasBeenSet = true;
45 m_domainId = std::forward<DomainIdT>(value);
46 }
47 template <typename DomainIdT = Aws::String>
48 GetProjectResult& WithDomainId(DomainIdT&& value) {
49 SetDomainId(std::forward<DomainIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetId() const { return m_id; }
59 template <typename IdT = Aws::String>
60 void SetId(IdT&& value) {
61 m_idHasBeenSet = true;
62 m_id = std::forward<IdT>(value);
63 }
64 template <typename IdT = Aws::String>
65 GetProjectResult& WithId(IdT&& value) {
66 SetId(std::forward<IdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
82 GetProjectResult& WithName(NameT&& value) {
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
99 GetProjectResult& WithDescription(DescriptionT&& value) {
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline ProjectStatus GetProjectStatus() const { return m_projectStatus; }
110 inline void SetProjectStatus(ProjectStatus value) {
111 m_projectStatusHasBeenSet = true;
112 m_projectStatus = value;
113 }
115 SetProjectStatus(value);
116 return *this;
117 }
119
121
125 inline const Aws::Vector<ProjectDeletionError>& GetFailureReasons() const { return m_failureReasons; }
126 template <typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
127 void SetFailureReasons(FailureReasonsT&& value) {
128 m_failureReasonsHasBeenSet = true;
129 m_failureReasons = std::forward<FailureReasonsT>(value);
130 }
131 template <typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
132 GetProjectResult& WithFailureReasons(FailureReasonsT&& value) {
133 SetFailureReasons(std::forward<FailureReasonsT>(value));
134 return *this;
135 }
136 template <typename FailureReasonsT = ProjectDeletionError>
137 GetProjectResult& AddFailureReasons(FailureReasonsT&& value) {
138 m_failureReasonsHasBeenSet = true;
139 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
149 template <typename CreatedByT = Aws::String>
150 void SetCreatedBy(CreatedByT&& value) {
151 m_createdByHasBeenSet = true;
152 m_createdBy = std::forward<CreatedByT>(value);
153 }
154 template <typename CreatedByT = Aws::String>
155 GetProjectResult& WithCreatedBy(CreatedByT&& value) {
156 SetCreatedBy(std::forward<CreatedByT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
166 template <typename CreatedAtT = Aws::Utils::DateTime>
167 void SetCreatedAt(CreatedAtT&& value) {
168 m_createdAtHasBeenSet = true;
169 m_createdAt = std::forward<CreatedAtT>(value);
170 }
171 template <typename CreatedAtT = Aws::Utils::DateTime>
172 GetProjectResult& WithCreatedAt(CreatedAtT&& value) {
173 SetCreatedAt(std::forward<CreatedAtT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
183 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
184 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
185 m_lastUpdatedAtHasBeenSet = true;
186 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
187 }
188 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
189 GetProjectResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
190 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
200 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
201 void SetResourceTags(ResourceTagsT&& value) {
202 m_resourceTagsHasBeenSet = true;
203 m_resourceTags = std::forward<ResourceTagsT>(value);
204 }
205 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
206 GetProjectResult& WithResourceTags(ResourceTagsT&& value) {
207 SetResourceTags(std::forward<ResourceTagsT>(value));
208 return *this;
209 }
210 template <typename ResourceTagsT = ResourceTag>
211 GetProjectResult& AddResourceTags(ResourceTagsT&& value) {
212 m_resourceTagsHasBeenSet = true;
213 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
223 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
224 void SetGlossaryTerms(GlossaryTermsT&& value) {
225 m_glossaryTermsHasBeenSet = true;
226 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
227 }
228 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
229 GetProjectResult& WithGlossaryTerms(GlossaryTermsT&& value) {
230 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
231 return *this;
232 }
233 template <typename GlossaryTermsT = Aws::String>
234 GetProjectResult& AddGlossaryTerms(GlossaryTermsT&& value) {
235 m_glossaryTermsHasBeenSet = true;
236 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
246 template <typename DomainUnitIdT = Aws::String>
247 void SetDomainUnitId(DomainUnitIdT&& value) {
248 m_domainUnitIdHasBeenSet = true;
249 m_domainUnitId = std::forward<DomainUnitIdT>(value);
250 }
251 template <typename DomainUnitIdT = Aws::String>
252 GetProjectResult& WithDomainUnitId(DomainUnitIdT&& value) {
253 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::String& GetProjectProfileId() const { return m_projectProfileId; }
263 template <typename ProjectProfileIdT = Aws::String>
264 void SetProjectProfileId(ProjectProfileIdT&& value) {
265 m_projectProfileIdHasBeenSet = true;
266 m_projectProfileId = std::forward<ProjectProfileIdT>(value);
267 }
268 template <typename ProjectProfileIdT = Aws::String>
269 GetProjectResult& WithProjectProfileId(ProjectProfileIdT&& value) {
270 SetProjectProfileId(std::forward<ProjectProfileIdT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::Vector<EnvironmentConfigurationUserParameter>& GetUserParameters() const { return m_userParameters; }
280 template <typename UserParametersT = Aws::Vector<EnvironmentConfigurationUserParameter>>
281 void SetUserParameters(UserParametersT&& value) {
282 m_userParametersHasBeenSet = true;
283 m_userParameters = std::forward<UserParametersT>(value);
284 }
285 template <typename UserParametersT = Aws::Vector<EnvironmentConfigurationUserParameter>>
286 GetProjectResult& WithUserParameters(UserParametersT&& value) {
287 SetUserParameters(std::forward<UserParametersT>(value));
288 return *this;
289 }
290 template <typename UserParametersT = EnvironmentConfigurationUserParameter>
291 GetProjectResult& AddUserParameters(UserParametersT&& value) {
292 m_userParametersHasBeenSet = true;
293 m_userParameters.emplace_back(std::forward<UserParametersT>(value));
294 return *this;
295 }
297
299
302 inline const EnvironmentDeploymentDetails& GetEnvironmentDeploymentDetails() const { return m_environmentDeploymentDetails; }
303 template <typename EnvironmentDeploymentDetailsT = EnvironmentDeploymentDetails>
304 void SetEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT&& value) {
305 m_environmentDeploymentDetailsHasBeenSet = true;
306 m_environmentDeploymentDetails = std::forward<EnvironmentDeploymentDetailsT>(value);
307 }
308 template <typename EnvironmentDeploymentDetailsT = EnvironmentDeploymentDetails>
309 GetProjectResult& WithEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT&& value) {
310 SetEnvironmentDeploymentDetails(std::forward<EnvironmentDeploymentDetailsT>(value));
311 return *this;
312 }
314
316
317 inline const Aws::String& GetRequestId() const { return m_requestId; }
318 template <typename RequestIdT = Aws::String>
319 void SetRequestId(RequestIdT&& value) {
320 m_requestIdHasBeenSet = true;
321 m_requestId = std::forward<RequestIdT>(value);
322 }
323 template <typename RequestIdT = Aws::String>
324 GetProjectResult& WithRequestId(RequestIdT&& value) {
325 SetRequestId(std::forward<RequestIdT>(value));
326 return *this;
327 }
329 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
330
331 private:
332 Aws::String m_domainId;
333
334 Aws::String m_id;
335
336 Aws::String m_name;
337
338 Aws::String m_description;
339
340 ProjectStatus m_projectStatus{ProjectStatus::NOT_SET};
341
342 Aws::Vector<ProjectDeletionError> m_failureReasons;
343
344 Aws::String m_createdBy;
345
346 Aws::Utils::DateTime m_createdAt{};
347
348 Aws::Utils::DateTime m_lastUpdatedAt{};
349
350 Aws::Vector<ResourceTag> m_resourceTags;
351
352 Aws::Vector<Aws::String> m_glossaryTerms;
353
354 Aws::String m_domainUnitId;
355
356 Aws::String m_projectProfileId;
357
359
360 EnvironmentDeploymentDetails m_environmentDeploymentDetails;
361
362 Aws::String m_requestId;
363 Aws::Http::HttpResponseCode m_HttpResponseCode;
364 bool m_domainIdHasBeenSet = false;
365 bool m_idHasBeenSet = false;
366 bool m_nameHasBeenSet = false;
367 bool m_descriptionHasBeenSet = false;
368 bool m_projectStatusHasBeenSet = false;
369 bool m_failureReasonsHasBeenSet = false;
370 bool m_createdByHasBeenSet = false;
371 bool m_createdAtHasBeenSet = false;
372 bool m_lastUpdatedAtHasBeenSet = false;
373 bool m_resourceTagsHasBeenSet = false;
374 bool m_glossaryTermsHasBeenSet = false;
375 bool m_domainUnitIdHasBeenSet = false;
376 bool m_projectProfileIdHasBeenSet = false;
377 bool m_userParametersHasBeenSet = false;
378 bool m_environmentDeploymentDetailsHasBeenSet = false;
379 bool m_requestIdHasBeenSet = false;
380};
381
382} // namespace Model
383} // namespace DataZone
384} // namespace Aws
const EnvironmentDeploymentDetails & GetEnvironmentDeploymentDetails() const
void SetFailureReasons(FailureReasonsT &&value)
void SetDomainUnitId(DomainUnitIdT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
GetProjectResult & AddResourceTags(ResourceTagsT &&value)
GetProjectResult & WithProjectStatus(ProjectStatus value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
GetProjectResult & WithProjectProfileId(ProjectProfileIdT &&value)
void SetProjectStatus(ProjectStatus value)
void SetGlossaryTerms(GlossaryTermsT &&value)
GetProjectResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetProjectResult & WithGlossaryTerms(GlossaryTermsT &&value)
GetProjectResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetName() const
const Aws::String & GetRequestId() const
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
const Aws::String & GetProjectProfileId() const
GetProjectResult & WithDomainUnitId(DomainUnitIdT &&value)
AWS_DATAZONE_API GetProjectResult()=default
const Aws::String & GetDomainUnitId() const
GetProjectResult & AddFailureReasons(FailureReasonsT &&value)
GetProjectResult & WithName(NameT &&value)
const Aws::String & GetDomainId() const
GetProjectResult & WithDomainId(DomainIdT &&value)
GetProjectResult & WithResourceTags(ResourceTagsT &&value)
void SetUserParameters(UserParametersT &&value)
GetProjectResult & WithDescription(DescriptionT &&value)
GetProjectResult & WithCreatedBy(CreatedByT &&value)
GetProjectResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetId() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetResourceTags(ResourceTagsT &&value)
GetProjectResult & WithFailureReasons(FailureReasonsT &&value)
const Aws::String & GetCreatedBy() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_DATAZONE_API GetProjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< EnvironmentConfigurationUserParameter > & GetUserParameters() const
const Aws::Vector< ProjectDeletionError > & GetFailureReasons() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDescription(DescriptionT &&value)
AWS_DATAZONE_API GetProjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetProjectProfileId(ProjectProfileIdT &&value)
GetProjectResult & WithId(IdT &&value)
GetProjectResult & WithUserParameters(UserParametersT &&value)
GetProjectResult & WithEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT &&value)
const Aws::String & GetDescription() const
GetProjectResult & AddUserParameters(UserParametersT &&value)
void SetEnvironmentDeploymentDetails(EnvironmentDeploymentDetailsT &&value)
GetProjectResult & AddGlossaryTerms(GlossaryTermsT &&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