Interface SuggestResultItem.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SuggestResultItem.Builder,,SuggestResultItem> SdkBuilder<SuggestResultItem.Builder,,SuggestResultItem> SdkPojo
- Enclosing class:
SuggestResultItem
-
Method Summary
Modifier and TypeMethodDescriptiondefault SuggestResultItem.Builderhighlights(Consumer<SuggestHighlights.Builder> highlights) Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.highlights(SuggestHighlights highlights) Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.default SuggestResultItem.Builderplace(Consumer<SuggestPlaceResult.Builder> place) The suggested place by its unique ID.place(SuggestPlaceResult place) The suggested place by its unique ID.default SuggestResultItem.Builderquery(Consumer<SuggestQueryResult.Builder> query) Sets the value of the Query property for this object.query(SuggestQueryResult query) Sets the value of the Query property for this object.suggestResultItemType(String suggestResultItemType) The result type.suggestResultItemType(SuggestResultItemType suggestResultItemType) The result type.The display title that should be used when presenting this option to the end user.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, sdkFieldNameToField, sdkFields
-
Method Details
-
title
The display title that should be used when presenting this option to the end user.
- Parameters:
title- The display title that should be used when presenting this option to the end user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestResultItemType
The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.
- Parameters:
suggestResultItemType- The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
suggestResultItemType
The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.
- Parameters:
suggestResultItemType- The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
place
The suggested place by its unique ID.
- Parameters:
place- The suggested place by its unique ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
place
The suggested place by its unique ID.
This is a convenience method that creates an instance of theSuggestPlaceResult.Builderavoiding the need to create one manually viaSuggestPlaceResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplace(SuggestPlaceResult).- Parameters:
place- a consumer that will call methods onSuggestPlaceResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
query
Sets the value of the Query property for this object.- Parameters:
query- The new value for the Query property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
query
Sets the value of the Query property for this object. This is a convenience method that creates an instance of theSuggestQueryResult.Builderavoiding the need to create one manually viaSuggestQueryResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toquery(SuggestQueryResult).- Parameters:
query- a consumer that will call methods onSuggestQueryResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
highlights
Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.
- Parameters:
highlights- Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.
This is a convenience method that creates an instance of theSuggestHighlights.Builderavoiding the need to create one manually viaSuggestHighlights.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohighlights(SuggestHighlights).- Parameters:
highlights- a consumer that will call methods onSuggestHighlights.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-