@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Address extends Object implements Serializable, Cloneable, StructuredPojo
The address associated with the specified user.
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
Address |
clone() |
boolean |
equals(Object obj) |
String |
getCountry()
The country of the address.
|
String |
getFormatted()
A string containing a formatted version of the address for display.
|
String |
getLocality()
A string of the address locality.
|
String |
getPostalCode()
The postal code of the address.
|
Boolean |
getPrimary()
A Boolean value representing whether this is the primary address for the associated resource.
|
String |
getRegion()
The region of the address.
|
String |
getStreetAddress()
The street of the address.
|
String |
getType()
A string representing the type of address.
|
int |
hashCode() |
Boolean |
isPrimary()
A Boolean value representing whether this is the primary address for the associated resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCountry(String country)
The country of the address.
|
void |
setFormatted(String formatted)
A string containing a formatted version of the address for display.
|
void |
setLocality(String locality)
A string of the address locality.
|
void |
setPostalCode(String postalCode)
The postal code of the address.
|
void |
setPrimary(Boolean primary)
A Boolean value representing whether this is the primary address for the associated resource.
|
void |
setRegion(String region)
The region of the address.
|
void |
setStreetAddress(String streetAddress)
The street of the address.
|
void |
setType(String type)
A string representing the type of address.
|
String |
toString()
Returns a string representation of this object.
|
Address |
withCountry(String country)
The country of the address.
|
Address |
withFormatted(String formatted)
A string containing a formatted version of the address for display.
|
Address |
withLocality(String locality)
A string of the address locality.
|
Address |
withPostalCode(String postalCode)
The postal code of the address.
|
Address |
withPrimary(Boolean primary)
A Boolean value representing whether this is the primary address for the associated resource.
|
Address |
withRegion(String region)
The region of the address.
|
Address |
withStreetAddress(String streetAddress)
The street of the address.
|
Address |
withType(String type)
A string representing the type of address.
|
public void setStreetAddress(String streetAddress)
The street of the address.
streetAddress - The street of the address.public String getStreetAddress()
The street of the address.
public Address withStreetAddress(String streetAddress)
The street of the address.
streetAddress - The street of the address.public void setLocality(String locality)
A string of the address locality.
locality - A string of the address locality.public String getLocality()
A string of the address locality.
public Address withLocality(String locality)
A string of the address locality.
locality - A string of the address locality.public void setRegion(String region)
The region of the address.
region - The region of the address.public String getRegion()
The region of the address.
public Address withRegion(String region)
The region of the address.
region - The region of the address.public void setPostalCode(String postalCode)
The postal code of the address.
postalCode - The postal code of the address.public String getPostalCode()
The postal code of the address.
public Address withPostalCode(String postalCode)
The postal code of the address.
postalCode - The postal code of the address.public void setCountry(String country)
The country of the address.
country - The country of the address.public String getCountry()
The country of the address.
public Address withCountry(String country)
The country of the address.
country - The country of the address.public void setFormatted(String formatted)
A string containing a formatted version of the address for display.
formatted - A string containing a formatted version of the address for display.public String getFormatted()
A string containing a formatted version of the address for display.
public Address withFormatted(String formatted)
A string containing a formatted version of the address for display.
formatted - A string containing a formatted version of the address for display.public void setType(String type)
A string representing the type of address. For example, "Home."
type - A string representing the type of address. For example, "Home."public String getType()
A string representing the type of address. For example, "Home."
public Address withType(String type)
A string representing the type of address. For example, "Home."
type - A string representing the type of address. For example, "Home."public void setPrimary(Boolean primary)
A Boolean value representing whether this is the primary address for the associated resource.
primary - A Boolean value representing whether this is the primary address for the associated resource.public Boolean getPrimary()
A Boolean value representing whether this is the primary address for the associated resource.
public Address withPrimary(Boolean primary)
A Boolean value representing whether this is the primary address for the associated resource.
primary - A Boolean value representing whether this is the primary address for the associated resource.public Boolean isPrimary()
A Boolean value representing whether this is the primary address for the associated resource.
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.