Class SearchTextResultItem
- java.lang.Object
-
- software.amazon.awssdk.services.geoplaces.model.SearchTextResultItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SearchTextResultItem.Builder,SearchTextResultItem>
@Generated("software.amazon.awssdk:codegen") public final class SearchTextResultItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SearchTextResultItem.Builder,SearchTextResultItem>
The text search result.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearchTextResultItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AccessPoint>accessPoints()Position of the access point represent by longitude and latitude.List<AccessRestriction>accessRestrictions()Indicates known access restrictions on a vehicle access point.Addressaddress()The place's address.BooleanaddressNumberCorrected()Boolean indicating if the address provided has been corrected.static SearchTextResultItem.Builderbuilder()List<BusinessChain>businessChains()The Business Chains associated with the place.List<Category>categories()Categories of results that results must belong to.Contactscontacts()List of potential contact methods for the result/place.Longdistance()The distance in meters from the QueryPosition.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<FoodType>foodTypes()List of food types offered by this result.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAccessPoints()For responses, this returns true if the service returned a value for the AccessPoints property.booleanhasAccessRestrictions()For responses, this returns true if the service returned a value for the AccessRestrictions property.booleanhasBusinessChains()For responses, this returns true if the service returned a value for the BusinessChains property.booleanhasCategories()For responses, this returns true if the service returned a value for the Categories property.booleanhasFoodTypes()For responses, this returns true if the service returned a value for the FoodTypes property.inthashCode()booleanhasMapView()For responses, this returns true if the service returned a value for the MapView property.booleanhasOpeningHours()For responses, this returns true if the service returned a value for the OpeningHours property.booleanhasPosition()For responses, this returns true if the service returned a value for the Position property.List<Double>mapView()The bounding box enclosing the geometric shape (area or line) that an individual result covers.List<OpeningHours>openingHours()List of opening hours objects.PhonemeDetailsphonemes()How the various components of the result's address are pronounced in various languages.StringplaceId()ThePlaceIdof the place you wish to receive the information for.PlaceTypeplaceType()APlaceTypeis a category that the result place must belong to.StringplaceTypeAsString()APlaceTypeis a category that the result place must belong to.StringpoliticalView()The alpha-2 or alpha-3 character code for the political view of a country.List<Double>position()The position, in longitude and latitude.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SearchTextResultItem.Builder>serializableBuilderClass()TimeZonetimeZone()The time zone in which the place is located.Stringtitle()The item's title.SearchTextResultItem.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
placeId
public final String placeId()
The
PlaceIdof the place you wish to receive the information for.- Returns:
- The
PlaceIdof the place you wish to receive the information for.
-
placeType
public final PlaceType placeType()
A
PlaceTypeis a category that the result place must belong to.If the service returns an enum value that is not available in the current SDK version,
placeTypewill returnPlaceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplaceTypeAsString().- Returns:
- A
PlaceTypeis a category that the result place must belong to. - See Also:
PlaceType
-
placeTypeAsString
public final String placeTypeAsString()
A
PlaceTypeis a category that the result place must belong to.If the service returns an enum value that is not available in the current SDK version,
placeTypewill returnPlaceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplaceTypeAsString().- Returns:
- A
PlaceTypeis a category that the result place must belong to. - See Also:
PlaceType
-
title
public final String title()
The item's title.
- Returns:
- The item's title.
-
address
public final Address address()
The place's address.
- Returns:
- The place's address.
-
addressNumberCorrected
public final Boolean addressNumberCorrected()
Boolean indicating if the address provided has been corrected.
- Returns:
- Boolean indicating if the address provided has been corrected.
-
hasPosition
public final boolean hasPosition()
For responses, this returns true if the service returned a value for the Position property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
position
public final List<Double> position()
The position, in longitude and latitude.
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
hasPosition()method.- Returns:
- The position, in longitude and latitude.
-
distance
public final Long distance()
The distance in meters from the QueryPosition.
- Returns:
- The distance in meters from the QueryPosition.
-
hasMapView
public final boolean hasMapView()
For responses, this returns true if the service returned a value for the MapView property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
mapView
public final List<Double> mapView()
The bounding box enclosing the geometric shape (area or line) that an individual result covers.
The bounding box formed is defined as a set 4 coordinates:
[{westward lng}, {southern lat}, {eastward lng}, {northern lat}]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
hasMapView()method.- Returns:
- The bounding box enclosing the geometric shape (area or line) that an individual result covers.
The bounding box formed is defined as a set 4 coordinates:
[{westward lng}, {southern lat}, {eastward lng}, {northern lat}]
-
hasCategories
public final boolean hasCategories()
For responses, this returns true if the service returned a value for the Categories property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
categories
public final List<Category> categories()
Categories of results that results must belong to.
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.- Returns:
- Categories of results that results must belong to.
-
hasFoodTypes
public final boolean hasFoodTypes()
For responses, this returns true if the service returned a value for the FoodTypes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
foodTypes
public final List<FoodType> foodTypes()
List of food types offered by this result.
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
hasFoodTypes()method.- Returns:
- List of food types offered by this result.
-
hasBusinessChains
public final boolean hasBusinessChains()
For responses, this returns true if the service returned a value for the BusinessChains property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
businessChains
public final List<BusinessChain> businessChains()
The Business Chains associated with the place.
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
hasBusinessChains()method.- Returns:
- The Business Chains associated with the place.
-
contacts
public final Contacts contacts()
List of potential contact methods for the result/place.
- Returns:
- List of potential contact methods for the result/place.
-
hasOpeningHours
public final boolean hasOpeningHours()
For responses, this returns true if the service returned a value for the OpeningHours property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
openingHours
public final List<OpeningHours> openingHours()
List of opening hours objects.
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
hasOpeningHours()method.- Returns:
- List of opening hours objects.
-
hasAccessPoints
public final boolean hasAccessPoints()
For responses, this returns true if the service returned a value for the AccessPoints property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
accessPoints
public final List<AccessPoint> accessPoints()
Position of the access point represent by longitude and latitude.
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
hasAccessPoints()method.- Returns:
- Position of the access point represent by longitude and latitude.
-
hasAccessRestrictions
public final boolean hasAccessRestrictions()
For responses, this returns true if the service returned a value for the AccessRestrictions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
accessRestrictions
public final List<AccessRestriction> accessRestrictions()
Indicates known access restrictions on a vehicle access point. The index correlates to an access point and indicates if access through this point has some form of restriction.
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
hasAccessRestrictions()method.- Returns:
- Indicates known access restrictions on a vehicle access point. The index correlates to an access point and indicates if access through this point has some form of restriction.
-
timeZone
public final TimeZone timeZone()
The time zone in which the place is located.
- Returns:
- The time zone in which the place is located.
-
politicalView
public final String 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:
- 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.
-
phonemes
public final PhonemeDetails phonemes()
How the various components of the result's address are pronounced in various languages.
- Returns:
- How the various components of the result's address are pronounced in various languages.
-
toBuilder
public SearchTextResultItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchTextResultItem.Builder,SearchTextResultItem>
-
builder
public static SearchTextResultItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends SearchTextResultItem.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-