public SearchResourcesSimpleCriterion withComparator(SearchResourcesComparator comparator) {
        this.comparator = comparator.toString();
        return this;
    }
<p>
The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
</p>

@param comparator
       The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
@return Returns a reference to this object so that method calls can be chained together.
@see SearchResourcesComparator
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/SearchResourcesSimpleCriterion.java