public RouteSpec withPriority(Integer priority) {
        setPriority(priority);
        return this;
    }
<p>
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
</p>

@param priority
       The priority for the route. Routes are matched based on the specified value, where 0 is the highest
       priority.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/RouteSpec.java