/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AuditManager { namespace Model { /** *

A system asset that's evaluated in an Audit Manager assessment. *

See Also:

AWS * API Reference

*/ class Resource { public: AWS_AUDITMANAGER_API Resource(); AWS_AUDITMANAGER_API Resource(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline Resource& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline Resource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline Resource& WithArn(const char* value) { SetArn(value); return *this;} /** *

The value of the resource.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the resource.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the resource.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the resource.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the resource.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the resource.

*/ inline Resource& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the resource.

*/ inline Resource& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the resource.

*/ inline Resource& WithValue(const char* value) { SetValue(value); return *this;} /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline const Aws::String& GetComplianceCheck() const{ return m_complianceCheck; } /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline bool ComplianceCheckHasBeenSet() const { return m_complianceCheckHasBeenSet; } /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline void SetComplianceCheck(const Aws::String& value) { m_complianceCheckHasBeenSet = true; m_complianceCheck = value; } /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline void SetComplianceCheck(Aws::String&& value) { m_complianceCheckHasBeenSet = true; m_complianceCheck = std::move(value); } /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline void SetComplianceCheck(const char* value) { m_complianceCheckHasBeenSet = true; m_complianceCheck.assign(value); } /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline Resource& WithComplianceCheck(const Aws::String& value) { SetComplianceCheck(value); return *this;} /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline Resource& WithComplianceCheck(Aws::String&& value) { SetComplianceCheck(std::move(value)); return *this;} /** *

The evaluation status for a resource that was assessed when collecting * compliance check evidence.

  • Audit Manager classes the resource * as non-compliant if Security Hub reports a Fail result, or if Config * reports a Non-compliant result.

  • Audit Manager classes * the resource as compliant if Security Hub reports a Pass result, or if * Config reports a Compliant result.

  • If a compliance * check isn't available or applicable, then no compliance evaluation can be made * for that resource. This is the case if a resource assessment uses Config or * Security Hub as the underlying data source type, but those services aren't * enabled. This is also the case if the resource assessment uses an underlying * data source type that doesn't support compliance checks (such as manual * evidence, Amazon Web Services API calls, or CloudTrail).

*/ inline Resource& WithComplianceCheck(const char* value) { SetComplianceCheck(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; Aws::String m_complianceCheck; bool m_complianceCheckHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws