Interface AgenticRetrieveResultItem.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgenticRetrieveResultItem.Builder,,AgenticRetrieveResultItem> SdkBuilder<AgenticRetrieveResultItem.Builder,,AgenticRetrieveResultItem> SdkPojo
- Enclosing class:
AgenticRetrieveResultItem
@Mutable
@NotThreadSafe
public static interface AgenticRetrieveResultItem.Builder
extends SdkPojo, CopyableBuilder<AgenticRetrieveResultItem.Builder,AgenticRetrieveResultItem>
-
Method Summary
Modifier and TypeMethodDescriptioncontent(Consumer<RetrievalContent.Builder> content) The retrieved content.content(RetrievalContent content) The retrieved content.Metadata associated with the retrieved item.sourceRetriever(Consumer<AgenticRetrieveSourceRetriever.Builder> sourceRetriever) The source retriever that produced this result.sourceRetriever(AgenticRetrieveSourceRetriever sourceRetriever) The source retriever that produced this result.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
-
content
The retrieved content.
- Parameters:
content- The retrieved content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The retrieved content.
This is a convenience method that creates an instance of theRetrievalContent.Builderavoiding the need to create one manually viaRetrievalContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(RetrievalContent).- Parameters:
content- a consumer that will call methods onRetrievalContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Metadata associated with the retrieved item.
- Parameters:
metadata- Metadata associated with the retrieved item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRetriever
The source retriever that produced this result.
- Parameters:
sourceRetriever- The source retriever that produced this result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRetriever
default AgenticRetrieveResultItem.Builder sourceRetriever(Consumer<AgenticRetrieveSourceRetriever.Builder> sourceRetriever) The source retriever that produced this result.
This is a convenience method that creates an instance of theAgenticRetrieveSourceRetriever.Builderavoiding the need to create one manually viaAgenticRetrieveSourceRetriever.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceRetriever(AgenticRetrieveSourceRetriever).- Parameters:
sourceRetriever- a consumer that will call methods onAgenticRetrieveSourceRetriever.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-