public TextSegment withSnippetExcerpt(SnippetExcerpt snippetExcerpt) {
        setSnippetExcerpt(snippetExcerpt);
        return this;
    }
<p>
The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business
chat response.
</p>

@param snippetExcerpt
       The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q
       Business chat response.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/TextSegment.java