public GetMobileDeviceAccessEffectResult withMatchedRules(MobileDeviceAccessMatchedRule... matchedRules) {
        if (this.matchedRules == null) {
            setMatchedRules(new java.util.ArrayList<MobileDeviceAccessMatchedRule>(matchedRules.length));
        }
        for (MobileDeviceAccessMatchedRule ele : matchedRules) {
            this.matchedRules.add(ele);
        }
        return this;
    }
<p>
A list of the rules which matched the simulated user input and produced the effect.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMatchedRules(java.util.Collection)} or {@link #withMatchedRules(java.util.Collection)} if you want to
override the existing values.
</p>

@param matchedRules
       A list of the rules which matched the simulated user input and produced the effect.
@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/GetMobileDeviceAccessEffectResult.java