@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Place extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about addresses or points of interest that match the search criteria.
Constructor and Description |
---|
Place() |
Modifier and Type | Method and Description |
---|---|
Place |
clone() |
boolean |
equals(Object obj) |
String |
getAddressNumber()
The numerical portion of an address, such as a building number.
|
String |
getCountry()
A country/region specified using ISO 3166 3-digit
country/region code.
|
PlaceGeometry |
getGeometry() |
String |
getLabel()
The full name and address of the point of interest such as a city, region, or country.
|
String |
getMunicipality()
A name for a local area, such as a city or town name.
|
String |
getNeighborhood()
The name of a community district.
|
String |
getPostalCode()
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of
identifying a location.
|
String |
getRegion()
A name for an area or geographical division, such as a province or state name.
|
String |
getStreet()
The name for a street or a road to identify a location.
|
String |
getSubRegion()
A country, or an area that's part of a larger region .
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddressNumber(String addressNumber)
The numerical portion of an address, such as a building number.
|
void |
setCountry(String country)
A country/region specified using ISO 3166 3-digit
country/region code.
|
void |
setGeometry(PlaceGeometry geometry) |
void |
setLabel(String label)
The full name and address of the point of interest such as a city, region, or country.
|
void |
setMunicipality(String municipality)
A name for a local area, such as a city or town name.
|
void |
setNeighborhood(String neighborhood)
The name of a community district.
|
void |
setPostalCode(String postalCode)
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of
identifying a location.
|
void |
setRegion(String region)
A name for an area or geographical division, such as a province or state name.
|
void |
setStreet(String street)
The name for a street or a road to identify a location.
|
void |
setSubRegion(String subRegion)
A country, or an area that's part of a larger region .
|
String |
toString()
Returns a string representation of this object.
|
Place |
withAddressNumber(String addressNumber)
The numerical portion of an address, such as a building number.
|
Place |
withCountry(String country)
A country/region specified using ISO 3166 3-digit
country/region code.
|
Place |
withGeometry(PlaceGeometry geometry) |
Place |
withLabel(String label)
The full name and address of the point of interest such as a city, region, or country.
|
Place |
withMunicipality(String municipality)
A name for a local area, such as a city or town name.
|
Place |
withNeighborhood(String neighborhood)
The name of a community district.
|
Place |
withPostalCode(String postalCode)
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of
identifying a location.
|
Place |
withRegion(String region)
A name for an area or geographical division, such as a province or state name.
|
Place |
withStreet(String street)
The name for a street or a road to identify a location.
|
Place |
withSubRegion(String subRegion)
A country, or an area that's part of a larger region .
|
public void setAddressNumber(String addressNumber)
The numerical portion of an address, such as a building number.
addressNumber
- The numerical portion of an address, such as a building number.public String getAddressNumber()
The numerical portion of an address, such as a building number.
public Place withAddressNumber(String addressNumber)
The numerical portion of an address, such as a building number.
addressNumber
- The numerical portion of an address, such as a building number.public void setCountry(String country)
A country/region specified using ISO 3166 3-digit
country/region code. For example, CAN
.
country
- A country/region specified using ISO 3166
3-digit country/region code. For example, CAN
.public String getCountry()
A country/region specified using ISO 3166 3-digit
country/region code. For example, CAN
.
CAN
.public Place withCountry(String country)
A country/region specified using ISO 3166 3-digit
country/region code. For example, CAN
.
country
- A country/region specified using ISO 3166
3-digit country/region code. For example, CAN
.public void setGeometry(PlaceGeometry geometry)
geometry
- public PlaceGeometry getGeometry()
public Place withGeometry(PlaceGeometry geometry)
geometry
- public void setLabel(String label)
The full name and address of the point of interest such as a city, region, or country. For example,
123 Any Street, Any Town, USA
.
label
- The full name and address of the point of interest such as a city, region, or country. For example,
123 Any Street, Any Town, USA
.public String getLabel()
The full name and address of the point of interest such as a city, region, or country. For example,
123 Any Street, Any Town, USA
.
123 Any Street, Any Town, USA
.public Place withLabel(String label)
The full name and address of the point of interest such as a city, region, or country. For example,
123 Any Street, Any Town, USA
.
label
- The full name and address of the point of interest such as a city, region, or country. For example,
123 Any Street, Any Town, USA
.public void setMunicipality(String municipality)
A name for a local area, such as a city or town name. For example, Toronto
.
municipality
- A name for a local area, such as a city or town name. For example, Toronto
.public String getMunicipality()
A name for a local area, such as a city or town name. For example, Toronto
.
Toronto
.public Place withMunicipality(String municipality)
A name for a local area, such as a city or town name. For example, Toronto
.
municipality
- A name for a local area, such as a city or town name. For example, Toronto
.public void setNeighborhood(String neighborhood)
The name of a community district. For example, Downtown
.
neighborhood
- The name of a community district. For example, Downtown
.public String getNeighborhood()
The name of a community district. For example, Downtown
.
Downtown
.public Place withNeighborhood(String neighborhood)
The name of a community district. For example, Downtown
.
neighborhood
- The name of a community district. For example, Downtown
.public void setPostalCode(String postalCode)
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
postalCode
- A group of numbers and letters in a country-specific format, which accompanies the address for the purpose
of identifying a location.public String getPostalCode()
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
public Place withPostalCode(String postalCode)
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.
postalCode
- A group of numbers and letters in a country-specific format, which accompanies the address for the purpose
of identifying a location.public void setRegion(String region)
A name for an area or geographical division, such as a province or state name. For example,
British Columbia
.
region
- A name for an area or geographical division, such as a province or state name. For example,
British Columbia
.public String getRegion()
A name for an area or geographical division, such as a province or state name. For example,
British Columbia
.
British Columbia
.public Place withRegion(String region)
A name for an area or geographical division, such as a province or state name. For example,
British Columbia
.
region
- A name for an area or geographical division, such as a province or state name. For example,
British Columbia
.public void setStreet(String street)
The name for a street or a road to identify a location. For example, Main Street
.
street
- The name for a street or a road to identify a location. For example, Main Street
.public String getStreet()
The name for a street or a road to identify a location. For example, Main Street
.
Main Street
.public Place withStreet(String street)
The name for a street or a road to identify a location. For example, Main Street
.
street
- The name for a street or a road to identify a location. For example, Main Street
.public void setSubRegion(String subRegion)
A country, or an area that's part of a larger region . For example, Metro Vancouver
.
subRegion
- A country, or an area that's part of a larger region . For example, Metro Vancouver
.public String getSubRegion()
A country, or an area that's part of a larger region . For example, Metro Vancouver
.
Metro Vancouver
.public Place withSubRegion(String subRegion)
A country, or an area that's part of a larger region . For example, Metro Vancouver
.
subRegion
- A country, or an area that's part of a larger region . For example, Metro Vancouver
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.