public BatchGetDevicePositionRequest withDeviceIds(String... deviceIds) {
        if (this.deviceIds == null) {
            setDeviceIds(new java.util.ArrayList<String>(deviceIds.length));
        }
        for (String ele : deviceIds) {
            this.deviceIds.add(ele);
        }
        return this;
    }
<p>
Devices whose position you want to retrieve.
</p>
<ul>
<li>
<p>
For example, for two devices: <code>device-ids=DeviceId1&amp;device-ids=DeviceId2</code>
</p>
</li>
</ul>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDeviceIds(java.util.Collection)} or {@link #withDeviceIds(java.util.Collection)} if you want to
override the existing values.
</p>

@param deviceIds
       Devices whose position you want to retrieve.</p>
       <ul>
       <li>
       <p>
       For example, for two devices: <code>device-ids=DeviceId1&amp;device-ids=DeviceId2</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/BatchGetDevicePositionRequest.java