public CalculateRouteResult withSummary(CalculateRouteSummary summary) {
        setSummary(summary);
        return this;
    }
<p>
Contains information about the whole route, such as: <code>RouteBBox</code>, <code>DataSource</code>,
<code>Distance</code>, <code>DistanceUnit</code>, and <code>DurationSeconds</code>.
</p>

@param summary
       Contains information about the whole route, such as: <code>RouteBBox</code>, <code>DataSource</code>,
       <code>Distance</code>, <code>DistanceUnit</code>, and <code>DurationSeconds</code>.
@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/CalculateRouteResult.java