Interface SpellCorrectedQuery.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpellCorrectedQuery.Builder,,SpellCorrectedQuery> SdkBuilder<SpellCorrectedQuery.Builder,,SpellCorrectedQuery> SdkPojo
- Enclosing class:
SpellCorrectedQuery
public static interface SpellCorrectedQuery.Builder
extends SdkPojo, CopyableBuilder<SpellCorrectedQuery.Builder,SpellCorrectedQuery>
-
Method Summary
Modifier and TypeMethodDescriptioncorrections(Collection<Correction> corrections) The corrected misspelled word or words in a query.corrections(Consumer<Correction.Builder>... corrections) The corrected misspelled word or words in a query.corrections(Correction... corrections) The corrected misspelled word or words in a query.suggestedQueryText(String suggestedQueryText) The query with the suggested spell corrections.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, sdkFields
-
Method Details
-
suggestedQueryText
The query with the suggested spell corrections.
- Parameters:
suggestedQueryText- The query with the suggested spell corrections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corrections
The corrected misspelled word or words in a query.
- Parameters:
corrections- The corrected misspelled word or words in a query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corrections
The corrected misspelled word or words in a query.
- Parameters:
corrections- The corrected misspelled word or words in a query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corrections
The corrected misspelled word or words in a query.
This is a convenience method that creates an instance of theCorrection.Builderavoiding the need to create one manually viaCorrection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocorrections(List<Correction>).- Parameters:
corrections- a consumer that will call methods onCorrection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-