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

Provides the numerical and qualitative representations of a finding's * severity.

See Also:

AWS API * Reference

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

The qualitative representation of the finding's severity, ranging from Low * (least severe) to High (most severe).

*/ inline const SeverityDescription& GetDescription() const{ return m_description; } /** *

The qualitative representation of the finding's severity, ranging from Low * (least severe) to High (most severe).

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The qualitative representation of the finding's severity, ranging from Low * (least severe) to High (most severe).

*/ inline void SetDescription(const SeverityDescription& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The qualitative representation of the finding's severity, ranging from Low * (least severe) to High (most severe).

*/ inline void SetDescription(SeverityDescription&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The qualitative representation of the finding's severity, ranging from Low * (least severe) to High (most severe).

*/ inline Severity& WithDescription(const SeverityDescription& value) { SetDescription(value); return *this;} /** *

The qualitative representation of the finding's severity, ranging from Low * (least severe) to High (most severe).

*/ inline Severity& WithDescription(SeverityDescription&& value) { SetDescription(std::move(value)); return *this;} /** *

The numerical representation of the finding's severity, ranging from 1 (least * severe) to 3 (most severe).

*/ inline long long GetScore() const{ return m_score; } /** *

The numerical representation of the finding's severity, ranging from 1 (least * severe) to 3 (most severe).

*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *

The numerical representation of the finding's severity, ranging from 1 (least * severe) to 3 (most severe).

*/ inline void SetScore(long long value) { m_scoreHasBeenSet = true; m_score = value; } /** *

The numerical representation of the finding's severity, ranging from 1 (least * severe) to 3 (most severe).

*/ inline Severity& WithScore(long long value) { SetScore(value); return *this;} private: SeverityDescription m_description; bool m_descriptionHasBeenSet = false; long long m_score; bool m_scoreHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws