@Generated(value="software.amazon.awssdk:codegen") public final class SearchForSuggestionsResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SearchForSuggestionsResult.Builder,SearchForSuggestionsResult>
Contains a place suggestion resulting from a place suggestion query that is run on a place index resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SearchForSuggestionsResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SearchForSuggestionsResult.Builder |
builder() |
List<String> |
categories()
The Amazon Location categories that describe the Place.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCategories()
For responses, this returns true if the service returned a value for the Categories property.
|
int |
hashCode() |
boolean |
hasSupplementalCategories()
For responses, this returns true if the service returned a value for the SupplementalCategories property.
|
String |
placeId()
The unique identifier of the Place.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SearchForSuggestionsResult.Builder> |
serializableBuilderClass() |
List<String> |
supplementalCategories()
Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories.
|
String |
text()
The text of the place suggestion, typically formatted as an address string.
|
SearchForSuggestionsResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasCategories()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> categories()
The Amazon Location categories that describe the Place.
For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the Amazon Location Service Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCategories() method.
For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the Amazon Location Service Developer Guide.
public final String placeId()
The unique identifier of the Place. You can use this with the GetPlace operation to find the place
again later, or to get full information for the Place.
The GetPlace request must use the same PlaceIndex resource as the
SearchPlaceIndexForSuggestions that generated the Place ID.
For SearchPlaceIndexForSuggestions operations, the PlaceId is returned by place indexes
that use Esri, Grab, or HERE as data providers.
GetPlace operation to find the
place again later, or to get full information for the Place.
The GetPlace request must use the same PlaceIndex resource as the
SearchPlaceIndexForSuggestions that generated the Place ID.
For SearchPlaceIndexForSuggestions operations, the PlaceId is returned by place
indexes that use Esri, Grab, or HERE as data providers.
public final boolean hasSupplementalCategories()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> supplementalCategories()
Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSupplementalCategories() method.
public final String text()
The text of the place suggestion, typically formatted as an address string.
public SearchForSuggestionsResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SearchForSuggestionsResult.Builder,SearchForSuggestionsResult>public static SearchForSuggestionsResult.Builder builder()
public static Class<? extends SearchForSuggestionsResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.