public ActivatedRule withPriority(Integer priority) {
        setPriority(priority);
        return this;
    }
<p>
Specifies the order in which the <code>Rules</code> in a <code>WebACL</code> are evaluated. Rules with a lower
value for <code>Priority</code> are evaluated before <code>Rules</code> with a higher value. The value must be a
unique integer. If you add multiple <code>Rules</code> to a <code>WebACL</code>, the values don't need to be
consecutive.
</p>

@param priority
       Specifies the order in which the <code>Rules</code> in a <code>WebACL</code> are evaluated. Rules with a
       lower value for <code>Priority</code> are evaluated before <code>Rules</code> with a higher value. The
       value must be a unique integer. If you add multiple <code>Rules</code> to a <code>WebACL</code>, the
       values don't need to be consecutive.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/ActivatedRule.java