AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
AssessmentMetadata.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/AssessmentReportsDestination.h>
9#include <aws/auditmanager/model/AssessmentStatus.h>
10#include <aws/auditmanager/model/Delegation.h>
11#include <aws/auditmanager/model/Role.h>
12#include <aws/auditmanager/model/Scope.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AuditManager {
27namespace Model {
28
36 public:
37 AWS_AUDITMANAGER_API AssessmentMetadata() = default;
38 AWS_AUDITMANAGER_API AssessmentMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 AssessmentMetadata& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetId() const { return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 template <typename IdT = Aws::String>
67 void SetId(IdT&& value) {
68 m_idHasBeenSet = true;
69 m_id = std::forward<IdT>(value);
70 }
71 template <typename IdT = Aws::String>
72 AssessmentMetadata& WithId(IdT&& value) {
73 SetId(std::forward<IdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
90 AssessmentMetadata& WithDescription(DescriptionT&& value) {
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetComplianceType() const { return m_complianceType; }
102 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
103 template <typename ComplianceTypeT = Aws::String>
104 void SetComplianceType(ComplianceTypeT&& value) {
105 m_complianceTypeHasBeenSet = true;
106 m_complianceType = std::forward<ComplianceTypeT>(value);
107 }
108 template <typename ComplianceTypeT = Aws::String>
109 AssessmentMetadata& WithComplianceType(ComplianceTypeT&& value) {
110 SetComplianceType(std::forward<ComplianceTypeT>(value));
111 return *this;
112 }
114
116
119 inline AssessmentStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(AssessmentStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const { return m_assessmentReportsDestination; }
136 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
137 template <typename AssessmentReportsDestinationT = AssessmentReportsDestination>
138 void SetAssessmentReportsDestination(AssessmentReportsDestinationT&& value) {
139 m_assessmentReportsDestinationHasBeenSet = true;
140 m_assessmentReportsDestination = std::forward<AssessmentReportsDestinationT>(value);
141 }
142 template <typename AssessmentReportsDestinationT = AssessmentReportsDestination>
143 AssessmentMetadata& WithAssessmentReportsDestination(AssessmentReportsDestinationT&& value) {
144 SetAssessmentReportsDestination(std::forward<AssessmentReportsDestinationT>(value));
145 return *this;
146 }
148
150
154 inline const Scope& GetScope() const { return m_scope; }
155 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
156 template <typename ScopeT = Scope>
157 void SetScope(ScopeT&& value) {
158 m_scopeHasBeenSet = true;
159 m_scope = std::forward<ScopeT>(value);
160 }
161 template <typename ScopeT = Scope>
162 AssessmentMetadata& WithScope(ScopeT&& value) {
163 SetScope(std::forward<ScopeT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
173 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
174 template <typename RolesT = Aws::Vector<Role>>
175 void SetRoles(RolesT&& value) {
176 m_rolesHasBeenSet = true;
177 m_roles = std::forward<RolesT>(value);
178 }
179 template <typename RolesT = Aws::Vector<Role>>
180 AssessmentMetadata& WithRoles(RolesT&& value) {
181 SetRoles(std::forward<RolesT>(value));
182 return *this;
183 }
184 template <typename RolesT = Role>
185 AssessmentMetadata& AddRoles(RolesT&& value) {
186 m_rolesHasBeenSet = true;
187 m_roles.emplace_back(std::forward<RolesT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Vector<Delegation>& GetDelegations() const { return m_delegations; }
197 inline bool DelegationsHasBeenSet() const { return m_delegationsHasBeenSet; }
198 template <typename DelegationsT = Aws::Vector<Delegation>>
199 void SetDelegations(DelegationsT&& value) {
200 m_delegationsHasBeenSet = true;
201 m_delegations = std::forward<DelegationsT>(value);
202 }
203 template <typename DelegationsT = Aws::Vector<Delegation>>
204 AssessmentMetadata& WithDelegations(DelegationsT&& value) {
205 SetDelegations(std::forward<DelegationsT>(value));
206 return *this;
207 }
208 template <typename DelegationsT = Delegation>
209 AssessmentMetadata& AddDelegations(DelegationsT&& value) {
210 m_delegationsHasBeenSet = true;
211 m_delegations.emplace_back(std::forward<DelegationsT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
221 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
222 template <typename CreationTimeT = Aws::Utils::DateTime>
223 void SetCreationTime(CreationTimeT&& value) {
224 m_creationTimeHasBeenSet = true;
225 m_creationTime = std::forward<CreationTimeT>(value);
226 }
227 template <typename CreationTimeT = Aws::Utils::DateTime>
228 AssessmentMetadata& WithCreationTime(CreationTimeT&& value) {
229 SetCreationTime(std::forward<CreationTimeT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
239 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
240 template <typename LastUpdatedT = Aws::Utils::DateTime>
241 void SetLastUpdated(LastUpdatedT&& value) {
242 m_lastUpdatedHasBeenSet = true;
243 m_lastUpdated = std::forward<LastUpdatedT>(value);
244 }
245 template <typename LastUpdatedT = Aws::Utils::DateTime>
246 AssessmentMetadata& WithLastUpdated(LastUpdatedT&& value) {
247 SetLastUpdated(std::forward<LastUpdatedT>(value));
248 return *this;
249 }
251 private:
252 Aws::String m_name;
253
254 Aws::String m_id;
255
256 Aws::String m_description;
257
258 Aws::String m_complianceType;
259
261
262 AssessmentReportsDestination m_assessmentReportsDestination;
263
264 Scope m_scope;
265
266 Aws::Vector<Role> m_roles;
267
268 Aws::Vector<Delegation> m_delegations;
269
270 Aws::Utils::DateTime m_creationTime{};
271
272 Aws::Utils::DateTime m_lastUpdated{};
273 bool m_nameHasBeenSet = false;
274 bool m_idHasBeenSet = false;
275 bool m_descriptionHasBeenSet = false;
276 bool m_complianceTypeHasBeenSet = false;
277 bool m_statusHasBeenSet = false;
278 bool m_assessmentReportsDestinationHasBeenSet = false;
279 bool m_scopeHasBeenSet = false;
280 bool m_rolesHasBeenSet = false;
281 bool m_delegationsHasBeenSet = false;
282 bool m_creationTimeHasBeenSet = false;
283 bool m_lastUpdatedHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace AuditManager
288} // namespace Aws
AWS_AUDITMANAGER_API AssessmentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentMetadata & AddRoles(RolesT &&value)
const Aws::Vector< Delegation > & GetDelegations() const
const Aws::Utils::DateTime & GetLastUpdated() const
AssessmentMetadata & WithRoles(RolesT &&value)
AssessmentMetadata & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AssessmentMetadata & WithId(IdT &&value)
AssessmentMetadata & WithScope(ScopeT &&value)
void SetComplianceType(ComplianceTypeT &&value)
AssessmentMetadata & AddDelegations(DelegationsT &&value)
AWS_AUDITMANAGER_API AssessmentMetadata()=default
const AssessmentReportsDestination & GetAssessmentReportsDestination() const
AssessmentMetadata & WithAssessmentReportsDestination(AssessmentReportsDestinationT &&value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentMetadata & WithDescription(DescriptionT &&value)
AssessmentMetadata & WithStatus(AssessmentStatus value)
AssessmentMetadata & WithLastUpdated(LastUpdatedT &&value)
void SetAssessmentReportsDestination(AssessmentReportsDestinationT &&value)
AWS_AUDITMANAGER_API AssessmentMetadata(Aws::Utils::Json::JsonView jsonValue)
AssessmentMetadata & WithDelegations(DelegationsT &&value)
AssessmentMetadata & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Role > & GetRoles() const
AssessmentMetadata & WithComplianceType(ComplianceTypeT &&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