Interface RerankSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RerankSource.Builder,
,RerankSource> SdkBuilder<RerankSource.Builder,
,RerankSource> SdkPojo
- Enclosing class:
RerankSource
@Mutable
@NotThreadSafe
public static interface RerankSource.Builder
extends SdkPojo, CopyableBuilder<RerankSource.Builder,RerankSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RerankSource.Builder
inlineDocumentSource
(Consumer<RerankDocument.Builder> inlineDocumentSource) Contains an inline definition of a source for reranking.inlineDocumentSource
(RerankDocument inlineDocumentSource) Contains an inline definition of a source for reranking.The type of the source.type
(RerankSourceType type) The type of the source.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
-
inlineDocumentSource
Contains an inline definition of a source for reranking.
- Parameters:
inlineDocumentSource
- Contains an inline definition of a source for reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inlineDocumentSource
default RerankSource.Builder inlineDocumentSource(Consumer<RerankDocument.Builder> inlineDocumentSource) Contains an inline definition of a source for reranking.
This is a convenience method that creates an instance of theRerankDocument.Builder
avoiding the need to create one manually viaRerankDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinlineDocumentSource(RerankDocument)
.- Parameters:
inlineDocumentSource
- a consumer that will call methods onRerankDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the source.
- Parameters:
type
- The type of the source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the source.
- Parameters:
type
- The type of the source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-