AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Evidence.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/Resource.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AuditManager {
24namespace Model {
25
34class Evidence {
35 public:
36 AWS_AUDITMANAGER_API Evidence() = default;
37 AWS_AUDITMANAGER_API Evidence(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUDITMANAGER_API Evidence& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetDataSource() const { return m_dataSource; }
46 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
47 template <typename DataSourceT = Aws::String>
48 void SetDataSource(DataSourceT&& value) {
49 m_dataSourceHasBeenSet = true;
50 m_dataSource = std::forward<DataSourceT>(value);
51 }
52 template <typename DataSourceT = Aws::String>
53 Evidence& WithDataSource(DataSourceT&& value) {
54 SetDataSource(std::forward<DataSourceT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetEvidenceAwsAccountId() const { return m_evidenceAwsAccountId; }
64 inline bool EvidenceAwsAccountIdHasBeenSet() const { return m_evidenceAwsAccountIdHasBeenSet; }
65 template <typename EvidenceAwsAccountIdT = Aws::String>
66 void SetEvidenceAwsAccountId(EvidenceAwsAccountIdT&& value) {
67 m_evidenceAwsAccountIdHasBeenSet = true;
68 m_evidenceAwsAccountId = std::forward<EvidenceAwsAccountIdT>(value);
69 }
70 template <typename EvidenceAwsAccountIdT = Aws::String>
71 Evidence& WithEvidenceAwsAccountId(EvidenceAwsAccountIdT&& value) {
72 SetEvidenceAwsAccountId(std::forward<EvidenceAwsAccountIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
82 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
83 template <typename TimeT = Aws::Utils::DateTime>
84 void SetTime(TimeT&& value) {
85 m_timeHasBeenSet = true;
86 m_time = std::forward<TimeT>(value);
87 }
88 template <typename TimeT = Aws::Utils::DateTime>
89 Evidence& WithTime(TimeT&& value) {
90 SetTime(std::forward<TimeT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetEventSource() const { return m_eventSource; }
100 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
101 template <typename EventSourceT = Aws::String>
102 void SetEventSource(EventSourceT&& value) {
103 m_eventSourceHasBeenSet = true;
104 m_eventSource = std::forward<EventSourceT>(value);
105 }
106 template <typename EventSourceT = Aws::String>
107 Evidence& WithEventSource(EventSourceT&& value) {
108 SetEventSource(std::forward<EventSourceT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetEventName() const { return m_eventName; }
118 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
119 template <typename EventNameT = Aws::String>
120 void SetEventName(EventNameT&& value) {
121 m_eventNameHasBeenSet = true;
122 m_eventName = std::forward<EventNameT>(value);
123 }
124 template <typename EventNameT = Aws::String>
125 Evidence& WithEventName(EventNameT&& value) {
126 SetEventName(std::forward<EventNameT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetEvidenceByType() const { return m_evidenceByType; }
136 inline bool EvidenceByTypeHasBeenSet() const { return m_evidenceByTypeHasBeenSet; }
137 template <typename EvidenceByTypeT = Aws::String>
138 void SetEvidenceByType(EvidenceByTypeT&& value) {
139 m_evidenceByTypeHasBeenSet = true;
140 m_evidenceByType = std::forward<EvidenceByTypeT>(value);
141 }
142 template <typename EvidenceByTypeT = Aws::String>
143 Evidence& WithEvidenceByType(EvidenceByTypeT&& value) {
144 SetEvidenceByType(std::forward<EvidenceByTypeT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Resource>& GetResourcesIncluded() const { return m_resourcesIncluded; }
154 inline bool ResourcesIncludedHasBeenSet() const { return m_resourcesIncludedHasBeenSet; }
155 template <typename ResourcesIncludedT = Aws::Vector<Resource>>
156 void SetResourcesIncluded(ResourcesIncludedT&& value) {
157 m_resourcesIncludedHasBeenSet = true;
158 m_resourcesIncluded = std::forward<ResourcesIncludedT>(value);
159 }
160 template <typename ResourcesIncludedT = Aws::Vector<Resource>>
161 Evidence& WithResourcesIncluded(ResourcesIncludedT&& value) {
162 SetResourcesIncluded(std::forward<ResourcesIncludedT>(value));
163 return *this;
164 }
165 template <typename ResourcesIncludedT = Resource>
166 Evidence& AddResourcesIncluded(ResourcesIncludedT&& value) {
167 m_resourcesIncludedHasBeenSet = true;
168 m_resourcesIncluded.emplace_back(std::forward<ResourcesIncludedT>(value));
169 return *this;
170 }
172
174
179 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
180 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
181 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
182 void SetAttributes(AttributesT&& value) {
183 m_attributesHasBeenSet = true;
184 m_attributes = std::forward<AttributesT>(value);
185 }
186 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
187 Evidence& WithAttributes(AttributesT&& value) {
188 SetAttributes(std::forward<AttributesT>(value));
189 return *this;
190 }
191 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
192 Evidence& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
193 m_attributesHasBeenSet = true;
194 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::String& GetIamId() const { return m_iamId; }
205 inline bool IamIdHasBeenSet() const { return m_iamIdHasBeenSet; }
206 template <typename IamIdT = Aws::String>
207 void SetIamId(IamIdT&& value) {
208 m_iamIdHasBeenSet = true;
209 m_iamId = std::forward<IamIdT>(value);
210 }
211 template <typename IamIdT = Aws::String>
212 Evidence& WithIamId(IamIdT&& value) {
213 SetIamId(std::forward<IamIdT>(value));
214 return *this;
215 }
217
219
233 inline const Aws::String& GetComplianceCheck() const { return m_complianceCheck; }
234 inline bool ComplianceCheckHasBeenSet() const { return m_complianceCheckHasBeenSet; }
235 template <typename ComplianceCheckT = Aws::String>
236 void SetComplianceCheck(ComplianceCheckT&& value) {
237 m_complianceCheckHasBeenSet = true;
238 m_complianceCheck = std::forward<ComplianceCheckT>(value);
239 }
240 template <typename ComplianceCheckT = Aws::String>
241 Evidence& WithComplianceCheck(ComplianceCheckT&& value) {
242 SetComplianceCheck(std::forward<ComplianceCheckT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::String& GetAwsOrganization() const { return m_awsOrganization; }
253 inline bool AwsOrganizationHasBeenSet() const { return m_awsOrganizationHasBeenSet; }
254 template <typename AwsOrganizationT = Aws::String>
255 void SetAwsOrganization(AwsOrganizationT&& value) {
256 m_awsOrganizationHasBeenSet = true;
257 m_awsOrganization = std::forward<AwsOrganizationT>(value);
258 }
259 template <typename AwsOrganizationT = Aws::String>
260 Evidence& WithAwsOrganization(AwsOrganizationT&& value) {
261 SetAwsOrganization(std::forward<AwsOrganizationT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
271 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
272 template <typename AwsAccountIdT = Aws::String>
273 void SetAwsAccountId(AwsAccountIdT&& value) {
274 m_awsAccountIdHasBeenSet = true;
275 m_awsAccountId = std::forward<AwsAccountIdT>(value);
276 }
277 template <typename AwsAccountIdT = Aws::String>
278 Evidence& WithAwsAccountId(AwsAccountIdT&& value) {
279 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetEvidenceFolderId() const { return m_evidenceFolderId; }
289 inline bool EvidenceFolderIdHasBeenSet() const { return m_evidenceFolderIdHasBeenSet; }
290 template <typename EvidenceFolderIdT = Aws::String>
291 void SetEvidenceFolderId(EvidenceFolderIdT&& value) {
292 m_evidenceFolderIdHasBeenSet = true;
293 m_evidenceFolderId = std::forward<EvidenceFolderIdT>(value);
294 }
295 template <typename EvidenceFolderIdT = Aws::String>
296 Evidence& WithEvidenceFolderId(EvidenceFolderIdT&& value) {
297 SetEvidenceFolderId(std::forward<EvidenceFolderIdT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetId() const { return m_id; }
307 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
308 template <typename IdT = Aws::String>
309 void SetId(IdT&& value) {
310 m_idHasBeenSet = true;
311 m_id = std::forward<IdT>(value);
312 }
313 template <typename IdT = Aws::String>
314 Evidence& WithId(IdT&& value) {
315 SetId(std::forward<IdT>(value));
316 return *this;
317 }
319
321
324 inline const Aws::String& GetAssessmentReportSelection() const { return m_assessmentReportSelection; }
325 inline bool AssessmentReportSelectionHasBeenSet() const { return m_assessmentReportSelectionHasBeenSet; }
326 template <typename AssessmentReportSelectionT = Aws::String>
327 void SetAssessmentReportSelection(AssessmentReportSelectionT&& value) {
328 m_assessmentReportSelectionHasBeenSet = true;
329 m_assessmentReportSelection = std::forward<AssessmentReportSelectionT>(value);
330 }
331 template <typename AssessmentReportSelectionT = Aws::String>
332 Evidence& WithAssessmentReportSelection(AssessmentReportSelectionT&& value) {
333 SetAssessmentReportSelection(std::forward<AssessmentReportSelectionT>(value));
334 return *this;
335 }
337 private:
338 Aws::String m_dataSource;
339
340 Aws::String m_evidenceAwsAccountId;
341
342 Aws::Utils::DateTime m_time{};
343
344 Aws::String m_eventSource;
345
346 Aws::String m_eventName;
347
348 Aws::String m_evidenceByType;
349
350 Aws::Vector<Resource> m_resourcesIncluded;
351
353
354 Aws::String m_iamId;
355
356 Aws::String m_complianceCheck;
357
358 Aws::String m_awsOrganization;
359
360 Aws::String m_awsAccountId;
361
362 Aws::String m_evidenceFolderId;
363
364 Aws::String m_id;
365
366 Aws::String m_assessmentReportSelection;
367 bool m_dataSourceHasBeenSet = false;
368 bool m_evidenceAwsAccountIdHasBeenSet = false;
369 bool m_timeHasBeenSet = false;
370 bool m_eventSourceHasBeenSet = false;
371 bool m_eventNameHasBeenSet = false;
372 bool m_evidenceByTypeHasBeenSet = false;
373 bool m_resourcesIncludedHasBeenSet = false;
374 bool m_attributesHasBeenSet = false;
375 bool m_iamIdHasBeenSet = false;
376 bool m_complianceCheckHasBeenSet = false;
377 bool m_awsOrganizationHasBeenSet = false;
378 bool m_awsAccountIdHasBeenSet = false;
379 bool m_evidenceFolderIdHasBeenSet = false;
380 bool m_idHasBeenSet = false;
381 bool m_assessmentReportSelectionHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace AuditManager
386} // namespace Aws
void SetAwsAccountId(AwsAccountIdT &&value)
Definition Evidence.h:273
Evidence & WithId(IdT &&value)
Definition Evidence.h:314
void SetResourcesIncluded(ResourcesIncludedT &&value)
Definition Evidence.h:156
const Aws::String & GetAssessmentReportSelection() const
Definition Evidence.h:324
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Evidence.h:179
const Aws::String & GetAwsOrganization() const
Definition Evidence.h:252
AWS_AUDITMANAGER_API Evidence & operator=(Aws::Utils::Json::JsonView jsonValue)
Evidence & WithDataSource(DataSourceT &&value)
Definition Evidence.h:53
void SetTime(TimeT &&value)
Definition Evidence.h:84
void SetEvidenceByType(EvidenceByTypeT &&value)
Definition Evidence.h:138
const Aws::String & GetDataSource() const
Definition Evidence.h:45
const Aws::String & GetEvidenceByType() const
Definition Evidence.h:135
const Aws::Vector< Resource > & GetResourcesIncluded() const
Definition Evidence.h:153
const Aws::String & GetIamId() const
Definition Evidence.h:204
AWS_AUDITMANAGER_API Evidence()=default
const Aws::String & GetEvidenceAwsAccountId() const
Definition Evidence.h:63
bool EvidenceAwsAccountIdHasBeenSet() const
Definition Evidence.h:64
const Aws::Utils::DateTime & GetTime() const
Definition Evidence.h:81
Evidence & WithAwsOrganization(AwsOrganizationT &&value)
Definition Evidence.h:260
AWS_AUDITMANAGER_API Evidence(Aws::Utils::Json::JsonView jsonValue)
Evidence & WithEventSource(EventSourceT &&value)
Definition Evidence.h:107
bool AssessmentReportSelectionHasBeenSet() const
Definition Evidence.h:325
void SetAwsOrganization(AwsOrganizationT &&value)
Definition Evidence.h:255
void SetEvidenceFolderId(EvidenceFolderIdT &&value)
Definition Evidence.h:291
const Aws::String & GetEventSource() const
Definition Evidence.h:99
Evidence & WithResourcesIncluded(ResourcesIncludedT &&value)
Definition Evidence.h:161
const Aws::String & GetEventName() const
Definition Evidence.h:117
void SetDataSource(DataSourceT &&value)
Definition Evidence.h:48
Evidence & WithEvidenceAwsAccountId(EvidenceAwsAccountIdT &&value)
Definition Evidence.h:71
const Aws::String & GetComplianceCheck() const
Definition Evidence.h:233
Evidence & WithEvidenceByType(EvidenceByTypeT &&value)
Definition Evidence.h:143
Evidence & WithEvidenceFolderId(EvidenceFolderIdT &&value)
Definition Evidence.h:296
const Aws::String & GetId() const
Definition Evidence.h:306
void SetEventName(EventNameT &&value)
Definition Evidence.h:120
void SetAssessmentReportSelection(AssessmentReportSelectionT &&value)
Definition Evidence.h:327
Evidence & WithIamId(IamIdT &&value)
Definition Evidence.h:212
Evidence & WithAwsAccountId(AwsAccountIdT &&value)
Definition Evidence.h:278
Evidence & WithComplianceCheck(ComplianceCheckT &&value)
Definition Evidence.h:241
Evidence & AddResourcesIncluded(ResourcesIncludedT &&value)
Definition Evidence.h:166
Evidence & WithEventName(EventNameT &&value)
Definition Evidence.h:125
Evidence & WithAttributes(AttributesT &&value)
Definition Evidence.h:187
void SetAttributes(AttributesT &&value)
Definition Evidence.h:182
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAwsAccountId() const
Definition Evidence.h:270
Evidence & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
Definition Evidence.h:192
void SetIamId(IamIdT &&value)
Definition Evidence.h:207
void SetEvidenceAwsAccountId(EvidenceAwsAccountIdT &&value)
Definition Evidence.h:66
Evidence & WithTime(TimeT &&value)
Definition Evidence.h:89
void SetComplianceCheck(ComplianceCheckT &&value)
Definition Evidence.h:236
void SetEventSource(EventSourceT &&value)
Definition Evidence.h:102
const Aws::String & GetEvidenceFolderId() const
Definition Evidence.h:288
Evidence & WithAssessmentReportSelection(AssessmentReportSelectionT &&value)
Definition Evidence.h:332
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue