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

@param notDeviceModels
       Device models that the rule <b>will not</b> match. All other device models 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