AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
AuditFinding.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/AuditFindingSeverity.h>
12#include <aws/iot/model/NonCompliantResource.h>
13#include <aws/iot/model/RelatedResource.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT {
25namespace Model {
26
33 public:
34 AWS_IOT_API AuditFinding() = default;
38
40
44 inline const Aws::String& GetFindingId() const { return m_findingId; }
45 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
46 template <typename FindingIdT = Aws::String>
47 void SetFindingId(FindingIdT&& value) {
48 m_findingIdHasBeenSet = true;
49 m_findingId = std::forward<FindingIdT>(value);
50 }
51 template <typename FindingIdT = Aws::String>
52 AuditFinding& WithFindingId(FindingIdT&& value) {
53 SetFindingId(std::forward<FindingIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetTaskId() const { return m_taskId; }
63 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
64 template <typename TaskIdT = Aws::String>
65 void SetTaskId(TaskIdT&& value) {
66 m_taskIdHasBeenSet = true;
67 m_taskId = std::forward<TaskIdT>(value);
68 }
69 template <typename TaskIdT = Aws::String>
70 AuditFinding& WithTaskId(TaskIdT&& value) {
71 SetTaskId(std::forward<TaskIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetCheckName() const { return m_checkName; }
81 inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; }
82 template <typename CheckNameT = Aws::String>
83 void SetCheckName(CheckNameT&& value) {
84 m_checkNameHasBeenSet = true;
85 m_checkName = std::forward<CheckNameT>(value);
86 }
87 template <typename CheckNameT = Aws::String>
88 AuditFinding& WithCheckName(CheckNameT&& value) {
89 SetCheckName(std::forward<CheckNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetTaskStartTime() const { return m_taskStartTime; }
99 inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; }
100 template <typename TaskStartTimeT = Aws::Utils::DateTime>
101 void SetTaskStartTime(TaskStartTimeT&& value) {
102 m_taskStartTimeHasBeenSet = true;
103 m_taskStartTime = std::forward<TaskStartTimeT>(value);
104 }
105 template <typename TaskStartTimeT = Aws::Utils::DateTime>
106 AuditFinding& WithTaskStartTime(TaskStartTimeT&& value) {
107 SetTaskStartTime(std::forward<TaskStartTimeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetFindingTime() const { return m_findingTime; }
117 inline bool FindingTimeHasBeenSet() const { return m_findingTimeHasBeenSet; }
118 template <typename FindingTimeT = Aws::Utils::DateTime>
119 void SetFindingTime(FindingTimeT&& value) {
120 m_findingTimeHasBeenSet = true;
121 m_findingTime = std::forward<FindingTimeT>(value);
122 }
123 template <typename FindingTimeT = Aws::Utils::DateTime>
124 AuditFinding& WithFindingTime(FindingTimeT&& value) {
125 SetFindingTime(std::forward<FindingTimeT>(value));
126 return *this;
127 }
129
131
134 inline AuditFindingSeverity GetSeverity() const { return m_severity; }
135 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
137 m_severityHasBeenSet = true;
138 m_severity = value;
139 }
141 SetSeverity(value);
142 return *this;
143 }
145
147
150 inline const NonCompliantResource& GetNonCompliantResource() const { return m_nonCompliantResource; }
151 inline bool NonCompliantResourceHasBeenSet() const { return m_nonCompliantResourceHasBeenSet; }
152 template <typename NonCompliantResourceT = NonCompliantResource>
153 void SetNonCompliantResource(NonCompliantResourceT&& value) {
154 m_nonCompliantResourceHasBeenSet = true;
155 m_nonCompliantResource = std::forward<NonCompliantResourceT>(value);
156 }
157 template <typename NonCompliantResourceT = NonCompliantResource>
158 AuditFinding& WithNonCompliantResource(NonCompliantResourceT&& value) {
159 SetNonCompliantResource(std::forward<NonCompliantResourceT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Vector<RelatedResource>& GetRelatedResources() const { return m_relatedResources; }
169 inline bool RelatedResourcesHasBeenSet() const { return m_relatedResourcesHasBeenSet; }
170 template <typename RelatedResourcesT = Aws::Vector<RelatedResource>>
171 void SetRelatedResources(RelatedResourcesT&& value) {
172 m_relatedResourcesHasBeenSet = true;
173 m_relatedResources = std::forward<RelatedResourcesT>(value);
174 }
175 template <typename RelatedResourcesT = Aws::Vector<RelatedResource>>
176 AuditFinding& WithRelatedResources(RelatedResourcesT&& value) {
177 SetRelatedResources(std::forward<RelatedResourcesT>(value));
178 return *this;
179 }
180 template <typename RelatedResourcesT = RelatedResource>
181 AuditFinding& AddRelatedResources(RelatedResourcesT&& value) {
182 m_relatedResourcesHasBeenSet = true;
183 m_relatedResources.emplace_back(std::forward<RelatedResourcesT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetReasonForNonCompliance() const { return m_reasonForNonCompliance; }
193 inline bool ReasonForNonComplianceHasBeenSet() const { return m_reasonForNonComplianceHasBeenSet; }
194 template <typename ReasonForNonComplianceT = Aws::String>
195 void SetReasonForNonCompliance(ReasonForNonComplianceT&& value) {
196 m_reasonForNonComplianceHasBeenSet = true;
197 m_reasonForNonCompliance = std::forward<ReasonForNonComplianceT>(value);
198 }
199 template <typename ReasonForNonComplianceT = Aws::String>
200 AuditFinding& WithReasonForNonCompliance(ReasonForNonComplianceT&& value) {
201 SetReasonForNonCompliance(std::forward<ReasonForNonComplianceT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::String& GetReasonForNonComplianceCode() const { return m_reasonForNonComplianceCode; }
211 inline bool ReasonForNonComplianceCodeHasBeenSet() const { return m_reasonForNonComplianceCodeHasBeenSet; }
212 template <typename ReasonForNonComplianceCodeT = Aws::String>
213 void SetReasonForNonComplianceCode(ReasonForNonComplianceCodeT&& value) {
214 m_reasonForNonComplianceCodeHasBeenSet = true;
215 m_reasonForNonComplianceCode = std::forward<ReasonForNonComplianceCodeT>(value);
216 }
217 template <typename ReasonForNonComplianceCodeT = Aws::String>
218 AuditFinding& WithReasonForNonComplianceCode(ReasonForNonComplianceCodeT&& value) {
219 SetReasonForNonComplianceCode(std::forward<ReasonForNonComplianceCodeT>(value));
220 return *this;
221 }
223
225
229 inline bool GetIsSuppressed() const { return m_isSuppressed; }
230 inline bool IsSuppressedHasBeenSet() const { return m_isSuppressedHasBeenSet; }
231 inline void SetIsSuppressed(bool value) {
232 m_isSuppressedHasBeenSet = true;
233 m_isSuppressed = value;
234 }
235 inline AuditFinding& WithIsSuppressed(bool value) {
236 SetIsSuppressed(value);
237 return *this;
238 }
240 private:
241 Aws::String m_findingId;
242
243 Aws::String m_taskId;
244
245 Aws::String m_checkName;
246
247 Aws::Utils::DateTime m_taskStartTime{};
248
249 Aws::Utils::DateTime m_findingTime{};
250
252
253 NonCompliantResource m_nonCompliantResource;
254
255 Aws::Vector<RelatedResource> m_relatedResources;
256
257 Aws::String m_reasonForNonCompliance;
258
259 Aws::String m_reasonForNonComplianceCode;
260
261 bool m_isSuppressed{false};
262 bool m_findingIdHasBeenSet = false;
263 bool m_taskIdHasBeenSet = false;
264 bool m_checkNameHasBeenSet = false;
265 bool m_taskStartTimeHasBeenSet = false;
266 bool m_findingTimeHasBeenSet = false;
267 bool m_severityHasBeenSet = false;
268 bool m_nonCompliantResourceHasBeenSet = false;
269 bool m_relatedResourcesHasBeenSet = false;
270 bool m_reasonForNonComplianceHasBeenSet = false;
271 bool m_reasonForNonComplianceCodeHasBeenSet = false;
272 bool m_isSuppressedHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace IoT
277} // namespace Aws
void SetIsSuppressed(bool value)
void SetTaskStartTime(TaskStartTimeT &&value)
void SetFindingTime(FindingTimeT &&value)
AuditFinding & WithFindingTime(FindingTimeT &&value)
const NonCompliantResource & GetNonCompliantResource() const
AuditFinding & AddRelatedResources(RelatedResourcesT &&value)
const Aws::String & GetCheckName() const
AuditFinding & WithSeverity(AuditFindingSeverity value)
void SetCheckName(CheckNameT &&value)
AuditFinding & WithReasonForNonCompliance(ReasonForNonComplianceT &&value)
AuditFinding & WithFindingId(FindingIdT &&value)
AuditFinding & WithRelatedResources(RelatedResourcesT &&value)
AuditFinding & WithIsSuppressed(bool value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AuditFinding & WithReasonForNonComplianceCode(ReasonForNonComplianceCodeT &&value)
AuditFindingSeverity GetSeverity() const
void SetReasonForNonComplianceCode(ReasonForNonComplianceCodeT &&value)
const Aws::String & GetReasonForNonComplianceCode() const
void SetNonCompliantResource(NonCompliantResourceT &&value)
AWS_IOT_API AuditFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RelatedResource > & GetRelatedResources() const
AWS_IOT_API AuditFinding(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFindingTime() const
void SetFindingId(FindingIdT &&value)
bool ReasonForNonComplianceCodeHasBeenSet() const
void SetReasonForNonCompliance(ReasonForNonComplianceT &&value)
AuditFinding & WithCheckName(CheckNameT &&value)
void SetTaskId(TaskIdT &&value)
void SetSeverity(AuditFindingSeverity value)
AuditFinding & WithTaskStartTime(TaskStartTimeT &&value)
bool RelatedResourcesHasBeenSet() const
AWS_IOT_API AuditFinding()=default
AuditFinding & WithNonCompliantResource(NonCompliantResourceT &&value)
AuditFinding & WithTaskId(TaskIdT &&value)
bool ReasonForNonComplianceHasBeenSet() const
const Aws::String & GetFindingId() const
const Aws::String & GetTaskId() const
const Aws::String & GetReasonForNonCompliance() const
void SetRelatedResources(RelatedResourcesT &&value)
bool NonCompliantResourceHasBeenSet() const
const Aws::Utils::DateTime & GetTaskStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue