public BehaviorCriteria withComparisonOperator(ComparisonOperator comparisonOperator) {
        this.comparisonOperator = comparisonOperator.toString();
        return this;
    }
<p>
The operator that relates the thing measured (<code>metric</code>) to the criteria (containing a
<code>value</code> or <code>statisticalThreshold</code>). Valid operators include:
</p>
<ul>
<li>
<p>
<code>string-list</code>: <code>in-set</code> and <code>not-in-set</code>
</p>
</li>
<li>
<p>
<code>number-list</code>: <code>in-set</code> and <code>not-in-set</code>
</p>
</li>
<li>
<p>
<code>ip-address-list</code>: <code>in-cidr-set</code> and <code>not-in-cidr-set</code>
</p>
</li>
<li>
<p>
<code>number</code>: <code>less-than</code>, <code>less-than-equals</code>, <code>greater-than</code>, and
<code>greater-than-equals</code>
</p>
</li>
</ul>

@param comparisonOperator
       The operator that relates the thing measured (<code>metric</code>) to the criteria (containing a
       <code>value</code> or <code>statisticalThreshold</code>). Valid operators include:</p>
       <ul>
       <li>
       <p>
       <code>string-list</code>: <code>in-set</code> and <code>not-in-set</code>
       </p>
       </li>
       <li>
       <p>
       <code>number-list</code>: <code>in-set</code> and <code>not-in-set</code>
       </p>
       </li>
       <li>
       <p>
       <code>ip-address-list</code>: <code>in-cidr-set</code> and <code>not-in-cidr-set</code>
       </p>
       </li>
       <li>
       <p>
       <code>number</code>: <code>less-than</code>, <code>less-than-equals</code>, <code>greater-than</code>, and
       <code>greater-than-equals</code>
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ComparisonOperator
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/BehaviorCriteria.java