public UserIdentityInfo withEmail(String email) {
        setEmail(email);
        return this;
    }
<p>
The email address. If you are using SAML for identity management and include this parameter, an error is
returned.
</p>

@param email
       The email address. If you are using SAML for identity management and include this parameter, an error is
       returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfo.java