public TaskFilter withOperator(Operator operator) {
        this.operator = operator.toString();
        return this;
    }
<p>
The operator that is used to compare filter values (for example, <code>Equals</code> or <code>Contains</code>).
</p>

@param operator
       The operator that is used to compare filter values (for example, <code>Equals</code> or
       <code>Contains</code>).
@return Returns a reference to this object so that method calls can be chained together.
@see Operator
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/TaskFilter.java