Interface SuggestResultItem.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SuggestResultItem.Builder,SuggestResultItem>,SdkBuilder<SuggestResultItem.Builder,SuggestResultItem>,SdkPojo
- Enclosing class:
- SuggestResultItem
public static interface SuggestResultItem.Builder extends SdkPojo, CopyableBuilder<SuggestResultItem.Builder,SuggestResultItem>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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.SuggestResultItem.Builderhighlights(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.SuggestResultItem.Builderplace(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.SuggestResultItem.Builderquery(SuggestQueryResult query)Sets the value of the Query property for this object.SuggestResultItem.BuildersuggestResultItemType(String suggestResultItemType)The result type.SuggestResultItem.BuildersuggestResultItemType(SuggestResultItemType suggestResultItemType)The result type.SuggestResultItem.Buildertitle(String title)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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
title
SuggestResultItem.Builder title(String 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
SuggestResultItem.Builder suggestResultItemType(String 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,SuggestResultItemType
-
suggestResultItemType
SuggestResultItem.Builder suggestResultItemType(SuggestResultItemType 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,SuggestResultItemType
-
place
SuggestResultItem.Builder place(SuggestPlaceResult 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
default SuggestResultItem.Builder place(Consumer<SuggestPlaceResult.Builder> 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:
place(SuggestPlaceResult)
-
query
SuggestResultItem.Builder query(SuggestQueryResult 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
default SuggestResultItem.Builder query(Consumer<SuggestQueryResult.Builder> 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:
query(SuggestQueryResult)
-
highlights
SuggestResultItem.Builder 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.
- 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
default SuggestResultItem.Builder highlights(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.
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:
highlights(SuggestHighlights)
-
-