public CreateRuleResult withPriority(Integer priority) {
        setPriority(priority);
        return this;
    }
<p>
The priority assigned to the rule. The lower the priority number the higher the priority.
</p>

@param priority
       The priority assigned to the rule. The lower the priority number the higher the priority.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/CreateRuleResult.java