Interface TextResponsePart.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TextResponsePart.Builder,TextResponsePart>,SdkBuilder<TextResponsePart.Builder,TextResponsePart>,SdkPojo
- Enclosing class:
- TextResponsePart
@Mutable @NotThreadSafe public static interface TextResponsePart.Builder extends SdkPojo, CopyableBuilder<TextResponsePart.Builder,TextResponsePart>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TextResponsePart.Builderspan(Consumer<Span.Builder> span)Contains information about where the text with a citation begins and ends in the generated output.TextResponsePart.Builderspan(Span span)Contains information about where the text with a citation begins and ends in the generated output.TextResponsePart.Buildertext(String text)The part of the generated text that contains a citation.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
span
TextResponsePart.Builder span(Span 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
default TextResponsePart.Builder span(Consumer<Span.Builder> 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:
span(Span)
-
text
TextResponsePart.Builder text(String 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.
-
-