@Generated(value="software.amazon.awssdk:codegen") public final class GeoLocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GeoLocation.Builder,GeoLocation>
A complex type that contains information about a geographic location.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GeoLocation.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GeoLocation.Builder |
builder() |
String |
continentCode()
The two-letter code for the continent.
|
String |
countryCode()
For geolocation resource record sets, the two-letter code for a country.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends GeoLocation.Builder> |
serializableBuilderClass() |
String |
subdivisionCode()
For geolocation resource record sets, the two-letter code for a state of the United States.
|
GeoLocation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String continentCode()
The two-letter code for the continent.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
Amazon Route 53 supports the following continent codes:
AF: Africa
AN: Antarctica
AS: Asia
EU: Europe
OC: Oceania
NA: North America
SA: South America
Constraint: Specifying ContinentCode with either CountryCode or
SubdivisionCode returns an InvalidInput error.
public final String countryCode()
For geolocation resource record sets, the two-letter code for a country.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the contry code UA forr Ukraine.
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
Route 53 also supports the contry code UA forr Ukraine.
public final String subdivisionCode()
For geolocation resource record sets, the two-letter code for a state of the United States. Route 53 doesn't
support any other values for SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on
the United States Postal Service website.
If you specify subdivisioncode, you must also specify US for CountryCode.
SubdivisionCode. For a list of state abbreviations, see
Appendix B: Two–Letter State and Possession
Abbreviations on the United States Postal Service website.
If you specify subdivisioncode, you must also specify US for
CountryCode.
public GeoLocation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GeoLocation.Builder,GeoLocation>public static GeoLocation.Builder builder()
public static Class<? extends GeoLocation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.