public void setCriteria(AllowListCriteria criteria) {
        this.criteria = criteria;
    }
<p>
The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3
object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that defines a text
pattern to ignore.
</p>

@param criteria
       The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of
       an S3 object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that
       defines a text pattern to ignore.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/CreateAllowListRequest.java