public UpdateMobileDeviceAccessRuleRequest withDeviceModels(String... deviceModels) {
        if (this.deviceModels == null) {
            setDeviceModels(new java.util.ArrayList<String>(deviceModels.length));
        }
        for (String ele : deviceModels) {
            this.deviceModels.add(ele);
        }
        return this;
    }
<p>
Device models that the updated rule will match.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDeviceModels(java.util.Collection)} or {@link #withDeviceModels(java.util.Collection)} if you want to
override the existing values.
</p>

@param deviceModels
       Device models that the updated rule will match.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/UpdateMobileDeviceAccessRuleRequest.java