public LegGeometry withLineString(java.util.Collection<java.util.List<Double>> lineString) {
        setLineString(lineString);
        return this;
    }
<p>
An ordered list of positions used to plot a route on a map.
</p>
<p>
The first position is closest to the start position for the leg, and the last position is the closest to the end
position for the leg.
</p>
<ul>
<li>
<p>
For example, <code>[[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]</code>
</p>
</li>
</ul>

@param lineString
       An ordered list of positions used to plot a route on a map. </p>
       <p>
       The first position is closest to the start position for the leg, and the last position is the closest to
       the end position for the leg.
       </p>
       <ul>
       <li>
       <p>
       For example, <code>[[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]</code>
       </p>
       </li>
@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/LegGeometry.java