Interface KnowledgeBaseLookupOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KnowledgeBaseLookupOutput.Builder,
,KnowledgeBaseLookupOutput> SdkBuilder<KnowledgeBaseLookupOutput.Builder,
,KnowledgeBaseLookupOutput> SdkPojo
- Enclosing class:
KnowledgeBaseLookupOutput
@Mutable
@NotThreadSafe
public static interface KnowledgeBaseLookupOutput.Builder
extends SdkPojo, CopyableBuilder<KnowledgeBaseLookupOutput.Builder,KnowledgeBaseLookupOutput>
-
Method Summary
Modifier and TypeMethodDescriptionmetadata
(Consumer<Metadata.Builder> metadata) Contains information about the knowledge base output.Contains information about the knowledge base output.retrievedReferences
(Collection<RetrievedReference> retrievedReferences) Contains metadata about the sources cited for the generated response.retrievedReferences
(Consumer<RetrievedReference.Builder>... retrievedReferences) Contains metadata about the sources cited for the generated response.retrievedReferences
(RetrievedReference... retrievedReferences) Contains metadata about the sources cited for the generated response.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
-
metadata
Contains information about the knowledge base output.
- Parameters:
metadata
- Contains information about the knowledge base output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Contains information about the knowledge base output.
This is a convenience method that creates an instance of theMetadata.Builder
avoiding the need to create one manually viaMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(Metadata)
.- Parameters:
metadata
- a consumer that will call methods onMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retrievedReferences
KnowledgeBaseLookupOutput.Builder retrievedReferences(Collection<RetrievedReference> retrievedReferences) Contains metadata about the sources cited for the generated response.
- Parameters:
retrievedReferences
- Contains metadata about the sources cited for the generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievedReferences
Contains metadata about the sources cited for the generated response.
- Parameters:
retrievedReferences
- Contains metadata about the sources cited for the generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievedReferences
KnowledgeBaseLookupOutput.Builder retrievedReferences(Consumer<RetrievedReference.Builder>... retrievedReferences) Contains metadata about the sources cited for the generated response.
This is a convenience method that creates an instance of theRetrievedReference.Builder
avoiding the need to create one manually viaRetrievedReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toretrievedReferences(List<RetrievedReference>)
.- Parameters:
retrievedReferences
- a consumer that will call methods onRetrievedReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-