public SetIdentityPoolRolesRequest withRoleMappings(java.util.Map<String, RoleMapping> roleMappings) {
        setRoleMappings(roleMappings);
        return this;
    }
<p>
How users for a specific identity provider are to mapped to roles. This is a string to <a>RoleMapping</a> object
map. The string identifies the identity provider, for example, "graph.facebook.com" or
"cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
</p>
<p>
Up to 25 rules can be specified per identity provider.
</p>

@param roleMappings
       How users for a specific identity provider are to mapped to roles. This is a string to <a>RoleMapping</a>
       object map. The string identifies the identity provider, for example, "graph.facebook.com" or
       "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".</p>
       <p>
       Up to 25 rules can be specified per identity provider.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidentity/src/main/java/com/amazonaws/services/cognitoidentity/model/SetIdentityPoolRolesRequest.java