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

Updates to the severity information for a finding.

See Also:

* AWS * API Reference

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

The normalized severity for the finding. This attribute is to be deprecated * in favor of Label.

If you provide Normalized * and do not provide Label, Label is set automatically * as follows.

  • 0 - INFORMATIONAL

  • *

    1–39 - LOW

  • 40–69 - MEDIUM

    *
  • 70–89 - HIGH

  • 90–100 - * CRITICAL

*/ inline int GetNormalized() const{ return m_normalized; } /** *

The normalized severity for the finding. This attribute is to be deprecated * in favor of Label.

If you provide Normalized * and do not provide Label, Label is set automatically * as follows.

  • 0 - INFORMATIONAL

  • *

    1–39 - LOW

  • 40–69 - MEDIUM

    *
  • 70–89 - HIGH

  • 90–100 - * CRITICAL

*/ inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; } /** *

The normalized severity for the finding. This attribute is to be deprecated * in favor of Label.

If you provide Normalized * and do not provide Label, Label is set automatically * as follows.

  • 0 - INFORMATIONAL

  • *

    1–39 - LOW

  • 40–69 - MEDIUM

    *
  • 70–89 - HIGH

  • 90–100 - * CRITICAL

*/ inline void SetNormalized(int value) { m_normalizedHasBeenSet = true; m_normalized = value; } /** *

The normalized severity for the finding. This attribute is to be deprecated * in favor of Label.

If you provide Normalized * and do not provide Label, Label is set automatically * as follows.

  • 0 - INFORMATIONAL

  • *

    1–39 - LOW

  • 40–69 - MEDIUM

    *
  • 70–89 - HIGH

  • 90–100 - * CRITICAL

*/ inline SeverityUpdate& WithNormalized(int value) { SetNormalized(value); return *this;} /** *

The native severity as defined by the Amazon Web Services service or * integrated partner product that generated the finding.

*/ inline double GetProduct() const{ return m_product; } /** *

The native severity as defined by the Amazon Web Services service or * integrated partner product that generated the finding.

*/ inline bool ProductHasBeenSet() const { return m_productHasBeenSet; } /** *

The native severity as defined by the Amazon Web Services service or * integrated partner product that generated the finding.

*/ inline void SetProduct(double value) { m_productHasBeenSet = true; m_product = value; } /** *

The native severity as defined by the Amazon Web Services service or * integrated partner product that generated the finding.

*/ inline SeverityUpdate& WithProduct(double value) { SetProduct(value); return *this;} /** *

The severity value of the finding. The allowed values are the following.

*
  • INFORMATIONAL - No issue was found.

  • *

    LOW - The issue does not require action on its own.

  • *
  • MEDIUM - The issue must be addressed but not urgently.

    *
  • HIGH - The issue must be addressed as a * priority.

  • CRITICAL - The issue must be * remediated immediately to avoid it escalating.

*/ inline const SeverityLabel& GetLabel() const{ return m_label; } /** *

The severity value of the finding. The allowed values are the following.

*
  • INFORMATIONAL - No issue was found.

  • *

    LOW - The issue does not require action on its own.

  • *
  • MEDIUM - The issue must be addressed but not urgently.

    *
  • HIGH - The issue must be addressed as a * priority.

  • CRITICAL - The issue must be * remediated immediately to avoid it escalating.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The severity value of the finding. The allowed values are the following.

*
  • INFORMATIONAL - No issue was found.

  • *

    LOW - The issue does not require action on its own.

  • *
  • MEDIUM - The issue must be addressed but not urgently.

    *
  • HIGH - The issue must be addressed as a * priority.

  • CRITICAL - The issue must be * remediated immediately to avoid it escalating.

*/ inline void SetLabel(const SeverityLabel& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The severity value of the finding. The allowed values are the following.

*
  • INFORMATIONAL - No issue was found.

  • *

    LOW - The issue does not require action on its own.

  • *
  • MEDIUM - The issue must be addressed but not urgently.

    *
  • HIGH - The issue must be addressed as a * priority.

  • CRITICAL - The issue must be * remediated immediately to avoid it escalating.

*/ inline void SetLabel(SeverityLabel&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The severity value of the finding. The allowed values are the following.

*
  • INFORMATIONAL - No issue was found.

  • *

    LOW - The issue does not require action on its own.

  • *
  • MEDIUM - The issue must be addressed but not urgently.

    *
  • HIGH - The issue must be addressed as a * priority.

  • CRITICAL - The issue must be * remediated immediately to avoid it escalating.

*/ inline SeverityUpdate& WithLabel(const SeverityLabel& value) { SetLabel(value); return *this;} /** *

The severity value of the finding. The allowed values are the following.

*
  • INFORMATIONAL - No issue was found.

  • *

    LOW - The issue does not require action on its own.

  • *
  • MEDIUM - The issue must be addressed but not urgently.

    *
  • HIGH - The issue must be addressed as a * priority.

  • CRITICAL - The issue must be * remediated immediately to avoid it escalating.

*/ inline SeverityUpdate& WithLabel(SeverityLabel&& value) { SetLabel(std::move(value)); return *this;} private: int m_normalized; bool m_normalizedHasBeenSet = false; double m_product; bool m_productHasBeenSet = false; SeverityLabel m_label; bool m_labelHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws