public RouteMatrixEntry withDistance(Double distance) {
        setDistance(distance);
        return this;
    }
<p>
The total distance of travel for the route.
</p>

@param distance
       The total distance of travel for the route.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/RouteMatrixEntry.java