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>
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>
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>
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>
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>
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>
122 template<
typename NonCompliantResourceT = NonCompliantResource>
123 void SetNonCompliantResource(NonCompliantResourceT&& value) { m_nonCompliantResourceHasBeenSet =
true; m_nonCompliantResource = std::forward<NonCompliantResourceT>(value); }
124 template<
typename NonCompliantResourceT = NonCompliantResource>
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>>
138 template<
typename RelatedResourcesT = RelatedResource>
139 AuditFinding&
AddRelatedResources(RelatedResourcesT&& value) { m_relatedResourcesHasBeenSet =
true; m_relatedResources.emplace_back(std::forward<RelatedResourcesT>(value));
return *
this; }
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>
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>
173 inline void SetIsSuppressed(
bool value) { m_isSuppressedHasBeenSet =
true; m_isSuppressed = value; }
179 bool m_findingIdHasBeenSet =
false;
182 bool m_taskIdHasBeenSet =
false;
185 bool m_checkNameHasBeenSet =
false;
188 bool m_taskStartTimeHasBeenSet =
false;
191 bool m_findingTimeHasBeenSet =
false;
194 bool m_severityHasBeenSet =
false;
196 NonCompliantResource m_nonCompliantResource;
197 bool m_nonCompliantResourceHasBeenSet =
false;
200 bool m_relatedResourcesHasBeenSet =
false;
203 bool m_reasonForNonComplianceHasBeenSet =
false;
206 bool m_reasonForNonComplianceCodeHasBeenSet =
false;
208 bool m_isSuppressed{
false};
209 bool m_isSuppressedHasBeenSet =
false;
bool FindingIdHasBeenSet() const
void SetIsSuppressed(bool value)
void SetTaskStartTime(TaskStartTimeT &&value)
void SetFindingTime(FindingTimeT &&value)
bool TaskIdHasBeenSet() const
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
bool GetIsSuppressed() 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
bool SeverityHasBeenSet() const
bool CheckNameHasBeenSet() 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 FindingTimeHasBeenSet() const
bool IsSuppressedHasBeenSet() const
bool ReasonForNonComplianceHasBeenSet() const
const Aws::String & GetFindingId() const
const Aws::String & GetTaskId() const
const Aws::String & GetReasonForNonCompliance() const
bool TaskStartTimeHasBeenSet() 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