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

@param deviceUserAgents
       Device user agents that the 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/CreateMobileDeviceAccessRuleRequest.java