/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The findings (results) of the audit.See Also:
AWS
* API Reference
A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline const Aws::String& GetFindingId() const{ return m_findingId; } /** *A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; } /** *A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline void SetFindingId(const Aws::String& value) { m_findingIdHasBeenSet = true; m_findingId = value; } /** *A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline void SetFindingId(Aws::String&& value) { m_findingIdHasBeenSet = true; m_findingId = std::move(value); } /** *A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline void SetFindingId(const char* value) { m_findingIdHasBeenSet = true; m_findingId.assign(value); } /** *A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline AuditFinding& WithFindingId(const Aws::String& value) { SetFindingId(value); return *this;} /** *A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline AuditFinding& WithFindingId(Aws::String&& value) { SetFindingId(std::move(value)); return *this;} /** *A unique identifier for this set of audit findings. This identifier is used * to apply mitigation tasks to one or more sets of findings.
*/ inline AuditFinding& WithFindingId(const char* value) { SetFindingId(value); return *this;} /** *The ID of the audit that generated this result (finding).
*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *The ID of the audit that generated this result (finding).
*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *The ID of the audit that generated this result (finding).
*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *The ID of the audit that generated this result (finding).
*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *The ID of the audit that generated this result (finding).
*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *The ID of the audit that generated this result (finding).
*/ inline AuditFinding& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *The ID of the audit that generated this result (finding).
*/ inline AuditFinding& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *The ID of the audit that generated this result (finding).
*/ inline AuditFinding& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *The audit check that generated this result.
*/ inline const Aws::String& GetCheckName() const{ return m_checkName; } /** *The audit check that generated this result.
*/ inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; } /** *The audit check that generated this result.
*/ inline void SetCheckName(const Aws::String& value) { m_checkNameHasBeenSet = true; m_checkName = value; } /** *The audit check that generated this result.
*/ inline void SetCheckName(Aws::String&& value) { m_checkNameHasBeenSet = true; m_checkName = std::move(value); } /** *The audit check that generated this result.
*/ inline void SetCheckName(const char* value) { m_checkNameHasBeenSet = true; m_checkName.assign(value); } /** *The audit check that generated this result.
*/ inline AuditFinding& WithCheckName(const Aws::String& value) { SetCheckName(value); return *this;} /** *The audit check that generated this result.
*/ inline AuditFinding& WithCheckName(Aws::String&& value) { SetCheckName(std::move(value)); return *this;} /** *The audit check that generated this result.
*/ inline AuditFinding& WithCheckName(const char* value) { SetCheckName(value); return *this;} /** *The time the audit started.
*/ inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; } /** *The time the audit started.
*/ inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; } /** *The time the audit started.
*/ inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = value; } /** *The time the audit started.
*/ inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::move(value); } /** *The time the audit started.
*/ inline AuditFinding& WithTaskStartTime(const Aws::Utils::DateTime& value) { SetTaskStartTime(value); return *this;} /** *The time the audit started.
*/ inline AuditFinding& WithTaskStartTime(Aws::Utils::DateTime&& value) { SetTaskStartTime(std::move(value)); return *this;} /** *The time the result (finding) was discovered.
*/ inline const Aws::Utils::DateTime& GetFindingTime() const{ return m_findingTime; } /** *The time the result (finding) was discovered.
*/ inline bool FindingTimeHasBeenSet() const { return m_findingTimeHasBeenSet; } /** *The time the result (finding) was discovered.
*/ inline void SetFindingTime(const Aws::Utils::DateTime& value) { m_findingTimeHasBeenSet = true; m_findingTime = value; } /** *The time the result (finding) was discovered.
*/ inline void SetFindingTime(Aws::Utils::DateTime&& value) { m_findingTimeHasBeenSet = true; m_findingTime = std::move(value); } /** *The time the result (finding) was discovered.
*/ inline AuditFinding& WithFindingTime(const Aws::Utils::DateTime& value) { SetFindingTime(value); return *this;} /** *The time the result (finding) was discovered.
*/ inline AuditFinding& WithFindingTime(Aws::Utils::DateTime&& value) { SetFindingTime(std::move(value)); return *this;} /** *The severity of the result (finding).
*/ inline const AuditFindingSeverity& GetSeverity() const{ return m_severity; } /** *The severity of the result (finding).
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *The severity of the result (finding).
*/ inline void SetSeverity(const AuditFindingSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *The severity of the result (finding).
*/ inline void SetSeverity(AuditFindingSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *The severity of the result (finding).
*/ inline AuditFinding& WithSeverity(const AuditFindingSeverity& value) { SetSeverity(value); return *this;} /** *The severity of the result (finding).
*/ inline AuditFinding& WithSeverity(AuditFindingSeverity&& value) { SetSeverity(std::move(value)); return *this;} /** *The resource that was found to be noncompliant with the audit check.
*/ inline const NonCompliantResource& GetNonCompliantResource() const{ return m_nonCompliantResource; } /** *The resource that was found to be noncompliant with the audit check.
*/ inline bool NonCompliantResourceHasBeenSet() const { return m_nonCompliantResourceHasBeenSet; } /** *The resource that was found to be noncompliant with the audit check.
*/ inline void SetNonCompliantResource(const NonCompliantResource& value) { m_nonCompliantResourceHasBeenSet = true; m_nonCompliantResource = value; } /** *The resource that was found to be noncompliant with the audit check.
*/ inline void SetNonCompliantResource(NonCompliantResource&& value) { m_nonCompliantResourceHasBeenSet = true; m_nonCompliantResource = std::move(value); } /** *The resource that was found to be noncompliant with the audit check.
*/ inline AuditFinding& WithNonCompliantResource(const NonCompliantResource& value) { SetNonCompliantResource(value); return *this;} /** *The resource that was found to be noncompliant with the audit check.
*/ inline AuditFinding& WithNonCompliantResource(NonCompliantResource&& value) { SetNonCompliantResource(std::move(value)); return *this;} /** *The list of related resources.
*/ inline const Aws::VectorThe list of related resources.
*/ inline bool RelatedResourcesHasBeenSet() const { return m_relatedResourcesHasBeenSet; } /** *The list of related resources.
*/ inline void SetRelatedResources(const Aws::VectorThe list of related resources.
*/ inline void SetRelatedResources(Aws::VectorThe list of related resources.
*/ inline AuditFinding& WithRelatedResources(const Aws::VectorThe list of related resources.
*/ inline AuditFinding& WithRelatedResources(Aws::VectorThe list of related resources.
*/ inline AuditFinding& AddRelatedResources(const RelatedResource& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources.push_back(value); return *this; } /** *The list of related resources.
*/ inline AuditFinding& AddRelatedResources(RelatedResource&& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources.push_back(std::move(value)); return *this; } /** *The reason the resource was noncompliant.
*/ inline const Aws::String& GetReasonForNonCompliance() const{ return m_reasonForNonCompliance; } /** *The reason the resource was noncompliant.
*/ inline bool ReasonForNonComplianceHasBeenSet() const { return m_reasonForNonComplianceHasBeenSet; } /** *The reason the resource was noncompliant.
*/ inline void SetReasonForNonCompliance(const Aws::String& value) { m_reasonForNonComplianceHasBeenSet = true; m_reasonForNonCompliance = value; } /** *The reason the resource was noncompliant.
*/ inline void SetReasonForNonCompliance(Aws::String&& value) { m_reasonForNonComplianceHasBeenSet = true; m_reasonForNonCompliance = std::move(value); } /** *The reason the resource was noncompliant.
*/ inline void SetReasonForNonCompliance(const char* value) { m_reasonForNonComplianceHasBeenSet = true; m_reasonForNonCompliance.assign(value); } /** *The reason the resource was noncompliant.
*/ inline AuditFinding& WithReasonForNonCompliance(const Aws::String& value) { SetReasonForNonCompliance(value); return *this;} /** *The reason the resource was noncompliant.
*/ inline AuditFinding& WithReasonForNonCompliance(Aws::String&& value) { SetReasonForNonCompliance(std::move(value)); return *this;} /** *The reason the resource was noncompliant.
*/ inline AuditFinding& WithReasonForNonCompliance(const char* value) { SetReasonForNonCompliance(value); return *this;} /** *A code that indicates the reason that the resource was noncompliant.
*/ inline const Aws::String& GetReasonForNonComplianceCode() const{ return m_reasonForNonComplianceCode; } /** *A code that indicates the reason that the resource was noncompliant.
*/ inline bool ReasonForNonComplianceCodeHasBeenSet() const { return m_reasonForNonComplianceCodeHasBeenSet; } /** *A code that indicates the reason that the resource was noncompliant.
*/ inline void SetReasonForNonComplianceCode(const Aws::String& value) { m_reasonForNonComplianceCodeHasBeenSet = true; m_reasonForNonComplianceCode = value; } /** *A code that indicates the reason that the resource was noncompliant.
*/ inline void SetReasonForNonComplianceCode(Aws::String&& value) { m_reasonForNonComplianceCodeHasBeenSet = true; m_reasonForNonComplianceCode = std::move(value); } /** *A code that indicates the reason that the resource was noncompliant.
*/ inline void SetReasonForNonComplianceCode(const char* value) { m_reasonForNonComplianceCodeHasBeenSet = true; m_reasonForNonComplianceCode.assign(value); } /** *A code that indicates the reason that the resource was noncompliant.
*/ inline AuditFinding& WithReasonForNonComplianceCode(const Aws::String& value) { SetReasonForNonComplianceCode(value); return *this;} /** *A code that indicates the reason that the resource was noncompliant.
*/ inline AuditFinding& WithReasonForNonComplianceCode(Aws::String&& value) { SetReasonForNonComplianceCode(std::move(value)); return *this;} /** *A code that indicates the reason that the resource was noncompliant.
*/ inline AuditFinding& WithReasonForNonComplianceCode(const char* value) { SetReasonForNonComplianceCode(value); return *this;} /** *Indicates whether the audit finding was suppressed or not during reporting. *
*/ inline bool GetIsSuppressed() const{ return m_isSuppressed; } /** *Indicates whether the audit finding was suppressed or not during reporting. *
*/ inline bool IsSuppressedHasBeenSet() const { return m_isSuppressedHasBeenSet; } /** *Indicates whether the audit finding was suppressed or not during reporting. *
*/ inline void SetIsSuppressed(bool value) { m_isSuppressedHasBeenSet = true; m_isSuppressed = value; } /** *Indicates whether the audit finding was suppressed or not during reporting. *
*/ inline AuditFinding& WithIsSuppressed(bool value) { SetIsSuppressed(value); return *this;} private: Aws::String m_findingId; bool m_findingIdHasBeenSet = false; Aws::String m_taskId; bool m_taskIdHasBeenSet = false; Aws::String m_checkName; bool m_checkNameHasBeenSet = false; Aws::Utils::DateTime m_taskStartTime; bool m_taskStartTimeHasBeenSet = false; Aws::Utils::DateTime m_findingTime; bool m_findingTimeHasBeenSet = false; AuditFindingSeverity m_severity; bool m_severityHasBeenSet = false; NonCompliantResource m_nonCompliantResource; bool m_nonCompliantResourceHasBeenSet = false; Aws::Vector