public ReferenceSummary withAttachment(AttachmentReference attachment) {
        setAttachment(attachment);
        return this;
    }
<p>
Information about the reference when the <code>referenceType</code> is <code>ATTACHMENT</code>. Otherwise, null.
</p>

@param attachment
       Information about the reference when the <code>referenceType</code> is <code>ATTACHMENT</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