@Generated(value="software.amazon.awssdk:codegen") public class GeoLocation extends Object implements ToCopyableBuilder<GeoLocation.Builder,GeoLocation>
A complex type that contains information about a geo 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()
The two-letter code for the country.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
static Class<? extends GeoLocation.Builder> |
serializableBuilderClass() |
String |
subdivisionCode()
The code for the subdivision, for example, a state in the United States or a province in Canada.
|
GeoLocation.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String continentCode()
The two-letter code for the continent.
Valid values: AF
| AN
| AS
| EU
| OC
|
NA
| SA
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
Valid values: AF
| AN
| AS
| EU
| OC
|
NA
| SA
Constraint: Specifying ContinentCode
with either CountryCode
or
SubdivisionCode
returns an InvalidInput
error.
public String countryCode()
The two-letter code for the country.
public String subdivisionCode()
The code for the subdivision, for example, a state in the United States or a province in Canada.
public GeoLocation.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GeoLocation.Builder,GeoLocation>
public static GeoLocation.Builder builder()
public static Class<? extends GeoLocation.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.