AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssessmentMetadataItem.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/auditmanager/model/Role.h>
13#include <aws/auditmanager/model/Delegation.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AuditManager
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_AUDITMANAGER_API AssessmentMetadataItem() = default;
41 AWS_AUDITMANAGER_API AssessmentMetadataItem(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 AssessmentMetadataItem& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
66 template<typename IdT = Aws::String>
67 AssessmentMetadataItem& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
69
71
75 inline const Aws::String& GetComplianceType() const { return m_complianceType; }
76 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
77 template<typename ComplianceTypeT = Aws::String>
78 void SetComplianceType(ComplianceTypeT&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::forward<ComplianceTypeT>(value); }
79 template<typename ComplianceTypeT = Aws::String>
80 AssessmentMetadataItem& WithComplianceType(ComplianceTypeT&& value) { SetComplianceType(std::forward<ComplianceTypeT>(value)); return *this;}
82
84
87 inline AssessmentStatus GetStatus() const { return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(AssessmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
90 inline AssessmentMetadataItem& WithStatus(AssessmentStatus value) { SetStatus(value); return *this;}
92
94
97 inline const Aws::Vector<Role>& GetRoles() const { return m_roles; }
98 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
99 template<typename RolesT = Aws::Vector<Role>>
100 void SetRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles = std::forward<RolesT>(value); }
101 template<typename RolesT = Aws::Vector<Role>>
102 AssessmentMetadataItem& WithRoles(RolesT&& value) { SetRoles(std::forward<RolesT>(value)); return *this;}
103 template<typename RolesT = Role>
104 AssessmentMetadataItem& AddRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles.emplace_back(std::forward<RolesT>(value)); return *this; }
106
108
111 inline const Aws::Vector<Delegation>& GetDelegations() const { return m_delegations; }
112 inline bool DelegationsHasBeenSet() const { return m_delegationsHasBeenSet; }
113 template<typename DelegationsT = Aws::Vector<Delegation>>
114 void SetDelegations(DelegationsT&& value) { m_delegationsHasBeenSet = true; m_delegations = std::forward<DelegationsT>(value); }
115 template<typename DelegationsT = Aws::Vector<Delegation>>
116 AssessmentMetadataItem& WithDelegations(DelegationsT&& value) { SetDelegations(std::forward<DelegationsT>(value)); return *this;}
117 template<typename DelegationsT = Delegation>
118 AssessmentMetadataItem& AddDelegations(DelegationsT&& value) { m_delegationsHasBeenSet = true; m_delegations.emplace_back(std::forward<DelegationsT>(value)); return *this; }
120
122
125 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
126 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
127 template<typename CreationTimeT = Aws::Utils::DateTime>
128 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
129 template<typename CreationTimeT = Aws::Utils::DateTime>
130 AssessmentMetadataItem& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
138 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
139 template<typename LastUpdatedT = Aws::Utils::DateTime>
140 void SetLastUpdated(LastUpdatedT&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::forward<LastUpdatedT>(value); }
141 template<typename LastUpdatedT = Aws::Utils::DateTime>
142 AssessmentMetadataItem& WithLastUpdated(LastUpdatedT&& value) { SetLastUpdated(std::forward<LastUpdatedT>(value)); return *this;}
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
152 Aws::String m_complianceType;
153 bool m_complianceTypeHasBeenSet = false;
154
156 bool m_statusHasBeenSet = false;
157
158 Aws::Vector<Role> m_roles;
159 bool m_rolesHasBeenSet = false;
160
161 Aws::Vector<Delegation> m_delegations;
162 bool m_delegationsHasBeenSet = false;
163
164 Aws::Utils::DateTime m_creationTime{};
165 bool m_creationTimeHasBeenSet = false;
166
167 Aws::Utils::DateTime m_lastUpdated{};
168 bool m_lastUpdatedHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace AuditManager
173} // 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