public ForecastedEvent withNearestDistance(Double nearestDistance) {
        setNearestDistance(nearestDistance);
        return this;
    }
<p>
The closest distance from the device's position to the geofence.
</p>

@param nearestDistance
       The closest distance from the device's position to the geofence.
@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/ForecastedEvent.java