public SetIdentityPoolRolesRequest addRoleMappingsEntry(String key, RoleMapping value) {
        if (null == this.roleMappings) {
            this.roleMappings = new java.util.HashMap<String, RoleMapping>();
        }
        if (this.roleMappings.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.roleMappings.put(key, value);
        return this;
    }
Add a single RoleMappings entry

@see SetIdentityPoolRolesRequest#withRoleMappings
@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