Interface TextSegment.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<TextSegment.Builder,,- TextSegment> - SdkBuilder<TextSegment.Builder,,- TextSegment> - SdkPojo
- Enclosing class:
- TextSegment
- 
Method SummaryModifier and TypeMethodDescriptionbeginOffset(Integer beginOffset) The zero-based location in the response string where the source attribution starts.The zero-based location in the response string where the source attribution ends.Deprecated.Deprecated in favor of using mediaId within the respective sourceDetails field.mediaMimeType(String mediaMimeType) Deprecated.Deprecated in favor of using mediaMimeType within the respective sourceDetails field.default TextSegment.BuildersnippetExcerpt(Consumer<SnippetExcerpt.Builder> snippetExcerpt) The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.snippetExcerpt(SnippetExcerpt snippetExcerpt) The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.default TextSegment.BuildersourceDetails(Consumer<SourceDetails.Builder> sourceDetails) Source information for a segment of extracted text, including its media type.sourceDetails(SourceDetails sourceDetails) Source information for a segment of extracted text, including its media type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
beginOffsetThe zero-based location in the response string where the source attribution starts. - Parameters:
- beginOffset- The zero-based location in the response string where the source attribution starts.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
endOffsetThe zero-based location in the response string where the source attribution ends. - Parameters:
- endOffset- The zero-based location in the response string where the source attribution ends.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
snippetExcerptThe relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response. - Parameters:
- snippetExcerpt- The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
snippetExcerptThe relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response. This is a convenience method that creates an instance of theSnippetExcerpt.Builderavoiding the need to create one manually viaSnippetExcerpt.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnippetExcerpt(SnippetExcerpt).- Parameters:
- snippetExcerpt- a consumer that will call methods on- SnippetExcerpt.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
mediaIdDeprecated.Deprecated in favor of using mediaId within the respective sourceDetails field.The identifier of the media object associated with the text segment in the source attribution. - Parameters:
- mediaId- The identifier of the media object associated with the text segment in the source attribution.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
mediaMimeTypeDeprecated.Deprecated in favor of using mediaMimeType within the respective sourceDetails field.The MIME type (image/png) of the media object associated with the text segment in the source attribution. - Parameters:
- mediaMimeType- The MIME type (image/png) of the media object associated with the text segment in the source attribution.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
sourceDetailsSource information for a segment of extracted text, including its media type. - Parameters:
- sourceDetails- Source information for a segment of extracted text, including its media type.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
sourceDetailsSource information for a segment of extracted text, including its media type. This is a convenience method that creates an instance of theSourceDetails.Builderavoiding the need to create one manually viaSourceDetails.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceDetails(SourceDetails).- Parameters:
- sourceDetails- a consumer that will call methods on- SourceDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-