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
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 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.Builder
avoiding the need to create one manually viaCorrection.builder()
.When the
Consumer
completes,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:
-