AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProjectSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.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/model/ProjectStatus.h>
12#include <aws/datazone/model/ProjectDeletionError.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DATAZONE_API ProjectSummary() = default;
39 AWS_DATAZONE_API ProjectSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
49 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
50 template<typename CreatedAtT = Aws::Utils::DateTime>
51 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
52 template<typename CreatedAtT = Aws::Utils::DateTime>
53 ProjectSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
55
57
60 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
61 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
62 template<typename CreatedByT = Aws::String>
63 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
64 template<typename CreatedByT = Aws::String>
65 ProjectSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 ProjectSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDomainId() const { return m_domainId; }
85 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
86 template<typename DomainIdT = Aws::String>
87 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
88 template<typename DomainIdT = Aws::String>
89 ProjectSummary& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDomainUnitId() const { return m_domainUnitId; }
97 inline bool DomainUnitIdHasBeenSet() const { return m_domainUnitIdHasBeenSet; }
98 template<typename DomainUnitIdT = Aws::String>
99 void SetDomainUnitId(DomainUnitIdT&& value) { m_domainUnitIdHasBeenSet = true; m_domainUnitId = std::forward<DomainUnitIdT>(value); }
100 template<typename DomainUnitIdT = Aws::String>
101 ProjectSummary& WithDomainUnitId(DomainUnitIdT&& value) { SetDomainUnitId(std::forward<DomainUnitIdT>(value)); return *this;}
103
105
109 inline const Aws::Vector<ProjectDeletionError>& GetFailureReasons() const { return m_failureReasons; }
110 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
111 template<typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
112 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::forward<FailureReasonsT>(value); }
113 template<typename FailureReasonsT = Aws::Vector<ProjectDeletionError>>
114 ProjectSummary& WithFailureReasons(FailureReasonsT&& value) { SetFailureReasons(std::forward<FailureReasonsT>(value)); return *this;}
115 template<typename FailureReasonsT = ProjectDeletionError>
116 ProjectSummary& AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value)); return *this; }
118
120
123 inline const Aws::String& GetId() const { return m_id; }
124 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
125 template<typename IdT = Aws::String>
126 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
127 template<typename IdT = Aws::String>
128 ProjectSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
130
132
135 inline const Aws::String& GetName() const { return m_name; }
136 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 template<typename NameT = Aws::String>
138 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
139 template<typename NameT = Aws::String>
140 ProjectSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
142
144
147 inline ProjectStatus GetProjectStatus() const { return m_projectStatus; }
148 inline bool ProjectStatusHasBeenSet() const { return m_projectStatusHasBeenSet; }
149 inline void SetProjectStatus(ProjectStatus value) { m_projectStatusHasBeenSet = true; m_projectStatus = value; }
150 inline ProjectSummary& WithProjectStatus(ProjectStatus value) { SetProjectStatus(value); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
158 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
159 template<typename UpdatedAtT = Aws::Utils::DateTime>
160 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
161 template<typename UpdatedAtT = Aws::Utils::DateTime>
162 ProjectSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
164 private:
165
166 Aws::Utils::DateTime m_createdAt{};
167 bool m_createdAtHasBeenSet = false;
168
169 Aws::String m_createdBy;
170 bool m_createdByHasBeenSet = false;
171
172 Aws::String m_description;
173 bool m_descriptionHasBeenSet = false;
174
175 Aws::String m_domainId;
176 bool m_domainIdHasBeenSet = false;
177
178 Aws::String m_domainUnitId;
179 bool m_domainUnitIdHasBeenSet = false;
180
181 Aws::Vector<ProjectDeletionError> m_failureReasons;
182 bool m_failureReasonsHasBeenSet = false;
183
184 Aws::String m_id;
185 bool m_idHasBeenSet = false;
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 ProjectStatus m_projectStatus{ProjectStatus::NOT_SET};
191 bool m_projectStatusHasBeenSet = false;
192
193 Aws::Utils::DateTime m_updatedAt{};
194 bool m_updatedAtHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace DataZone
199} // 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