public UpdateQueueEnvironmentRequest withPriority(Integer priority) {
        setPriority(priority);
        return this;
    }
<p>
The priority to update.
</p>

@param priority
       The priority to update.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/UpdateQueueEnvironmentRequest.java