Interface AutocompleteResultItem.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<AutocompleteResultItem.Builder,,- AutocompleteResultItem> - SdkBuilder<AutocompleteResultItem.Builder,,- AutocompleteResultItem> - SdkPojo
- Enclosing class:
- AutocompleteResultItem
- 
Method SummaryModifier and TypeMethodDescriptiondefault AutocompleteResultItem.Builderaddress(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.Builderhighlights(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
placeIdThe 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.
 
- 
placeTypePlaceType 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:
 
- 
placeTypePlaceType 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:
 
- 
titleA 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.
 
- 
addressThe 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.
 
- 
addressThe address associated with this result. This is a convenience method that creates an instance of theAddress.Builderavoiding the need to create one manually viaAddress.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddress(Address).- Parameters:
- address- a consumer that will call methods on- Address.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
distanceThe 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.
 
- 
languageA 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.
 
- 
politicalViewThe 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.
 
- 
highlightsIndicates 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.
 
- 
highlightsdefault 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.Builderavoiding the need to create one manually viaAutocompleteHighlights.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohighlights(AutocompleteHighlights).- Parameters:
- highlights- a consumer that will call methods on- AutocompleteHighlights.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-