Class GetPlaceRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.location.model.LocationRequest
-
- software.amazon.awssdk.services.location.model.GetPlaceRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetPlaceRequest.Builder,GetPlaceRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetPlaceRequest extends LocationRequest implements ToCopyableBuilder<GetPlaceRequest.Builder,GetPlaceRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetPlaceRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetPlaceRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringindexName()The name of the place index resource that you want to use for the search.Stringkey()The optional API key to authorize the request.Stringlanguage()The preferred language used to return results.StringplaceId()The identifier of the place to find.List<SdkField<?>>sdkFields()static Class<? extends GetPlaceRequest.Builder>serializableBuilderClass()GetPlaceRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
indexName
public final String indexName()
The name of the place index resource that you want to use for the search.
- Returns:
- The name of the place index resource that you want to use for the search.
-
placeId
public final String placeId()
The identifier of the place to find.
- Returns:
- The identifier of the place to find.
-
language
public final String language()
The preferred language used to return results. The value must be a valid BCP 47 language tag, for example,
enfor English.This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.
For an example, we'll use the Greek language. You search for a location around Athens, Greece, with the
languageparameter set toen. Thecityin the results will most likely be returned asAthens.If you set the
languageparameter toel, for Greek, then thecityin the results will more likely be returned asΑθήνα.If the data provider does not have a value for Greek, the result will be in a language that the provider does support.
- Returns:
- The preferred language used to return results. The value must be a valid BCP 47 language tag, for example,
enfor English.This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.
For an example, we'll use the Greek language. You search for a location around Athens, Greece, with the
languageparameter set toen. Thecityin the results will most likely be returned asAthens.If you set the
languageparameter toel, for Greek, then thecityin the results will more likely be returned asΑθήνα.If the data provider does not have a value for Greek, the result will be in a language that the provider does support.
-
key
public final String key()
The optional API key to authorize the request.
- Returns:
- The optional API key to authorize the request.
-
toBuilder
public GetPlaceRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetPlaceRequest.Builder,GetPlaceRequest>- Specified by:
toBuilderin classLocationRequest
-
builder
public static GetPlaceRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetPlaceRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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 classSdkRequest
-
-