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

@param deviceOperatingSystems
       Device operating systems 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