AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AssessmentMetadataItem.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/AssessmentStatus.h>
9#include <aws/auditmanager/model/Delegation.h>
10#include <aws/auditmanager/model/Role.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AuditManager {
25namespace Model {
26
34 public:
35 AWS_AUDITMANAGER_API AssessmentMetadataItem() = default;
36 AWS_AUDITMANAGER_API AssessmentMetadataItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template <typename IdT = Aws::String>
65 void SetId(IdT&& value) {
66 m_idHasBeenSet = true;
67 m_id = std::forward<IdT>(value);
68 }
69 template <typename IdT = Aws::String>
71 SetId(std::forward<IdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetComplianceType() const { return m_complianceType; }
82 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
83 template <typename ComplianceTypeT = Aws::String>
84 void SetComplianceType(ComplianceTypeT&& value) {
85 m_complianceTypeHasBeenSet = true;
86 m_complianceType = std::forward<ComplianceTypeT>(value);
87 }
88 template <typename ComplianceTypeT = Aws::String>
89 AssessmentMetadataItem& WithComplianceType(ComplianceTypeT&& value) {
90 SetComplianceType(std::forward<ComplianceTypeT>(value));
91 return *this;
92 }
94
96
99 inline AssessmentStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(AssessmentStatus value) {
102 m_statusHasBeenSet = true;
103 m_status = value;
104 }
106 SetStatus(value);
107 return *this;
108 }
110
112
115 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
116 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
117 template <typename RolesT = Aws::Vector<Role>>
118 void SetRoles(RolesT&& value) {
119 m_rolesHasBeenSet = true;
120 m_roles = std::forward<RolesT>(value);
121 }
122 template <typename RolesT = Aws::Vector<Role>>
124 SetRoles(std::forward<RolesT>(value));
125 return *this;
126 }
127 template <typename RolesT = Role>
129 m_rolesHasBeenSet = true;
130 m_roles.emplace_back(std::forward<RolesT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Vector<Delegation>& GetDelegations() const { return m_delegations; }
140 inline bool DelegationsHasBeenSet() const { return m_delegationsHasBeenSet; }
141 template <typename DelegationsT = Aws::Vector<Delegation>>
142 void SetDelegations(DelegationsT&& value) {
143 m_delegationsHasBeenSet = true;
144 m_delegations = std::forward<DelegationsT>(value);
145 }
146 template <typename DelegationsT = Aws::Vector<Delegation>>
148 SetDelegations(std::forward<DelegationsT>(value));
149 return *this;
150 }
151 template <typename DelegationsT = Delegation>
152 AssessmentMetadataItem& AddDelegations(DelegationsT&& value) {
153 m_delegationsHasBeenSet = true;
154 m_delegations.emplace_back(std::forward<DelegationsT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
164 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
165 template <typename CreationTimeT = Aws::Utils::DateTime>
166 void SetCreationTime(CreationTimeT&& value) {
167 m_creationTimeHasBeenSet = true;
168 m_creationTime = std::forward<CreationTimeT>(value);
169 }
170 template <typename CreationTimeT = Aws::Utils::DateTime>
171 AssessmentMetadataItem& WithCreationTime(CreationTimeT&& value) {
172 SetCreationTime(std::forward<CreationTimeT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
182 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
183 template <typename LastUpdatedT = Aws::Utils::DateTime>
184 void SetLastUpdated(LastUpdatedT&& value) {
185 m_lastUpdatedHasBeenSet = true;
186 m_lastUpdated = std::forward<LastUpdatedT>(value);
187 }
188 template <typename LastUpdatedT = Aws::Utils::DateTime>
190 SetLastUpdated(std::forward<LastUpdatedT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_name;
196
197 Aws::String m_id;
198
199 Aws::String m_complianceType;
200
202
203 Aws::Vector<Role> m_roles;
204
205 Aws::Vector<Delegation> m_delegations;
206
207 Aws::Utils::DateTime m_creationTime{};
208
209 Aws::Utils::DateTime m_lastUpdated{};
210 bool m_nameHasBeenSet = false;
211 bool m_idHasBeenSet = false;
212 bool m_complianceTypeHasBeenSet = false;
213 bool m_statusHasBeenSet = false;
214 bool m_rolesHasBeenSet = false;
215 bool m_delegationsHasBeenSet = false;
216 bool m_creationTimeHasBeenSet = false;
217 bool m_lastUpdatedHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace AuditManager
222} // namespace Aws
AssessmentMetadataItem & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AssessmentMetadataItem & WithCreationTime(CreationTimeT &&value)
AssessmentMetadataItem & WithStatus(AssessmentStatus value)
AssessmentMetadataItem & AddRoles(RolesT &&value)
AssessmentMetadataItem & WithComplianceType(ComplianceTypeT &&value)
AssessmentMetadataItem & WithDelegations(DelegationsT &&value)
AssessmentMetadataItem & WithLastUpdated(LastUpdatedT &&value)
AWS_AUDITMANAGER_API AssessmentMetadataItem(Aws::Utils::Json::JsonView jsonValue)
AssessmentMetadataItem & AddDelegations(DelegationsT &&value)
const Aws::Utils::DateTime & GetLastUpdated() const
AWS_AUDITMANAGER_API AssessmentMetadataItem()=default
const Aws::Vector< Delegation > & GetDelegations() const
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentMetadataItem & WithRoles(RolesT &&value)
AWS_AUDITMANAGER_API AssessmentMetadataItem & operator=(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