public GetImpersonationRoleResult withRules(java.util.Collection<ImpersonationRule> rules) {
        setRules(rules);
        return this;
    }
<p>
The list of rules for the given impersonation role.
</p>

@param rules
       The list of rules for the given impersonation role.
@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/GetImpersonationRoleResult.java