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

Specifies a severity level for findings that a custom data identifier * produces. A severity level determines which severity is assigned to the * findings, based on the number of occurrences of text that match the custom data * identifier's detection criteria.

See Also:

AWS * API Reference

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

The minimum number of occurrences of text that must match the custom data * identifier's detection criteria in order to produce a finding with the specified * severity (severity).

*/ inline long long GetOccurrencesThreshold() const{ return m_occurrencesThreshold; } /** *

The minimum number of occurrences of text that must match the custom data * identifier's detection criteria in order to produce a finding with the specified * severity (severity).

*/ inline bool OccurrencesThresholdHasBeenSet() const { return m_occurrencesThresholdHasBeenSet; } /** *

The minimum number of occurrences of text that must match the custom data * identifier's detection criteria in order to produce a finding with the specified * severity (severity).

*/ inline void SetOccurrencesThreshold(long long value) { m_occurrencesThresholdHasBeenSet = true; m_occurrencesThreshold = value; } /** *

The minimum number of occurrences of text that must match the custom data * identifier's detection criteria in order to produce a finding with the specified * severity (severity).

*/ inline SeverityLevel& WithOccurrencesThreshold(long long value) { SetOccurrencesThreshold(value); return *this;} /** *

The severity to assign to a finding: if the number of occurrences is greater * than or equal to the specified threshold (occurrencesThreshold); and, if * applicable, the number of occurrences is less than the threshold for the next * consecutive severity level for the custom data identifier, moving from LOW to * HIGH.

*/ inline const DataIdentifierSeverity& GetSeverity() const{ return m_severity; } /** *

The severity to assign to a finding: if the number of occurrences is greater * than or equal to the specified threshold (occurrencesThreshold); and, if * applicable, the number of occurrences is less than the threshold for the next * consecutive severity level for the custom data identifier, moving from LOW to * HIGH.

*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *

The severity to assign to a finding: if the number of occurrences is greater * than or equal to the specified threshold (occurrencesThreshold); and, if * applicable, the number of occurrences is less than the threshold for the next * consecutive severity level for the custom data identifier, moving from LOW to * HIGH.

*/ inline void SetSeverity(const DataIdentifierSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *

The severity to assign to a finding: if the number of occurrences is greater * than or equal to the specified threshold (occurrencesThreshold); and, if * applicable, the number of occurrences is less than the threshold for the next * consecutive severity level for the custom data identifier, moving from LOW to * HIGH.

*/ inline void SetSeverity(DataIdentifierSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *

The severity to assign to a finding: if the number of occurrences is greater * than or equal to the specified threshold (occurrencesThreshold); and, if * applicable, the number of occurrences is less than the threshold for the next * consecutive severity level for the custom data identifier, moving from LOW to * HIGH.

*/ inline SeverityLevel& WithSeverity(const DataIdentifierSeverity& value) { SetSeverity(value); return *this;} /** *

The severity to assign to a finding: if the number of occurrences is greater * than or equal to the specified threshold (occurrencesThreshold); and, if * applicable, the number of occurrences is less than the threshold for the next * consecutive severity level for the custom data identifier, moving from LOW to * HIGH.

*/ inline SeverityLevel& WithSeverity(DataIdentifierSeverity&& value) { SetSeverity(std::move(value)); return *this;} private: long long m_occurrencesThreshold; bool m_occurrencesThresholdHasBeenSet = false; DataIdentifierSeverity m_severity; bool m_severityHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws