AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuditFinding.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/iot/model/AuditFindingSeverity.h>
11#include <aws/iot/model/NonCompliantResource.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iot/model/RelatedResource.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 IoT
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_IOT_API AuditFinding() = default;
43
44
46
50 inline const Aws::String& GetFindingId() const { return m_findingId; }
51 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
52 template<typename FindingIdT = Aws::String>
53 void SetFindingId(FindingIdT&& value) { m_findingIdHasBeenSet = true; m_findingId = std::forward<FindingIdT>(value); }
54 template<typename FindingIdT = Aws::String>
55 AuditFinding& WithFindingId(FindingIdT&& value) { SetFindingId(std::forward<FindingIdT>(value)); return *this;}
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) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
66 template<typename TaskIdT = Aws::String>
67 AuditFinding& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetCheckName() const { return m_checkName; }
75 inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; }
76 template<typename CheckNameT = Aws::String>
77 void SetCheckName(CheckNameT&& value) { m_checkNameHasBeenSet = true; m_checkName = std::forward<CheckNameT>(value); }
78 template<typename CheckNameT = Aws::String>
79 AuditFinding& WithCheckName(CheckNameT&& value) { SetCheckName(std::forward<CheckNameT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetTaskStartTime() const { return m_taskStartTime; }
87 inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; }
88 template<typename TaskStartTimeT = Aws::Utils::DateTime>
89 void SetTaskStartTime(TaskStartTimeT&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::forward<TaskStartTimeT>(value); }
90 template<typename TaskStartTimeT = Aws::Utils::DateTime>
91 AuditFinding& WithTaskStartTime(TaskStartTimeT&& value) { SetTaskStartTime(std::forward<TaskStartTimeT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetFindingTime() const { return m_findingTime; }
99 inline bool FindingTimeHasBeenSet() const { return m_findingTimeHasBeenSet; }
100 template<typename FindingTimeT = Aws::Utils::DateTime>
101 void SetFindingTime(FindingTimeT&& value) { m_findingTimeHasBeenSet = true; m_findingTime = std::forward<FindingTimeT>(value); }
102 template<typename FindingTimeT = Aws::Utils::DateTime>
103 AuditFinding& WithFindingTime(FindingTimeT&& value) { SetFindingTime(std::forward<FindingTimeT>(value)); return *this;}
105
107
110 inline AuditFindingSeverity GetSeverity() const { return m_severity; }
111 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
112 inline void SetSeverity(AuditFindingSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
113 inline AuditFinding& WithSeverity(AuditFindingSeverity value) { SetSeverity(value); return *this;}
115
117
120 inline const NonCompliantResource& GetNonCompliantResource() const { return m_nonCompliantResource; }
121 inline bool NonCompliantResourceHasBeenSet() const { return m_nonCompliantResourceHasBeenSet; }
122 template<typename NonCompliantResourceT = NonCompliantResource>
123 void SetNonCompliantResource(NonCompliantResourceT&& value) { m_nonCompliantResourceHasBeenSet = true; m_nonCompliantResource = std::forward<NonCompliantResourceT>(value); }
124 template<typename NonCompliantResourceT = NonCompliantResource>
125 AuditFinding& WithNonCompliantResource(NonCompliantResourceT&& value) { SetNonCompliantResource(std::forward<NonCompliantResourceT>(value)); return *this;}
127
129
132 inline const Aws::Vector<RelatedResource>& GetRelatedResources() const { return m_relatedResources; }
133 inline bool RelatedResourcesHasBeenSet() const { return m_relatedResourcesHasBeenSet; }
134 template<typename RelatedResourcesT = Aws::Vector<RelatedResource>>
135 void SetRelatedResources(RelatedResourcesT&& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources = std::forward<RelatedResourcesT>(value); }
136 template<typename RelatedResourcesT = Aws::Vector<RelatedResource>>
137 AuditFinding& WithRelatedResources(RelatedResourcesT&& value) { SetRelatedResources(std::forward<RelatedResourcesT>(value)); return *this;}
138 template<typename RelatedResourcesT = RelatedResource>
139 AuditFinding& AddRelatedResources(RelatedResourcesT&& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources.emplace_back(std::forward<RelatedResourcesT>(value)); return *this; }
141
143
146 inline const Aws::String& GetReasonForNonCompliance() const { return m_reasonForNonCompliance; }
147 inline bool ReasonForNonComplianceHasBeenSet() const { return m_reasonForNonComplianceHasBeenSet; }
148 template<typename ReasonForNonComplianceT = Aws::String>
149 void SetReasonForNonCompliance(ReasonForNonComplianceT&& value) { m_reasonForNonComplianceHasBeenSet = true; m_reasonForNonCompliance = std::forward<ReasonForNonComplianceT>(value); }
150 template<typename ReasonForNonComplianceT = Aws::String>
151 AuditFinding& WithReasonForNonCompliance(ReasonForNonComplianceT&& value) { SetReasonForNonCompliance(std::forward<ReasonForNonComplianceT>(value)); return *this;}
153
155
158 inline const Aws::String& GetReasonForNonComplianceCode() const { return m_reasonForNonComplianceCode; }
159 inline bool ReasonForNonComplianceCodeHasBeenSet() const { return m_reasonForNonComplianceCodeHasBeenSet; }
160 template<typename ReasonForNonComplianceCodeT = Aws::String>
161 void SetReasonForNonComplianceCode(ReasonForNonComplianceCodeT&& value) { m_reasonForNonComplianceCodeHasBeenSet = true; m_reasonForNonComplianceCode = std::forward<ReasonForNonComplianceCodeT>(value); }
162 template<typename ReasonForNonComplianceCodeT = Aws::String>
163 AuditFinding& WithReasonForNonComplianceCode(ReasonForNonComplianceCodeT&& value) { SetReasonForNonComplianceCode(std::forward<ReasonForNonComplianceCodeT>(value)); return *this;}
165
167
171 inline bool GetIsSuppressed() const { return m_isSuppressed; }
172 inline bool IsSuppressedHasBeenSet() const { return m_isSuppressedHasBeenSet; }
173 inline void SetIsSuppressed(bool value) { m_isSuppressedHasBeenSet = true; m_isSuppressed = value; }
174 inline AuditFinding& WithIsSuppressed(bool value) { SetIsSuppressed(value); return *this;}
176 private:
177
178 Aws::String m_findingId;
179 bool m_findingIdHasBeenSet = false;
180
181 Aws::String m_taskId;
182 bool m_taskIdHasBeenSet = false;
183
184 Aws::String m_checkName;
185 bool m_checkNameHasBeenSet = false;
186
187 Aws::Utils::DateTime m_taskStartTime{};
188 bool m_taskStartTimeHasBeenSet = false;
189
190 Aws::Utils::DateTime m_findingTime{};
191 bool m_findingTimeHasBeenSet = false;
192
194 bool m_severityHasBeenSet = false;
195
196 NonCompliantResource m_nonCompliantResource;
197 bool m_nonCompliantResourceHasBeenSet = false;
198
199 Aws::Vector<RelatedResource> m_relatedResources;
200 bool m_relatedResourcesHasBeenSet = false;
201
202 Aws::String m_reasonForNonCompliance;
203 bool m_reasonForNonComplianceHasBeenSet = false;
204
205 Aws::String m_reasonForNonComplianceCode;
206 bool m_reasonForNonComplianceCodeHasBeenSet = false;
207
208 bool m_isSuppressed{false};
209 bool m_isSuppressedHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace IoT
214} // 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