/** * 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 { /** *

Used to update information about the investigation into the * finding.

See Also:

AWS * API Reference

*/ class WorkflowUpdate { public: AWS_SECURITYHUB_API WorkflowUpdate(); AWS_SECURITYHUB_API WorkflowUpdate(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API WorkflowUpdate& 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 WorkFlowStatus from NOTIFIED or * RESOLVED to NEW in the following cases:

    • *

      The record state changes from ARCHIVED to * ACTIVE.

    • The compliance status 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.

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

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

  • *
*/ 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 WorkFlowStatus from NOTIFIED or * RESOLVED to NEW in the following cases:

    • *

      The record state changes from ARCHIVED to * ACTIVE.

    • The compliance status 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.

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

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

  • *
*/ 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 WorkFlowStatus from NOTIFIED or * RESOLVED to NEW in the following cases:

    • *

      The record state changes from ARCHIVED to * ACTIVE.

    • The compliance status 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.

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

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

  • *
*/ 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 WorkFlowStatus from NOTIFIED or * RESOLVED to NEW in the following cases:

    • *

      The record state changes from ARCHIVED to * ACTIVE.

    • The compliance status 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.

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

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

  • *
*/ 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 WorkFlowStatus from NOTIFIED or * RESOLVED to NEW in the following cases:

    • *

      The record state changes from ARCHIVED to * ACTIVE.

    • The compliance status 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.

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

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

  • *
*/ inline WorkflowUpdate& 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 WorkFlowStatus from NOTIFIED or * RESOLVED to NEW in the following cases:

    • *

      The record state changes from ARCHIVED to * ACTIVE.

    • The compliance status 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.

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

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

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