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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpellCorrectedQuery.Buildercorrections(Collection<Correction> corrections)The corrected misspelled word or words in a query.SpellCorrectedQuery.Buildercorrections(Consumer<Correction.Builder>... corrections)The corrected misspelled word or words in a query.SpellCorrectedQuery.Buildercorrections(Correction... corrections)The corrected misspelled word or words in a query.SpellCorrectedQuery.BuildersuggestedQueryText(String suggestedQueryText)The query with the suggested spell corrections.-
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
-
suggestedQueryText
SpellCorrectedQuery.Builder suggestedQueryText(String 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
SpellCorrectedQuery.Builder corrections(Collection<Correction> 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
SpellCorrectedQuery.Builder corrections(Correction... 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
SpellCorrectedQuery.Builder corrections(Consumer<Correction.Builder>... 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 to#corrections(List.) - 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:
#corrections(java.util.Collection)
-
-