public GetCustomDataIdentifierResult withSeverityLevels(SeverityLevel... severityLevels) {
        if (this.severityLevels == null) {
            setSeverityLevels(new java.util.ArrayList<SeverityLevel>(severityLevels.length));
        }
        for (SeverityLevel ele : severityLevels) {
            this.severityLevels.add(ele);
        }
        return this;
    }
<p>
Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number
of occurrences of text that match the custom data identifier's detection criteria. By default, Amazon Macie
creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria,
and Macie assigns the MEDIUM severity to those findings.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSeverityLevels(java.util.Collection)} or {@link #withSeverityLevels(java.util.Collection)} if you want
to override the existing values.
</p>

@param severityLevels
       Specifies the severity that's assigned to findings that the custom data identifier produces, based on the
       number of occurrences of text that match the custom data identifier's detection criteria. By default,
       Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the
       detection criteria, and Macie assigns the MEDIUM severity to those findings.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/GetCustomDataIdentifierResult.java