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
Modifier and TypeMethodDescriptiondefault TextResponsePart.Builder
span
(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
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 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.Builder
avoiding the need to create one manually viaSpan.builder()
.When the
Consumer
completes,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.
-