AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ProjectSummary.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/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/ProjectDeletionError.h>
12#include <aws/datazone/model/ProjectStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone {
24namespace Model {
25
32 public:
33 AWS_DATAZONE_API ProjectSummary() = default;
34 AWS_DATAZONE_API ProjectSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAZONE_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 ProjectSummary& WithDomainId(DomainIdT&& value) {
51 SetDomainId(std::forward<DomainIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 ProjectSummary& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 ProjectSummary& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 ProjectSummary& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline ProjectStatus GetProjectStatus() const { return m_projectStatus; }
115 inline bool ProjectStatusHasBeenSet() const { return m_projectStatusHasBeenSet; }
116 inline void SetProjectStatus(ProjectStatus value) {
117 m_projectStatusHasBeenSet = true;
118 m_projectStatus = value;
119 }
121 SetProjectStatus(value);
122 return *this;
123 }
125
127
131 inline const Aws::Vector<ProjectDeletionError>& GetFailureReasons() const { return m_failureReasons; }
132 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
133 template <typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
134 void SetFailureReasons(FailureReasonsT&& value) {
135 m_failureReasonsHasBeenSet = true;
136 m_failureReasons = std::forward<FailureReasonsT>(value);
137 }
138 template <typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
139 ProjectSummary& WithFailureReasons(FailureReasonsT&& value) {
140 SetFailureReasons(std::forward<FailureReasonsT>(value));
141 return *this;
142 }
143 template <typename FailureReasonsT = ProjectDeletionError>
144 ProjectSummary& AddFailureReasons(FailureReasonsT&& value) {
145 m_failureReasonsHasBeenSet = true;
146 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
156 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
157 template <typename CreatedByT = Aws::String>
158 void SetCreatedBy(CreatedByT&& value) {
159 m_createdByHasBeenSet = true;
160 m_createdBy = std::forward<CreatedByT>(value);
161 }
162 template <typename CreatedByT = Aws::String>
163 ProjectSummary& WithCreatedBy(CreatedByT&& value) {
164 SetCreatedBy(std::forward<CreatedByT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
174 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 void SetCreatedAt(CreatedAtT&& value) {
177 m_createdAtHasBeenSet = true;
178 m_createdAt = std::forward<CreatedAtT>(value);
179 }
180 template <typename CreatedAtT = Aws::Utils::DateTime>
181 ProjectSummary& WithCreatedAt(CreatedAtT&& value) {
182 SetCreatedAt(std::forward<CreatedAtT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
192 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
193 template <typename UpdatedAtT = Aws::Utils::DateTime>
194 void SetUpdatedAt(UpdatedAtT&& value) {
195 m_updatedAtHasBeenSet = true;
196 m_updatedAt = std::forward<UpdatedAtT>(value);
197 }
198 template <typename UpdatedAtT = Aws::Utils::DateTime>
199 ProjectSummary& WithUpdatedAt(UpdatedAtT&& value) {
200 SetUpdatedAt(std::forward<UpdatedAtT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
210 inline bool DomainUnitIdHasBeenSet() const { return m_domainUnitIdHasBeenSet; }
211 template <typename DomainUnitIdT = Aws::String>
212 void SetDomainUnitId(DomainUnitIdT&& value) {
213 m_domainUnitIdHasBeenSet = true;
214 m_domainUnitId = std::forward<DomainUnitIdT>(value);
215 }
216 template <typename DomainUnitIdT = Aws::String>
217 ProjectSummary& WithDomainUnitId(DomainUnitIdT&& value) {
218 SetDomainUnitId(std::forward<DomainUnitIdT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_domainId;
224
225 Aws::String m_id;
226
227 Aws::String m_name;
228
229 Aws::String m_description;
230
231 ProjectStatus m_projectStatus{ProjectStatus::NOT_SET};
232
233 Aws::Vector<ProjectDeletionError> m_failureReasons;
234
235 Aws::String m_createdBy;
236
237 Aws::Utils::DateTime m_createdAt{};
238
239 Aws::Utils::DateTime m_updatedAt{};
240
241 Aws::String m_domainUnitId;
242 bool m_domainIdHasBeenSet = false;
243 bool m_idHasBeenSet = false;
244 bool m_nameHasBeenSet = false;
245 bool m_descriptionHasBeenSet = false;
246 bool m_projectStatusHasBeenSet = false;
247 bool m_failureReasonsHasBeenSet = false;
248 bool m_createdByHasBeenSet = false;
249 bool m_createdAtHasBeenSet = false;
250 bool m_updatedAtHasBeenSet = false;
251 bool m_domainUnitIdHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace DataZone
256} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetName() const
ProjectSummary & WithProjectStatus(ProjectStatus value)
void SetDomainId(DomainIdT &&value)
ProjectSummary & AddFailureReasons(FailureReasonsT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< ProjectDeletionError > & GetFailureReasons() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectSummary & WithName(NameT &&value)
void SetDescription(DescriptionT &&value)
ProjectSummary & WithUpdatedAt(UpdatedAtT &&value)
ProjectSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedBy() const
ProjectSummary & WithDescription(DescriptionT &&value)
void SetFailureReasons(FailureReasonsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DATAZONE_API ProjectSummary()=default
ProjectSummary & WithDomainId(DomainIdT &&value)
ProjectSummary & WithFailureReasons(FailureReasonsT &&value)
void SetDomainUnitId(DomainUnitIdT &&value)
const Aws::String & GetDomainUnitId() const
void SetProjectStatus(ProjectStatus value)
AWS_DATAZONE_API ProjectSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
ProjectSummary & WithDomainUnitId(DomainUnitIdT &&value)
void SetCreatedBy(CreatedByT &&value)
const Aws::String & GetId() const
const Aws::String & GetDomainId() const
ProjectSummary & WithId(IdT &&value)
ProjectSummary & WithCreatedBy(CreatedByT &&value)
AWS_DATAZONE_API ProjectSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue