public GetDevicePositionResult withPosition(Double... position) {
        if (this.position == null) {
            setPosition(new java.util.ArrayList<Double>(position.length));
        }
        for (Double ele : position) {
            this.position.add(ele);
        }
        return this;
    }
<p>
The last known device position.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPosition(java.util.Collection)} or {@link #withPosition(java.util.Collection)} if you want to override
the existing values.
</p>

@param position
       The last known device position.
@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/GetDevicePositionResult.java