Class EndpointLocation
- java.lang.Object
-
- software.amazon.awssdk.services.pinpoint.model.EndpointLocation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EndpointLocation.Builder,EndpointLocation>
@Generated("software.amazon.awssdk:codegen") public final class EndpointLocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EndpointLocation.Builder,EndpointLocation>
Specifies geographic information about an endpoint.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEndpointLocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointLocation.Builderbuilder()Stringcity()The name of the city where the endpoint is located.Stringcountry()The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Doublelatitude()The latitude coordinate of the endpoint location, rounded to one decimal place.Doublelongitude()The longitude coordinate of the endpoint location, rounded to one decimal place.StringpostalCode()The postal or ZIP code for the area where the endpoint is located.Stringregion()The name of the region where the endpoint is located.List<SdkField<?>>sdkFields()static Class<? extends EndpointLocation.Builder>serializableBuilderClass()EndpointLocation.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
-
city
public final String city()
The name of the city where the endpoint is located.
- Returns:
- The name of the city where the endpoint is located.
-
country
public final String country()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
- Returns:
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
-
latitude
public final Double latitude()
The latitude coordinate of the endpoint location, rounded to one decimal place.
- Returns:
- The latitude coordinate of the endpoint location, rounded to one decimal place.
-
longitude
public final Double longitude()
The longitude coordinate of the endpoint location, rounded to one decimal place.
- Returns:
- The longitude coordinate of the endpoint location, rounded to one decimal place.
-
postalCode
public final String postalCode()
The postal or ZIP code for the area where the endpoint is located.
- Returns:
- The postal or ZIP code for the area where the endpoint is located.
-
region
public final String region()
The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
- Returns:
- The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
-
toBuilder
public EndpointLocation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EndpointLocation.Builder,EndpointLocation>
-
builder
public static EndpointLocation.Builder builder()
-
serializableBuilderClass
public static Class<? extends EndpointLocation.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.
-
-