Interface RerankDocument.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RerankDocument.Builder,
,RerankDocument> SdkBuilder<RerankDocument.Builder,
,RerankDocument> SdkPojo
- Enclosing class:
RerankDocument
@Mutable
@NotThreadSafe
public static interface RerankDocument.Builder
extends SdkPojo, CopyableBuilder<RerankDocument.Builder,RerankDocument>
-
Method Summary
Modifier and TypeMethodDescriptionjsonDocument
(Document jsonDocument) Contains a JSON document to rerank.default RerankDocument.Builder
textDocument
(Consumer<RerankTextDocument.Builder> textDocument) Contains information about a text document to rerank.textDocument
(RerankTextDocument textDocument) Contains information about a text document to rerank.The type of document to rerank.type
(RerankDocumentType type) The type of document to rerank.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
-
jsonDocument
Contains a JSON document to rerank.
- Parameters:
jsonDocument
- Contains a JSON document to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textDocument
Contains information about a text document to rerank.
- Parameters:
textDocument
- Contains information about a text document to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textDocument
Contains information about a text document to rerank.
This is a convenience method that creates an instance of theRerankTextDocument.Builder
avoiding the need to create one manually viaRerankTextDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totextDocument(RerankTextDocument)
.- Parameters:
textDocument
- a consumer that will call methods onRerankTextDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of document to rerank.
- Parameters:
type
- The type of document to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of document to rerank.
- Parameters:
type
- The type of document to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-