Class GetPlaceResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.geoplaces.model.GeoPlacesResponse
-
- software.amazon.awssdk.services.geoplaces.model.GetPlaceResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetPlaceResponse.Builder,GetPlaceResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetPlaceResponse extends GeoPlacesResponse implements ToCopyableBuilder<GetPlaceResponse.Builder,GetPlaceResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetPlaceResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AccessPoint>accessPoints()Position of the access point in(lng,lat).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 GetPlaceResponse.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.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.booleanhasPostalCodeDetails()For responses, this returns true if the service returned a value for the PostalCodeDetails 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.List<PostalCodeDetails>postalCodeDetails()Contains details about the postal code of the place/result.StringpricingBucket()The pricing bucket for which the query is charged at.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GetPlaceResponse.Builder>serializableBuilderClass()TimeZonetimeZone()The time zone in which the place is located.Stringtitle()The localized display name of this result item based on request parameterlanguage.GetPlaceResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.geoplaces.model.GeoPlacesResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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 localized display name of this result item based on request parameter
language.- Returns:
- The localized display name of this result item based on request parameter
language.
-
pricingBucket
public final String pricingBucket()
The pricing bucket for which the query is charged at.
For more inforamtion on pricing, please visit Amazon Location Service Pricing.
- Returns:
- The pricing bucket for which the query is charged at.
For more inforamtion on pricing, please visit Amazon Location Service Pricing.
-
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.
-
hasPostalCodeDetails
public final boolean hasPostalCodeDetails()
For responses, this returns true if the service returned a value for the PostalCodeDetails 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.
-
postalCodeDetails
public final List<PostalCodeDetails> postalCodeDetails()
Contains details about the postal code of the place/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
hasPostalCodeDetails()method.- Returns:
- Contains details about the postal code of the place/result.
-
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.
-
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 of four 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 of four 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 in
(lng,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
hasAccessPoints()method.- Returns:
- Position of the access point in
(lng,lat).
-
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 GetPlaceResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetPlaceResponse.Builder,GetPlaceResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetPlaceResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetPlaceResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-