public RoutingProfileQueueConfig withPriority(Integer priority) {
        setPriority(priority);
        return this;
    }
<p>
The order in which contacts are to be handled for the queue. For more information, see <a
href="https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html">Queues:
priority and delay</a>.
</p>

@param priority
       The order in which contacts are to be handled for the queue. For more information, see <a
       href="https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html"
       >Queues: priority and delay</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfig.java