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.BuildertextDocument(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
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
-
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:
-
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.Builderavoiding the need to create one manually viaRerankTextDocument.builder().When the
Consumercompletes,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:
-
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.
-