Interface AutocompleteResultItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AutocompleteResultItem.Builder,
,AutocompleteResultItem> SdkBuilder<AutocompleteResultItem.Builder,
,AutocompleteResultItem> SdkPojo
- Enclosing class:
AutocompleteResultItem
-
Method Summary
Modifier and TypeMethodDescriptiondefault AutocompleteResultItem.Builder
address
(Consumer<Address.Builder> address) The address associated with this result.The address associated with this result.The distance in meters between the center of the search area and this result.default AutocompleteResultItem.Builder
highlights
(Consumer<AutocompleteHighlights.Builder> highlights) Indicates the starting and ending index of the place in the text query that match the found title.highlights
(AutocompleteHighlights highlights) Indicates the starting and ending index of the place in the text query that match the found title.A list of BCP 47 compliant language codes for the results to be rendered in.The PlaceId of the place associated with this result.PlaceType describes the type of result entry returned.PlaceType describes the type of result entry returned.politicalView
(String politicalView) The alpha-2 or alpha-3 character code for the political view of a country.A formatted string for display when presenting this result to an 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 Details
-
placeId
The PlaceId of the place associated with this result. This can be used to look up additional details about the result via GetPlace.
- Parameters:
placeId
- The PlaceId of the place associated with this result. This can be used to look up additional details about the result via GetPlace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placeType
PlaceType describes the type of result entry returned.
- Parameters:
placeType
- PlaceType describes the type of result entry returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
placeType
PlaceType describes the type of result entry returned.
- Parameters:
placeType
- PlaceType describes the type of result entry returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
title
A formatted string for display when presenting this result to an end user.
- Parameters:
title
- A formatted string for display when presenting this result to an end user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
address
The address associated with this result.
- Parameters:
address
- The address associated with this result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
address
The address associated with this result.
This is a convenience method that creates an instance of theAddress.Builder
avoiding the need to create one manually viaAddress.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddress(Address)
.- Parameters:
address
- a consumer that will call methods onAddress.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
distance
The distance in meters between the center of the search area and this result. Useful to evaluate how far away from the original bias position the result is.
- Parameters:
distance
- The distance in meters between the center of the search area and this result. Useful to evaluate how far away from the original bias position the result is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
language
A list of BCP 47 compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry.
- Parameters:
language
- A list of BCP 47 compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
politicalView
The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view of the specified country.
- Parameters:
politicalView
- The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view of the specified country.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
Indicates the starting and ending index of the place in the text query that match the found title.
- Parameters:
highlights
- Indicates the starting and ending index of the place in the text query that match the found title.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
default AutocompleteResultItem.Builder highlights(Consumer<AutocompleteHighlights.Builder> highlights) Indicates the starting and ending index of the place in the text query that match the found title.
This is a convenience method that creates an instance of theAutocompleteHighlights.Builder
avoiding the need to create one manually viaAutocompleteHighlights.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohighlights(AutocompleteHighlights)
.- Parameters:
highlights
- a consumer that will call methods onAutocompleteHighlights.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-