/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the macie2-2020-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Macie2.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.
///
public partial class SeverityLevel
{
private long? _occurrencesThreshold;
private DataIdentifierSeverity _severity;
///
/// Gets and sets the property 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).
///
///
[AWSProperty(Required=true)]
public long OccurrencesThreshold
{
get { return this._occurrencesThreshold.GetValueOrDefault(); }
set { this._occurrencesThreshold = value; }
}
// Check to see if OccurrencesThreshold property is set
internal bool IsSetOccurrencesThreshold()
{
return this._occurrencesThreshold.HasValue;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Required=true)]
public DataIdentifierSeverity Severity
{
get { return this._severity; }
set { this._severity = value; }
}
// Check to see if Severity property is set
internal bool IsSetSeverity()
{
return this._severity != null;
}
}
}