public UpdateMobileDeviceAccessRuleRequest withEffect(String effect) {
        setEffect(effect);
        return this;
    }
<p>
The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.
</p>

@param effect
       The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see MobileDeviceAccessRuleEffect
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/UpdateMobileDeviceAccessRuleRequest.java