Interface TextResponsePart.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TextResponsePart.Builder,,TextResponsePart> SdkBuilder<TextResponsePart.Builder,,TextResponsePart> SdkPojo
- Enclosing class:
TextResponsePart
public static interface TextResponsePart.Builder
extends SdkPojo, CopyableBuilder<TextResponsePart.Builder,TextResponsePart>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TextResponsePart.Builderspan(Consumer<Span.Builder> span) Contains information about where the text with a citation begins and ends in the generated output.Contains information about where the text with a citation begins and ends in the generated output.The part of the generated text that contains a citation.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, sdkFields
-
Method Details
-
span
Contains information about where the text with a citation begins and ends in the generated output.
- Parameters:
span- Contains information about where the text with a citation begins and ends in the generated output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
span
Contains information about where the text with a citation begins and ends in the generated output.
This is a convenience method that creates an instance of theSpan.Builderavoiding the need to create one manually viaSpan.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospan(Span).- Parameters:
span- a consumer that will call methods onSpan.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
The part of the generated text that contains a citation.
- Parameters:
text- The part of the generated text that contains a citation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-