AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Evidence.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/auditmanager/model/Resource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AuditManager
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_AUDITMANAGER_API Evidence() = default;
42 AWS_AUDITMANAGER_API Evidence(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AUDITMANAGER_API Evidence& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetDataSource() const { return m_dataSource; }
52 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
53 template<typename DataSourceT = Aws::String>
54 void SetDataSource(DataSourceT&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::forward<DataSourceT>(value); }
55 template<typename DataSourceT = Aws::String>
56 Evidence& WithDataSource(DataSourceT&& value) { SetDataSource(std::forward<DataSourceT>(value)); return *this;}
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) { m_evidenceAwsAccountIdHasBeenSet = true; m_evidenceAwsAccountId = std::forward<EvidenceAwsAccountIdT>(value); }
67 template<typename EvidenceAwsAccountIdT = Aws::String>
68 Evidence& WithEvidenceAwsAccountId(EvidenceAwsAccountIdT&& value) { SetEvidenceAwsAccountId(std::forward<EvidenceAwsAccountIdT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
76 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
77 template<typename TimeT = Aws::Utils::DateTime>
78 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
79 template<typename TimeT = Aws::Utils::DateTime>
80 Evidence& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
82
84
87 inline const Aws::String& GetEventSource() const { return m_eventSource; }
88 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
89 template<typename EventSourceT = Aws::String>
90 void SetEventSource(EventSourceT&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::forward<EventSourceT>(value); }
91 template<typename EventSourceT = Aws::String>
92 Evidence& WithEventSource(EventSourceT&& value) { SetEventSource(std::forward<EventSourceT>(value)); return *this;}
94
96
99 inline const Aws::String& GetEventName() const { return m_eventName; }
100 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
101 template<typename EventNameT = Aws::String>
102 void SetEventName(EventNameT&& value) { m_eventNameHasBeenSet = true; m_eventName = std::forward<EventNameT>(value); }
103 template<typename EventNameT = Aws::String>
104 Evidence& WithEventName(EventNameT&& value) { SetEventName(std::forward<EventNameT>(value)); return *this;}
106
108
111 inline const Aws::String& GetEvidenceByType() const { return m_evidenceByType; }
112 inline bool EvidenceByTypeHasBeenSet() const { return m_evidenceByTypeHasBeenSet; }
113 template<typename EvidenceByTypeT = Aws::String>
114 void SetEvidenceByType(EvidenceByTypeT&& value) { m_evidenceByTypeHasBeenSet = true; m_evidenceByType = std::forward<EvidenceByTypeT>(value); }
115 template<typename EvidenceByTypeT = Aws::String>
116 Evidence& WithEvidenceByType(EvidenceByTypeT&& value) { SetEvidenceByType(std::forward<EvidenceByTypeT>(value)); return *this;}
118
120
123 inline const Aws::Vector<Resource>& GetResourcesIncluded() const { return m_resourcesIncluded; }
124 inline bool ResourcesIncludedHasBeenSet() const { return m_resourcesIncludedHasBeenSet; }
125 template<typename ResourcesIncludedT = Aws::Vector<Resource>>
126 void SetResourcesIncluded(ResourcesIncludedT&& value) { m_resourcesIncludedHasBeenSet = true; m_resourcesIncluded = std::forward<ResourcesIncludedT>(value); }
127 template<typename ResourcesIncludedT = Aws::Vector<Resource>>
128 Evidence& WithResourcesIncluded(ResourcesIncludedT&& value) { SetResourcesIncluded(std::forward<ResourcesIncludedT>(value)); return *this;}
129 template<typename ResourcesIncludedT = Resource>
130 Evidence& AddResourcesIncluded(ResourcesIncludedT&& value) { m_resourcesIncludedHasBeenSet = true; m_resourcesIncluded.emplace_back(std::forward<ResourcesIncludedT>(value)); return *this; }
132
134
139 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
140 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
141 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
142 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
143 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
144 Evidence& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
145 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
146 Evidence& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
147 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
148 }
150
152
156 inline const Aws::String& GetIamId() const { return m_iamId; }
157 inline bool IamIdHasBeenSet() const { return m_iamIdHasBeenSet; }
158 template<typename IamIdT = Aws::String>
159 void SetIamId(IamIdT&& value) { m_iamIdHasBeenSet = true; m_iamId = std::forward<IamIdT>(value); }
160 template<typename IamIdT = Aws::String>
161 Evidence& WithIamId(IamIdT&& value) { SetIamId(std::forward<IamIdT>(value)); return *this;}
163
165
179 inline const Aws::String& GetComplianceCheck() const { return m_complianceCheck; }
180 inline bool ComplianceCheckHasBeenSet() const { return m_complianceCheckHasBeenSet; }
181 template<typename ComplianceCheckT = Aws::String>
182 void SetComplianceCheck(ComplianceCheckT&& value) { m_complianceCheckHasBeenSet = true; m_complianceCheck = std::forward<ComplianceCheckT>(value); }
183 template<typename ComplianceCheckT = Aws::String>
184 Evidence& WithComplianceCheck(ComplianceCheckT&& value) { SetComplianceCheck(std::forward<ComplianceCheckT>(value)); return *this;}
186
188
192 inline const Aws::String& GetAwsOrganization() const { return m_awsOrganization; }
193 inline bool AwsOrganizationHasBeenSet() const { return m_awsOrganizationHasBeenSet; }
194 template<typename AwsOrganizationT = Aws::String>
195 void SetAwsOrganization(AwsOrganizationT&& value) { m_awsOrganizationHasBeenSet = true; m_awsOrganization = std::forward<AwsOrganizationT>(value); }
196 template<typename AwsOrganizationT = Aws::String>
197 Evidence& WithAwsOrganization(AwsOrganizationT&& value) { SetAwsOrganization(std::forward<AwsOrganizationT>(value)); return *this;}
199
201
204 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
205 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
206 template<typename AwsAccountIdT = Aws::String>
207 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
208 template<typename AwsAccountIdT = Aws::String>
209 Evidence& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
211
213
216 inline const Aws::String& GetEvidenceFolderId() const { return m_evidenceFolderId; }
217 inline bool EvidenceFolderIdHasBeenSet() const { return m_evidenceFolderIdHasBeenSet; }
218 template<typename EvidenceFolderIdT = Aws::String>
219 void SetEvidenceFolderId(EvidenceFolderIdT&& value) { m_evidenceFolderIdHasBeenSet = true; m_evidenceFolderId = std::forward<EvidenceFolderIdT>(value); }
220 template<typename EvidenceFolderIdT = Aws::String>
221 Evidence& WithEvidenceFolderId(EvidenceFolderIdT&& value) { SetEvidenceFolderId(std::forward<EvidenceFolderIdT>(value)); return *this;}
223
225
228 inline const Aws::String& GetId() const { return m_id; }
229 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
230 template<typename IdT = Aws::String>
231 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
232 template<typename IdT = Aws::String>
233 Evidence& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
235
237
240 inline const Aws::String& GetAssessmentReportSelection() const { return m_assessmentReportSelection; }
241 inline bool AssessmentReportSelectionHasBeenSet() const { return m_assessmentReportSelectionHasBeenSet; }
242 template<typename AssessmentReportSelectionT = Aws::String>
243 void SetAssessmentReportSelection(AssessmentReportSelectionT&& value) { m_assessmentReportSelectionHasBeenSet = true; m_assessmentReportSelection = std::forward<AssessmentReportSelectionT>(value); }
244 template<typename AssessmentReportSelectionT = Aws::String>
245 Evidence& WithAssessmentReportSelection(AssessmentReportSelectionT&& value) { SetAssessmentReportSelection(std::forward<AssessmentReportSelectionT>(value)); return *this;}
247 private:
248
249 Aws::String m_dataSource;
250 bool m_dataSourceHasBeenSet = false;
251
252 Aws::String m_evidenceAwsAccountId;
253 bool m_evidenceAwsAccountIdHasBeenSet = false;
254
255 Aws::Utils::DateTime m_time{};
256 bool m_timeHasBeenSet = false;
257
258 Aws::String m_eventSource;
259 bool m_eventSourceHasBeenSet = false;
260
261 Aws::String m_eventName;
262 bool m_eventNameHasBeenSet = false;
263
264 Aws::String m_evidenceByType;
265 bool m_evidenceByTypeHasBeenSet = false;
266
267 Aws::Vector<Resource> m_resourcesIncluded;
268 bool m_resourcesIncludedHasBeenSet = false;
269
271 bool m_attributesHasBeenSet = false;
272
273 Aws::String m_iamId;
274 bool m_iamIdHasBeenSet = false;
275
276 Aws::String m_complianceCheck;
277 bool m_complianceCheckHasBeenSet = false;
278
279 Aws::String m_awsOrganization;
280 bool m_awsOrganizationHasBeenSet = false;
281
282 Aws::String m_awsAccountId;
283 bool m_awsAccountIdHasBeenSet = false;
284
285 Aws::String m_evidenceFolderId;
286 bool m_evidenceFolderIdHasBeenSet = false;
287
288 Aws::String m_id;
289 bool m_idHasBeenSet = false;
290
291 Aws::String m_assessmentReportSelection;
292 bool m_assessmentReportSelectionHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace AuditManager
297} // namespace Aws
void SetAwsAccountId(AwsAccountIdT &&value)
Definition Evidence.h:207
Evidence & WithId(IdT &&value)
Definition Evidence.h:233
void SetResourcesIncluded(ResourcesIncludedT &&value)
Definition Evidence.h:126
const Aws::String & GetAssessmentReportSelection() const
Definition Evidence.h:240
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Evidence.h:139
const Aws::String & GetAwsOrganization() const
Definition Evidence.h:192
AWS_AUDITMANAGER_API Evidence & operator=(Aws::Utils::Json::JsonView jsonValue)
Evidence & WithDataSource(DataSourceT &&value)
Definition Evidence.h:56
void SetTime(TimeT &&value)
Definition Evidence.h:78
void SetEvidenceByType(EvidenceByTypeT &&value)
Definition Evidence.h:114
const Aws::String & GetDataSource() const
Definition Evidence.h:51
const Aws::String & GetEvidenceByType() const
Definition Evidence.h:111
const Aws::Vector< Resource > & GetResourcesIncluded() const
Definition Evidence.h:123
const Aws::String & GetIamId() const
Definition Evidence.h:156
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:75
Evidence & WithAwsOrganization(AwsOrganizationT &&value)
Definition Evidence.h:197
AWS_AUDITMANAGER_API Evidence(Aws::Utils::Json::JsonView jsonValue)
Evidence & WithEventSource(EventSourceT &&value)
Definition Evidence.h:92
bool AssessmentReportSelectionHasBeenSet() const
Definition Evidence.h:241
void SetAwsOrganization(AwsOrganizationT &&value)
Definition Evidence.h:195
void SetEvidenceFolderId(EvidenceFolderIdT &&value)
Definition Evidence.h:219
const Aws::String & GetEventSource() const
Definition Evidence.h:87
Evidence & WithResourcesIncluded(ResourcesIncludedT &&value)
Definition Evidence.h:128
const Aws::String & GetEventName() const
Definition Evidence.h:99
void SetDataSource(DataSourceT &&value)
Definition Evidence.h:54
Evidence & WithEvidenceAwsAccountId(EvidenceAwsAccountIdT &&value)
Definition Evidence.h:68
const Aws::String & GetComplianceCheck() const
Definition Evidence.h:179
Evidence & WithEvidenceByType(EvidenceByTypeT &&value)
Definition Evidence.h:116
Evidence & WithEvidenceFolderId(EvidenceFolderIdT &&value)
Definition Evidence.h:221
const Aws::String & GetId() const
Definition Evidence.h:228
void SetEventName(EventNameT &&value)
Definition Evidence.h:102
void SetAssessmentReportSelection(AssessmentReportSelectionT &&value)
Definition Evidence.h:243
Evidence & WithIamId(IamIdT &&value)
Definition Evidence.h:161
Evidence & WithAwsAccountId(AwsAccountIdT &&value)
Definition Evidence.h:209
Evidence & WithComplianceCheck(ComplianceCheckT &&value)
Definition Evidence.h:184
Evidence & AddResourcesIncluded(ResourcesIncludedT &&value)
Definition Evidence.h:130
Evidence & WithEventName(EventNameT &&value)
Definition Evidence.h:104
Evidence & WithAttributes(AttributesT &&value)
Definition Evidence.h:144
void SetAttributes(AttributesT &&value)
Definition Evidence.h:142
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAwsAccountId() const
Definition Evidence.h:204
Evidence & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
Definition Evidence.h:146
void SetIamId(IamIdT &&value)
Definition Evidence.h:159
void SetEvidenceAwsAccountId(EvidenceAwsAccountIdT &&value)
Definition Evidence.h:66
Evidence & WithTime(TimeT &&value)
Definition Evidence.h:80
void SetComplianceCheck(ComplianceCheckT &&value)
Definition Evidence.h:182
void SetEventSource(EventSourceT &&value)
Definition Evidence.h:90
const Aws::String & GetEvidenceFolderId() const
Definition Evidence.h:216
Evidence & WithAssessmentReportSelection(AssessmentReportSelectionT &&value)
Definition Evidence.h:245
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