public CalculateRouteMatrixSummary withDistanceUnit(DistanceUnit distanceUnit) {
        this.distanceUnit = distanceUnit.toString();
        return this;
    }
<p>
The unit of measurement for route distances.
</p>

@param distanceUnit
       The unit of measurement for route distances.
@return Returns a reference to this object so that method calls can be chained together.
@see DistanceUnit
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/CalculateRouteMatrixSummary.java