Interface DocumentRelevanceConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DocumentRelevanceConfiguration.Builder,DocumentRelevanceConfiguration>,SdkBuilder<DocumentRelevanceConfiguration.Builder,DocumentRelevanceConfiguration>,SdkPojo
- Enclosing class:
- DocumentRelevanceConfiguration
public static interface DocumentRelevanceConfiguration.Builder extends SdkPojo, CopyableBuilder<DocumentRelevanceConfiguration.Builder,DocumentRelevanceConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocumentRelevanceConfiguration.Buildername(String name)The name of the index field.default DocumentRelevanceConfiguration.Builderrelevance(Consumer<Relevance.Builder> relevance)Provides information for tuning the relevance of a field in a search.DocumentRelevanceConfiguration.Builderrelevance(Relevance relevance)Provides information for tuning the relevance of a field in a search.-
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, sdkFields
-
-
-
-
Method Detail
-
name
DocumentRelevanceConfiguration.Builder name(String name)
The name of the index field.
- Parameters:
name- The name of the index field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relevance
DocumentRelevanceConfiguration.Builder relevance(Relevance relevance)
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
- Parameters:
relevance- Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relevance
default DocumentRelevanceConfiguration.Builder relevance(Consumer<Relevance.Builder> relevance)
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
This is a convenience method that creates an instance of theRelevance.Builderavoiding the need to create one manually viaRelevance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torelevance(Relevance).- Parameters:
relevance- a consumer that will call methods onRelevance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
relevance(Relevance)
-
-