AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssessmentMetadata.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/AssessmentStatus.h>
10#include <aws/auditmanager/model/AssessmentReportsDestination.h>
11#include <aws/auditmanager/model/Scope.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/auditmanager/model/Role.h>
15#include <aws/auditmanager/model/Delegation.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace AuditManager
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_AUDITMANAGER_API AssessmentMetadata() = default;
43 AWS_AUDITMANAGER_API AssessmentMetadata(Aws::Utils::Json::JsonView jsonValue);
45 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 AssessmentMetadata& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
68 template<typename IdT = Aws::String>
69 AssessmentMetadata& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 AssessmentMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
89 inline const Aws::String& GetComplianceType() const { return m_complianceType; }
90 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
91 template<typename ComplianceTypeT = Aws::String>
92 void SetComplianceType(ComplianceTypeT&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::forward<ComplianceTypeT>(value); }
93 template<typename ComplianceTypeT = Aws::String>
94 AssessmentMetadata& WithComplianceType(ComplianceTypeT&& value) { SetComplianceType(std::forward<ComplianceTypeT>(value)); return *this;}
96
98
101 inline AssessmentStatus GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(AssessmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
104 inline AssessmentMetadata& WithStatus(AssessmentStatus value) { SetStatus(value); return *this;}
106
108
111 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const { return m_assessmentReportsDestination; }
112 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
113 template<typename AssessmentReportsDestinationT = AssessmentReportsDestination>
114 void SetAssessmentReportsDestination(AssessmentReportsDestinationT&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::forward<AssessmentReportsDestinationT>(value); }
115 template<typename AssessmentReportsDestinationT = AssessmentReportsDestination>
116 AssessmentMetadata& WithAssessmentReportsDestination(AssessmentReportsDestinationT&& value) { SetAssessmentReportsDestination(std::forward<AssessmentReportsDestinationT>(value)); return *this;}
118
120
124 inline const Scope& GetScope() const { return m_scope; }
125 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
126 template<typename ScopeT = Scope>
127 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
128 template<typename ScopeT = Scope>
129 AssessmentMetadata& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
131
133
136 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
137 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
138 template<typename RolesT = Aws::Vector<Role>>
139 void SetRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles = std::forward<RolesT>(value); }
140 template<typename RolesT = Aws::Vector<Role>>
141 AssessmentMetadata& WithRoles(RolesT&& value) { SetRoles(std::forward<RolesT>(value)); return *this;}
142 template<typename RolesT = Role>
143 AssessmentMetadata& AddRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles.emplace_back(std::forward<RolesT>(value)); return *this; }
145
147
150 inline const Aws::Vector<Delegation>& GetDelegations() const { return m_delegations; }
151 inline bool DelegationsHasBeenSet() const { return m_delegationsHasBeenSet; }
152 template<typename DelegationsT = Aws::Vector<Delegation>>
153 void SetDelegations(DelegationsT&& value) { m_delegationsHasBeenSet = true; m_delegations = std::forward<DelegationsT>(value); }
154 template<typename DelegationsT = Aws::Vector<Delegation>>
155 AssessmentMetadata& WithDelegations(DelegationsT&& value) { SetDelegations(std::forward<DelegationsT>(value)); return *this;}
156 template<typename DelegationsT = Delegation>
157 AssessmentMetadata& AddDelegations(DelegationsT&& value) { m_delegationsHasBeenSet = true; m_delegations.emplace_back(std::forward<DelegationsT>(value)); return *this; }
159
161
164 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
165 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
166 template<typename CreationTimeT = Aws::Utils::DateTime>
167 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
168 template<typename CreationTimeT = Aws::Utils::DateTime>
169 AssessmentMetadata& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
171
173
176 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
177 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
178 template<typename LastUpdatedT = Aws::Utils::DateTime>
179 void SetLastUpdated(LastUpdatedT&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::forward<LastUpdatedT>(value); }
180 template<typename LastUpdatedT = Aws::Utils::DateTime>
181 AssessmentMetadata& WithLastUpdated(LastUpdatedT&& value) { SetLastUpdated(std::forward<LastUpdatedT>(value)); return *this;}
183 private:
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 Aws::String m_id;
189 bool m_idHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
194 Aws::String m_complianceType;
195 bool m_complianceTypeHasBeenSet = false;
196
198 bool m_statusHasBeenSet = false;
199
200 AssessmentReportsDestination m_assessmentReportsDestination;
201 bool m_assessmentReportsDestinationHasBeenSet = false;
202
203 Scope m_scope;
204 bool m_scopeHasBeenSet = false;
205
206 Aws::Vector<Role> m_roles;
207 bool m_rolesHasBeenSet = false;
208
209 Aws::Vector<Delegation> m_delegations;
210 bool m_delegationsHasBeenSet = false;
211
212 Aws::Utils::DateTime m_creationTime{};
213 bool m_creationTimeHasBeenSet = false;
214
215 Aws::Utils::DateTime m_lastUpdated{};
216 bool m_lastUpdatedHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace AuditManager
221} // 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