AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline AssessmentMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline AssessmentMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline AssessmentMetadata& WithName(const char* value) { SetName(value); return *this;}
61
63
66 inline const Aws::String& GetId() const{ return m_id; }
67 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
68 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
69 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
70 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
71 inline AssessmentMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
72 inline AssessmentMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
73 inline AssessmentMetadata& WithId(const char* value) { SetId(value); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline AssessmentMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline AssessmentMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline AssessmentMetadata& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
95 inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
96 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
97 inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
98 inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
99 inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
100 inline AssessmentMetadata& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;}
101 inline AssessmentMetadata& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
102 inline AssessmentMetadata& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
104
106
109 inline const AssessmentStatus& GetStatus() const{ return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(const AssessmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
112 inline void SetStatus(AssessmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113 inline AssessmentMetadata& WithStatus(const AssessmentStatus& value) { SetStatus(value); return *this;}
114 inline AssessmentMetadata& WithStatus(AssessmentStatus&& value) { SetStatus(std::move(value)); return *this;}
116
118
121 inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const{ return m_assessmentReportsDestination; }
122 inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; }
123 inline void SetAssessmentReportsDestination(const AssessmentReportsDestination& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = value; }
124 inline void SetAssessmentReportsDestination(AssessmentReportsDestination&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::move(value); }
128
130
134 inline const Scope& GetScope() const{ return m_scope; }
135 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
136 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
137 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
138 inline AssessmentMetadata& WithScope(const Scope& value) { SetScope(value); return *this;}
139 inline AssessmentMetadata& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
141
143
146 inline const Aws::Vector<Role>& GetRoles() const{ return m_roles; }
147 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
148 inline void SetRoles(const Aws::Vector<Role>& value) { m_rolesHasBeenSet = true; m_roles = value; }
149 inline void SetRoles(Aws::Vector<Role>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
150 inline AssessmentMetadata& WithRoles(const Aws::Vector<Role>& value) { SetRoles(value); return *this;}
151 inline AssessmentMetadata& WithRoles(Aws::Vector<Role>&& value) { SetRoles(std::move(value)); return *this;}
152 inline AssessmentMetadata& AddRoles(const Role& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
153 inline AssessmentMetadata& AddRoles(Role&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
155
157
160 inline const Aws::Vector<Delegation>& GetDelegations() const{ return m_delegations; }
161 inline bool DelegationsHasBeenSet() const { return m_delegationsHasBeenSet; }
162 inline void SetDelegations(const Aws::Vector<Delegation>& value) { m_delegationsHasBeenSet = true; m_delegations = value; }
163 inline void SetDelegations(Aws::Vector<Delegation>&& value) { m_delegationsHasBeenSet = true; m_delegations = std::move(value); }
164 inline AssessmentMetadata& WithDelegations(const Aws::Vector<Delegation>& value) { SetDelegations(value); return *this;}
165 inline AssessmentMetadata& WithDelegations(Aws::Vector<Delegation>&& value) { SetDelegations(std::move(value)); return *this;}
166 inline AssessmentMetadata& AddDelegations(const Delegation& value) { m_delegationsHasBeenSet = true; m_delegations.push_back(value); return *this; }
167 inline AssessmentMetadata& AddDelegations(Delegation&& value) { m_delegationsHasBeenSet = true; m_delegations.push_back(std::move(value)); return *this; }
169
171
174 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
175 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
176 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
177 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
178 inline AssessmentMetadata& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
179 inline AssessmentMetadata& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
181
183
186 inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
187 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
188 inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
189 inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
190 inline AssessmentMetadata& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;}
191 inline AssessmentMetadata& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
193 private:
194
195 Aws::String m_name;
196 bool m_nameHasBeenSet = false;
197
198 Aws::String m_id;
199 bool m_idHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 Aws::String m_complianceType;
205 bool m_complianceTypeHasBeenSet = false;
206
207 AssessmentStatus m_status;
208 bool m_statusHasBeenSet = false;
209
210 AssessmentReportsDestination m_assessmentReportsDestination;
211 bool m_assessmentReportsDestinationHasBeenSet = false;
212
213 Scope m_scope;
214 bool m_scopeHasBeenSet = false;
215
216 Aws::Vector<Role> m_roles;
217 bool m_rolesHasBeenSet = false;
218
219 Aws::Vector<Delegation> m_delegations;
220 bool m_delegationsHasBeenSet = false;
221
222 Aws::Utils::DateTime m_creationTime;
223 bool m_creationTimeHasBeenSet = false;
224
225 Aws::Utils::DateTime m_lastUpdated;
226 bool m_lastUpdatedHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace AuditManager
231} // namespace Aws
void SetRoles(Aws::Vector< Role > &&value)
AWS_AUDITMANAGER_API AssessmentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Delegation > & GetDelegations() const
AssessmentMetadata & AddRoles(const Role &value)
AssessmentMetadata & WithCreationTime(Aws::Utils::DateTime &&value)
AssessmentMetadata & WithId(const char *value)
void SetCreationTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUpdated() const
AssessmentMetadata & WithName(Aws::String &&value)
AssessmentMetadata & WithName(const char *value)
const AssessmentStatus & GetStatus() const
AssessmentMetadata & WithAssessmentReportsDestination(const AssessmentReportsDestination &value)
AssessmentMetadata & AddDelegations(const Delegation &value)
AssessmentMetadata & WithStatus(AssessmentStatus &&value)
AssessmentMetadata & WithCreationTime(const Aws::Utils::DateTime &value)
AssessmentMetadata & WithId(Aws::String &&value)
void SetAssessmentReportsDestination(AssessmentReportsDestination &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetDelegations(Aws::Vector< Delegation > &&value)
AssessmentMetadata & WithRoles(Aws::Vector< Role > &&value)
void SetDescription(const Aws::String &value)
AssessmentMetadata & WithStatus(const AssessmentStatus &value)
AssessmentMetadata & WithLastUpdated(Aws::Utils::DateTime &&value)
AssessmentMetadata & WithComplianceType(const char *value)
AssessmentMetadata & WithComplianceType(const Aws::String &value)
void SetLastUpdated(const Aws::Utils::DateTime &value)
void SetAssessmentReportsDestination(const AssessmentReportsDestination &value)
AssessmentMetadata & WithRoles(const Aws::Vector< Role > &value)
void SetLastUpdated(Aws::Utils::DateTime &&value)
AssessmentMetadata & WithComplianceType(Aws::String &&value)
const AssessmentReportsDestination & GetAssessmentReportsDestination() const
void SetComplianceType(const Aws::String &value)
AssessmentMetadata & AddRoles(Role &&value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreationTime(const Aws::Utils::DateTime &value)
AssessmentMetadata & WithName(const Aws::String &value)
AWS_AUDITMANAGER_API AssessmentMetadata(Aws::Utils::Json::JsonView jsonValue)
AssessmentMetadata & WithAssessmentReportsDestination(AssessmentReportsDestination &&value)
AssessmentMetadata & WithDescription(const char *value)
AssessmentMetadata & WithDescription(Aws::String &&value)
void SetDelegations(const Aws::Vector< Delegation > &value)
AssessmentMetadata & WithLastUpdated(const Aws::Utils::DateTime &value)
AssessmentMetadata & WithId(const Aws::String &value)
AssessmentMetadata & WithDescription(const Aws::String &value)
AssessmentMetadata & WithScope(const Scope &value)
AssessmentMetadata & WithDelegations(const Aws::Vector< Delegation > &value)
void SetRoles(const Aws::Vector< Role > &value)
void SetStatus(const AssessmentStatus &value)
AssessmentMetadata & WithDelegations(Aws::Vector< Delegation > &&value)
const Aws::Vector< Role > & GetRoles() const
AssessmentMetadata & AddDelegations(Delegation &&value)
AssessmentMetadata & WithScope(Scope &&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