/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the audit check.See Also:
AWS
* API Reference
The completion status of this check. One of "IN_PROGRESS", * "WAITING_FOR_DATA_COLLECTION", "CANCELED", "COMPLETED_COMPLIANT", * "COMPLETED_NON_COMPLIANT", or "FAILED".
*/ inline const AuditCheckRunStatus& GetCheckRunStatus() const{ return m_checkRunStatus; } /** *The completion status of this check. One of "IN_PROGRESS", * "WAITING_FOR_DATA_COLLECTION", "CANCELED", "COMPLETED_COMPLIANT", * "COMPLETED_NON_COMPLIANT", or "FAILED".
*/ inline bool CheckRunStatusHasBeenSet() const { return m_checkRunStatusHasBeenSet; } /** *The completion status of this check. One of "IN_PROGRESS", * "WAITING_FOR_DATA_COLLECTION", "CANCELED", "COMPLETED_COMPLIANT", * "COMPLETED_NON_COMPLIANT", or "FAILED".
*/ inline void SetCheckRunStatus(const AuditCheckRunStatus& value) { m_checkRunStatusHasBeenSet = true; m_checkRunStatus = value; } /** *The completion status of this check. One of "IN_PROGRESS", * "WAITING_FOR_DATA_COLLECTION", "CANCELED", "COMPLETED_COMPLIANT", * "COMPLETED_NON_COMPLIANT", or "FAILED".
*/ inline void SetCheckRunStatus(AuditCheckRunStatus&& value) { m_checkRunStatusHasBeenSet = true; m_checkRunStatus = std::move(value); } /** *The completion status of this check. One of "IN_PROGRESS", * "WAITING_FOR_DATA_COLLECTION", "CANCELED", "COMPLETED_COMPLIANT", * "COMPLETED_NON_COMPLIANT", or "FAILED".
*/ inline AuditCheckDetails& WithCheckRunStatus(const AuditCheckRunStatus& value) { SetCheckRunStatus(value); return *this;} /** *The completion status of this check. One of "IN_PROGRESS", * "WAITING_FOR_DATA_COLLECTION", "CANCELED", "COMPLETED_COMPLIANT", * "COMPLETED_NON_COMPLIANT", or "FAILED".
*/ inline AuditCheckDetails& WithCheckRunStatus(AuditCheckRunStatus&& value) { SetCheckRunStatus(std::move(value)); return *this;} /** *True if the check is complete and found all resources compliant.
*/ inline bool GetCheckCompliant() const{ return m_checkCompliant; } /** *True if the check is complete and found all resources compliant.
*/ inline bool CheckCompliantHasBeenSet() const { return m_checkCompliantHasBeenSet; } /** *True if the check is complete and found all resources compliant.
*/ inline void SetCheckCompliant(bool value) { m_checkCompliantHasBeenSet = true; m_checkCompliant = value; } /** *True if the check is complete and found all resources compliant.
*/ inline AuditCheckDetails& WithCheckCompliant(bool value) { SetCheckCompliant(value); return *this;} /** *The number of resources on which the check was performed.
*/ inline long long GetTotalResourcesCount() const{ return m_totalResourcesCount; } /** *The number of resources on which the check was performed.
*/ inline bool TotalResourcesCountHasBeenSet() const { return m_totalResourcesCountHasBeenSet; } /** *The number of resources on which the check was performed.
*/ inline void SetTotalResourcesCount(long long value) { m_totalResourcesCountHasBeenSet = true; m_totalResourcesCount = value; } /** *The number of resources on which the check was performed.
*/ inline AuditCheckDetails& WithTotalResourcesCount(long long value) { SetTotalResourcesCount(value); return *this;} /** *The number of resources that were found noncompliant during the check.
*/ inline long long GetNonCompliantResourcesCount() const{ return m_nonCompliantResourcesCount; } /** *The number of resources that were found noncompliant during the check.
*/ inline bool NonCompliantResourcesCountHasBeenSet() const { return m_nonCompliantResourcesCountHasBeenSet; } /** *The number of resources that were found noncompliant during the check.
*/ inline void SetNonCompliantResourcesCount(long long value) { m_nonCompliantResourcesCountHasBeenSet = true; m_nonCompliantResourcesCount = value; } /** *The number of resources that were found noncompliant during the check.
*/ inline AuditCheckDetails& WithNonCompliantResourcesCount(long long value) { SetNonCompliantResourcesCount(value); return *this;} /** *Describes how many of the non-compliant resources created during the * evaluation of an audit check were marked as suppressed.
*/ inline long long GetSuppressedNonCompliantResourcesCount() const{ return m_suppressedNonCompliantResourcesCount; } /** *Describes how many of the non-compliant resources created during the * evaluation of an audit check were marked as suppressed.
*/ inline bool SuppressedNonCompliantResourcesCountHasBeenSet() const { return m_suppressedNonCompliantResourcesCountHasBeenSet; } /** *Describes how many of the non-compliant resources created during the * evaluation of an audit check were marked as suppressed.
*/ inline void SetSuppressedNonCompliantResourcesCount(long long value) { m_suppressedNonCompliantResourcesCountHasBeenSet = true; m_suppressedNonCompliantResourcesCount = value; } /** *Describes how many of the non-compliant resources created during the * evaluation of an audit check were marked as suppressed.
*/ inline AuditCheckDetails& WithSuppressedNonCompliantResourcesCount(long long value) { SetSuppressedNonCompliantResourcesCount(value); return *this;} /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline AuditCheckDetails& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline AuditCheckDetails& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The code of any error encountered when this check is performed during this * audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
*/ inline AuditCheckDetails& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline AuditCheckDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline AuditCheckDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The message associated with any error encountered when this check is * performed during this audit.
*/ inline AuditCheckDetails& WithMessage(const char* value) { SetMessage(value); return *this;} private: AuditCheckRunStatus m_checkRunStatus; bool m_checkRunStatusHasBeenSet = false; bool m_checkCompliant; bool m_checkCompliantHasBeenSet = false; long long m_totalResourcesCount; bool m_totalResourcesCountHasBeenSet = false; long long m_nonCompliantResourcesCount; bool m_nonCompliantResourcesCountHasBeenSet = false; long long m_suppressedNonCompliantResourcesCount; bool m_suppressedNonCompliantResourcesCountHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws