public ReferenceSummary withEmail(EmailReference email) {
        setEmail(email);
        return this;
    }
<p>
Information about a reference when the <code>referenceType</code> is <code>EMAIL</code>. Otherwise, null.
</p>

@param email
       Information about a reference when the <code>referenceType</code> is <code>EMAIL</code>. Otherwise, null.
@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/ReferenceSummary.java