Interface Citation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Citation.Builder,,Citation> SdkBuilder<Citation.Builder,,Citation> SdkPojo
- Enclosing class:
Citation
@Mutable
@NotThreadSafe
public static interface Citation.Builder
extends SdkPojo, CopyableBuilder<Citation.Builder,Citation>
-
Method Summary
Modifier and TypeMethodDescriptionThe character offset inanswerwhere the cited span ends (exclusive).references(Collection<Reference> references) The entities in retrievedContext that support the span, referenced by identity.references(Consumer<Reference.Builder>... references) The entities in retrievedContext that support the span, referenced by identity.references(Reference... references) The entities in retrievedContext that support the span, referenced by identity.startIndex(Integer startIndex) The character offset inanswerwhere the cited span begins.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
-
startIndex
The character offset in
answerwhere the cited span begins.- Parameters:
startIndex- The character offset inanswerwhere the cited span begins.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endIndex
The character offset in
answerwhere the cited span ends (exclusive).- Parameters:
endIndex- The character offset inanswerwhere the cited span ends (exclusive).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
The entities in retrievedContext that support the span, referenced by identity.
- Parameters:
references- The entities in retrievedContext that support the span, referenced by identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
The entities in retrievedContext that support the span, referenced by identity.
- Parameters:
references- The entities in retrievedContext that support the span, referenced by identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
The entities in retrievedContext that support the span, referenced by identity.
This is a convenience method that creates an instance of theReference.Builderavoiding the need to create one manually viaReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreferences(List<Reference>).- Parameters:
references- a consumer that will call methods onReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-