@Generated(value="software.amazon.awssdk:codegen") public final class EndpointLocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EndpointLocation.Builder,EndpointLocation>
Specifies geographic information about an endpoint.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EndpointLocation.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EndpointLocation.Builder |
builder() |
String |
city()
The name of the city where the endpoint is located.
|
String |
country()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Double |
latitude()
The latitude coordinate of the endpoint location, rounded to one decimal place.
|
Double |
longitude()
The longitude coordinate of the endpoint location, rounded to one decimal place.
|
String |
postalCode()
The postal or ZIP code for the area where the endpoint is located.
|
String |
region()
The name of the region where the endpoint is located.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EndpointLocation.Builder> |
serializableBuilderClass() |
EndpointLocation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String city()
The name of the city where the endpoint is located.
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.
public final Double latitude()
The latitude coordinate of the endpoint location, rounded to one decimal place.
public final Double longitude()
The longitude coordinate of the endpoint location, rounded to one decimal place.
public final String postalCode()
The postal or ZIP code for the area where the endpoint is located.
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.
public EndpointLocation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EndpointLocation.Builder,EndpointLocation>public static EndpointLocation.Builder builder()
public static Class<? extends EndpointLocation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.