Interface RerankQuery.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RerankQuery.Builder,
,RerankQuery> SdkBuilder<RerankQuery.Builder,
,RerankQuery> SdkPojo
- Enclosing class:
RerankQuery
@Mutable
@NotThreadSafe
public static interface RerankQuery.Builder
extends SdkPojo, CopyableBuilder<RerankQuery.Builder,RerankQuery>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RerankQuery.Builder
textQuery
(Consumer<RerankTextDocument.Builder> textQuery) Contains information about a text query.textQuery
(RerankTextDocument textQuery) Contains information about a text query.The type of the query.type
(RerankQueryContentType type) The type of the query.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
-
textQuery
Contains information about a text query.
- Parameters:
textQuery
- Contains information about a text query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textQuery
Contains information about a text query.
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 totextQuery(RerankTextDocument)
.- Parameters:
textQuery
- 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 the query.
- Parameters:
type
- The type of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the query.
- Parameters:
type
- The type of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-