Interface AgenticRetrieveCitation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgenticRetrieveCitation.Builder,,AgenticRetrieveCitation> SdkBuilder<AgenticRetrieveCitation.Builder,,AgenticRetrieveCitation> SdkPojo
- Enclosing class:
AgenticRetrieveCitation
@Mutable
@NotThreadSafe
public static interface AgenticRetrieveCitation.Builder
extends SdkPojo, CopyableBuilder<AgenticRetrieveCitation.Builder,AgenticRetrieveCitation>
-
Method Summary
Modifier and TypeMethodDescriptionCharacter offset end (exclusive) in the answer text.references(Collection<AgenticRetrieveCitationReference> references) References to results that support this span.references(Consumer<AgenticRetrieveCitationReference.Builder>... references) References to results that support this span.references(AgenticRetrieveCitationReference... references) References to results that support this span.startIndex(Integer startIndex) Character offset start in the answer text.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
-
endIndex
Character offset end (exclusive) in the answer text.
- Parameters:
endIndex- Character offset end (exclusive) in the answer text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
References to results that support this span.
- Parameters:
references- References to results that support this span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
References to results that support this span.
- Parameters:
references- References to results that support this span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
AgenticRetrieveCitation.Builder references(Consumer<AgenticRetrieveCitationReference.Builder>... references) References to results that support this span.
This is a convenience method that creates an instance of theAgenticRetrieveCitationReference.Builderavoiding the need to create one manually viaAgenticRetrieveCitationReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreferences(List<AgenticRetrieveCitationReference>).- Parameters:
references- a consumer that will call methods onAgenticRetrieveCitationReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startIndex
Character offset start in the answer text.
- Parameters:
startIndex- Character offset start in the answer text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-