Interface RetrievalResultContent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RetrievalResultContent.Builder,,RetrievalResultContent> SdkBuilder<RetrievalResultContent.Builder,,RetrievalResultContent> SdkPojo
- Enclosing class:
RetrievalResultContent
-
Method Summary
Modifier and TypeMethodDescriptiondefault RetrievalResultContent.Builderaudio(Consumer<AudioSegment.Builder> audio) Audio segment information when the retrieval result contains audio content.audio(AudioSegment audio) Audio segment information when the retrieval result contains audio content.byteContent(String byteContent) A data URI with base64-encoded content from the data source.Specifies information about the rows with the cells to return in retrieval.Specifies information about the rows with the cells to return in retrieval.row(RetrievalResultContentColumn... row) Specifies information about the rows with the cells to return in retrieval.The cited text from the data source.The type of content in the retrieval result.The type of content in the retrieval result.default RetrievalResultContent.Buildervideo(Consumer<VideoSegment.Builder> video) Video segment information when the retrieval result contains video content.video(VideoSegment video) Video segment information when the retrieval result contains video content.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
audio
Audio segment information when the retrieval result contains audio content.
- Parameters:
audio- Audio segment information when the retrieval result contains audio content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audio
Audio segment information when the retrieval result contains audio content.
This is a convenience method that creates an instance of theAudioSegment.Builderavoiding the need to create one manually viaAudioSegment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaudio(AudioSegment).- Parameters:
audio- a consumer that will call methods onAudioSegment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
byteContent
A data URI with base64-encoded content from the data source. The URI is in the following format: returned in the following format:
data:image/jpeg;base64,${base64-encoded string}.- Parameters:
byteContent- A data URI with base64-encoded content from the data source. The URI is in the following format: returned in the following format:data:image/jpeg;base64,${base64-encoded string}.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
row
Specifies information about the rows with the cells to return in retrieval.
- Parameters:
row- Specifies information about the rows with the cells to return in retrieval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
row
Specifies information about the rows with the cells to return in retrieval.
- Parameters:
row- Specifies information about the rows with the cells to return in retrieval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
row
Specifies information about the rows with the cells to return in retrieval.
This is a convenience method that creates an instance of theRetrievalResultContentColumn.Builderavoiding the need to create one manually viaRetrievalResultContentColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torow(List<RetrievalResultContentColumn>).- Parameters:
row- a consumer that will call methods onRetrievalResultContentColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
The cited text from the data source.
- Parameters:
text- The cited text from the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of content in the retrieval result.
- Parameters:
type- The type of content in the retrieval result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of content in the retrieval result.
- Parameters:
type- The type of content in the retrieval result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
video
Video segment information when the retrieval result contains video content.
- Parameters:
video- Video segment information when the retrieval result contains video content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
video
Video segment information when the retrieval result contains video content.
This is a convenience method that creates an instance of theVideoSegment.Builderavoiding the need to create one manually viaVideoSegment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovideo(VideoSegment).- Parameters:
video- a consumer that will call methods onVideoSegment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-