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

@param deviceTypes
       Device types 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