public void setRules(java.util.Collection<ImpersonationRule> rules) {
        if (rules == null) {
            this.rules = null;
            return;
        }

        this.rules = new java.util.ArrayList<ImpersonationRule>(rules);
    }
<p>
The list of rules for the given impersonation role.
</p>

@param rules
       The list of rules for the given impersonation role.
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/GetImpersonationRoleResult.java