public ListDevicesResult withDevices(DeviceType... devices) {
        if (this.devices == null) {
            setDevices(new java.util.ArrayList<DeviceType>(devices.length));
        }
        for (DeviceType ele : devices) {
            this.devices.add(ele);
        }
        return this;
    }
<p>
The devices returned in the list devices response.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDevices(java.util.Collection)} or {@link #withDevices(java.util.Collection)} if you want to override
the existing values.
</p>

@param devices
       The devices returned in the list devices response.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/ListDevicesResult.java