@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Address extends Object implements Serializable, Cloneable, StructuredPojo
A validated address.
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
Address |
clone() |
boolean |
equals(Object obj) |
String |
getCity()
The city of an address.
|
String |
getCountry()
The country of an address.
|
String |
getPostalCode()
The postal code of an address.
|
String |
getPostalCodePlus4()
The zip + 4 or postal code + 4 of an address.
|
String |
getPostDirectional()
An address suffix location, such as the
S. |
String |
getPreDirectional()
An address prefix location, such as the
N in N. |
String |
getState()
The state of an address.
|
String |
getStreetName()
The address street, such as
8th Avenue . |
String |
getStreetNumber()
The numeric portion of an address.
|
String |
getStreetSuffix()
The address suffix, such as the
N in 8th Avenue N . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCity(String city)
The city of an address.
|
void |
setCountry(String country)
The country of an address.
|
void |
setPostalCode(String postalCode)
The postal code of an address.
|
void |
setPostalCodePlus4(String postalCodePlus4)
The zip + 4 or postal code + 4 of an address.
|
void |
setPostDirectional(String postDirectional)
An address suffix location, such as the
S. |
void |
setPreDirectional(String preDirectional)
An address prefix location, such as the
N in N. |
void |
setState(String state)
The state of an address.
|
void |
setStreetName(String streetName)
The address street, such as
8th Avenue . |
void |
setStreetNumber(String streetNumber)
The numeric portion of an address.
|
void |
setStreetSuffix(String streetSuffix)
The address suffix, such as the
N in 8th Avenue N . |
String |
toString()
Returns a string representation of this object.
|
Address |
withCity(String city)
The city of an address.
|
Address |
withCountry(String country)
The country of an address.
|
Address |
withPostalCode(String postalCode)
The postal code of an address.
|
Address |
withPostalCodePlus4(String postalCodePlus4)
The zip + 4 or postal code + 4 of an address.
|
Address |
withPostDirectional(String postDirectional)
An address suffix location, such as the
S. |
Address |
withPreDirectional(String preDirectional)
An address prefix location, such as the
N in N. |
Address |
withState(String state)
The state of an address.
|
Address |
withStreetName(String streetName)
The address street, such as
8th Avenue . |
Address |
withStreetNumber(String streetNumber)
The numeric portion of an address.
|
Address |
withStreetSuffix(String streetSuffix)
The address suffix, such as the
N in 8th Avenue N . |
public void setStreetName(String streetName)
The address street, such as 8th Avenue
.
streetName
- The address street, such as 8th Avenue
.public String getStreetName()
The address street, such as 8th Avenue
.
8th Avenue
.public Address withStreetName(String streetName)
The address street, such as 8th Avenue
.
streetName
- The address street, such as 8th Avenue
.public void setStreetSuffix(String streetSuffix)
The address suffix, such as the N
in 8th Avenue N
.
streetSuffix
- The address suffix, such as the N
in 8th Avenue N
.public String getStreetSuffix()
The address suffix, such as the N
in 8th Avenue N
.
N
in 8th Avenue N
.public Address withStreetSuffix(String streetSuffix)
The address suffix, such as the N
in 8th Avenue N
.
streetSuffix
- The address suffix, such as the N
in 8th Avenue N
.public void setPostDirectional(String postDirectional)
An address suffix location, such as the S. Unit A
in Central Park S. Unit A
.
postDirectional
- An address suffix location, such as the S. Unit A
in Central Park S. Unit A
.public String getPostDirectional()
An address suffix location, such as the S. Unit A
in Central Park S. Unit A
.
S. Unit A
in Central Park S. Unit A
.public Address withPostDirectional(String postDirectional)
An address suffix location, such as the S. Unit A
in Central Park S. Unit A
.
postDirectional
- An address suffix location, such as the S. Unit A
in Central Park S. Unit A
.public void setPreDirectional(String preDirectional)
An address prefix location, such as the N
in N. Third St.
preDirectional
- An address prefix location, such as the N
in N. Third St.
public String getPreDirectional()
An address prefix location, such as the N
in N. Third St.
N
in N. Third St.
public Address withPreDirectional(String preDirectional)
An address prefix location, such as the N
in N. Third St.
preDirectional
- An address prefix location, such as the N
in N. Third St.
public void setStreetNumber(String streetNumber)
The numeric portion of an address.
streetNumber
- The numeric portion of an address.public String getStreetNumber()
The numeric portion of an address.
public Address withStreetNumber(String streetNumber)
The numeric portion of an address.
streetNumber
- The numeric portion of an address.public void setCity(String city)
The city of an address.
city
- The city of an address.public String getCity()
The city of an address.
public Address withCity(String city)
The city of an address.
city
- The city of an address.public void setState(String state)
The state of an address.
state
- The state of an address.public String getState()
The state of an address.
public Address withState(String state)
The state of an address.
state
- The state of an address.public void setPostalCode(String postalCode)
The postal code of an address.
postalCode
- The postal code of an address.public String getPostalCode()
The postal code of an address.
public Address withPostalCode(String postalCode)
The postal code of an address.
postalCode
- The postal code of an address.public void setPostalCodePlus4(String postalCodePlus4)
The zip + 4 or postal code + 4 of an address.
postalCodePlus4
- The zip + 4 or postal code + 4 of an address.public String getPostalCodePlus4()
The zip + 4 or postal code + 4 of an address.
public Address withPostalCodePlus4(String postalCodePlus4)
The zip + 4 or postal code + 4 of an address.
postalCodePlus4
- The zip + 4 or postal code + 4 of an address.public void setCountry(String country)
The country of an address.
country
- The country of an address.public String getCountry()
The country of an address.
public Address withCountry(String country)
The country of an address.
country
- The country of an address.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.