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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointLocation.Builderbuilder()final Stringcity()The name of the city where the endpoint is located.final Stringcountry()The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Doublelatitude()The latitude coordinate of the endpoint location, rounded to one decimal place.final DoubleThe longitude coordinate of the endpoint location, rounded to one decimal place.final StringThe postal or ZIP code for the area where the endpoint is located.final Stringregion()The name of the region where the endpoint is located.static Class<? extends EndpointLocation.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
city
The name of the city where the endpoint is located.
- Returns:
- The name of the city where the endpoint is located.
-
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
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
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
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
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<EndpointLocation.Builder,EndpointLocation>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-