/** * 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 SecurityHub { namespace Model { /** *

Provides information about the status of the investigation into a * finding.

See Also:

AWS * API Reference

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

The status of the investigation into the finding. The workflow status is * specific to an individual finding. It does not affect the generation of new * findings. For example, setting the workflow status to SUPPRESSED or * RESOLVED does not prevent a new finding for the same issue.

*

The allowed values are the following.

  • NEW - * The initial state of a finding, before it is reviewed.

    Security Hub also * resets the workflow status from NOTIFIED or RESOLVED * to NEW in the following cases:

    • * RecordState changes from ARCHIVED to * ACTIVE.

    • ComplianceStatus changes * from PASSED to either WARNING, FAILED, or * NOT_AVAILABLE.

  • NOTIFIED * - Indicates that you notified the resource owner about the security issue. Used * when the initial reviewer is not the resource owner, and needs intervention from * the resource owner.

  • SUPPRESSED - Indicates that * you reviewed the finding and do not believe that any action is needed. The * finding is no longer updated.

  • RESOLVED - The * finding was reviewed and remediated and is now considered resolved.

  • *
*/ inline const WorkflowStatus& GetStatus() const{ return m_status; } /** *

The status of the investigation into the finding. The workflow status is * specific to an individual finding. It does not affect the generation of new * findings. For example, setting the workflow status to SUPPRESSED or * RESOLVED does not prevent a new finding for the same issue.

*

The allowed values are the following.

  • NEW - * The initial state of a finding, before it is reviewed.

    Security Hub also * resets the workflow status from NOTIFIED or RESOLVED * to NEW in the following cases:

    • * RecordState changes from ARCHIVED to * ACTIVE.

    • ComplianceStatus changes * from PASSED to either WARNING, FAILED, or * NOT_AVAILABLE.

  • NOTIFIED * - Indicates that you notified the resource owner about the security issue. Used * when the initial reviewer is not the resource owner, and needs intervention from * the resource owner.

  • SUPPRESSED - Indicates that * you reviewed the finding and do not believe that any action is needed. The * finding is no longer updated.

  • RESOLVED - The * finding was reviewed and remediated and is now considered resolved.

  • *
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the investigation into the finding. The workflow status is * specific to an individual finding. It does not affect the generation of new * findings. For example, setting the workflow status to SUPPRESSED or * RESOLVED does not prevent a new finding for the same issue.

*

The allowed values are the following.

  • NEW - * The initial state of a finding, before it is reviewed.

    Security Hub also * resets the workflow status from NOTIFIED or RESOLVED * to NEW in the following cases:

    • * RecordState changes from ARCHIVED to * ACTIVE.

    • ComplianceStatus changes * from PASSED to either WARNING, FAILED, or * NOT_AVAILABLE.

  • NOTIFIED * - Indicates that you notified the resource owner about the security issue. Used * when the initial reviewer is not the resource owner, and needs intervention from * the resource owner.

  • SUPPRESSED - Indicates that * you reviewed the finding and do not believe that any action is needed. The * finding is no longer updated.

  • RESOLVED - The * finding was reviewed and remediated and is now considered resolved.

  • *
*/ inline void SetStatus(const WorkflowStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the investigation into the finding. The workflow status is * specific to an individual finding. It does not affect the generation of new * findings. For example, setting the workflow status to SUPPRESSED or * RESOLVED does not prevent a new finding for the same issue.

*

The allowed values are the following.

  • NEW - * The initial state of a finding, before it is reviewed.

    Security Hub also * resets the workflow status from NOTIFIED or RESOLVED * to NEW in the following cases:

    • * RecordState changes from ARCHIVED to * ACTIVE.

    • ComplianceStatus changes * from PASSED to either WARNING, FAILED, or * NOT_AVAILABLE.

  • NOTIFIED * - Indicates that you notified the resource owner about the security issue. Used * when the initial reviewer is not the resource owner, and needs intervention from * the resource owner.

  • SUPPRESSED - Indicates that * you reviewed the finding and do not believe that any action is needed. The * finding is no longer updated.

  • RESOLVED - The * finding was reviewed and remediated and is now considered resolved.

  • *
*/ inline void SetStatus(WorkflowStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the investigation into the finding. The workflow status is * specific to an individual finding. It does not affect the generation of new * findings. For example, setting the workflow status to SUPPRESSED or * RESOLVED does not prevent a new finding for the same issue.

*

The allowed values are the following.

  • NEW - * The initial state of a finding, before it is reviewed.

    Security Hub also * resets the workflow status from NOTIFIED or RESOLVED * to NEW in the following cases:

    • * RecordState changes from ARCHIVED to * ACTIVE.

    • ComplianceStatus changes * from PASSED to either WARNING, FAILED, or * NOT_AVAILABLE.

  • NOTIFIED * - Indicates that you notified the resource owner about the security issue. Used * when the initial reviewer is not the resource owner, and needs intervention from * the resource owner.

  • SUPPRESSED - Indicates that * you reviewed the finding and do not believe that any action is needed. The * finding is no longer updated.

  • RESOLVED - The * finding was reviewed and remediated and is now considered resolved.

  • *
*/ inline Workflow& WithStatus(const WorkflowStatus& value) { SetStatus(value); return *this;} /** *

The status of the investigation into the finding. The workflow status is * specific to an individual finding. It does not affect the generation of new * findings. For example, setting the workflow status to SUPPRESSED or * RESOLVED does not prevent a new finding for the same issue.

*

The allowed values are the following.

  • NEW - * The initial state of a finding, before it is reviewed.

    Security Hub also * resets the workflow status from NOTIFIED or RESOLVED * to NEW in the following cases:

    • * RecordState changes from ARCHIVED to * ACTIVE.

    • ComplianceStatus changes * from PASSED to either WARNING, FAILED, or * NOT_AVAILABLE.

  • NOTIFIED * - Indicates that you notified the resource owner about the security issue. Used * when the initial reviewer is not the resource owner, and needs intervention from * the resource owner.

  • SUPPRESSED - Indicates that * you reviewed the finding and do not believe that any action is needed. The * finding is no longer updated.

  • RESOLVED - The * finding was reviewed and remediated and is now considered resolved.

  • *
*/ inline Workflow& WithStatus(WorkflowStatus&& value) { SetStatus(std::move(value)); return *this;} private: WorkflowStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws