public class Address extends Object implements Serializable, Cloneable
The address that you want the Snowball or Snowballs associated with a
specific job to be shipped to. Addresses are validated at the time of
creation. The address you provide must be located within the serviceable area
of your region. Although no individual elements of the Address
are required, if the address is invalid or unsupported, then an exception is
thrown.
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
Address |
clone() |
boolean |
equals(Object obj) |
String |
getAddressId()
The unique ID for an address.
|
String |
getCity()
The city in an address that a Snowball is to be delivered to.
|
String |
getCompany()
The name of the company to receive a Snowball at an address.
|
String |
getCountry()
The country in an address that a Snowball is to be delivered to.
|
String |
getLandmark()
A landmark listed in an address that a Snowball is to be delivered to.
|
String |
getName()
The name of a person to receive a Snowball at an address.
|
String |
getPhoneNumber()
The phone number associated with an address that a Snowball is to be
delivered to.
|
String |
getPostalCode()
The postal code in an address that a Snowball is to be delivered to.
|
String |
getPrefectureOrDistrict()
The prefecture or district in an address that a Snowball is to be
delivered to.
|
String |
getStateOrProvince()
The state or province in an address that a Snowball is to be delivered
to.
|
String |
getStreet1()
The first line in a street address that a Snowball is to be delivered to.
|
String |
getStreet2()
The second line in a street address that a Snowball is to be delivered
to.
|
String |
getStreet3()
The third line in a street address that a Snowball is to be delivered to.
|
int |
hashCode() |
void |
setAddressId(String addressId)
The unique ID for an address.
|
void |
setCity(String city)
The city in an address that a Snowball is to be delivered to.
|
void |
setCompany(String company)
The name of the company to receive a Snowball at an address.
|
void |
setCountry(String country)
The country in an address that a Snowball is to be delivered to.
|
void |
setLandmark(String landmark)
A landmark listed in an address that a Snowball is to be delivered to.
|
void |
setName(String name)
The name of a person to receive a Snowball at an address.
|
void |
setPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snowball is to be
delivered to.
|
void |
setPostalCode(String postalCode)
The postal code in an address that a Snowball is to be delivered to.
|
void |
setPrefectureOrDistrict(String prefectureOrDistrict)
The prefecture or district in an address that a Snowball is to be
delivered to.
|
void |
setStateOrProvince(String stateOrProvince)
The state or province in an address that a Snowball is to be delivered
to.
|
void |
setStreet1(String street1)
The first line in a street address that a Snowball is to be delivered to.
|
void |
setStreet2(String street2)
The second line in a street address that a Snowball is to be delivered
to.
|
void |
setStreet3(String street3)
The third line in a street address that a Snowball is to be delivered to.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Address |
withAddressId(String addressId)
The unique ID for an address.
|
Address |
withCity(String city)
The city in an address that a Snowball is to be delivered to.
|
Address |
withCompany(String company)
The name of the company to receive a Snowball at an address.
|
Address |
withCountry(String country)
The country in an address that a Snowball is to be delivered to.
|
Address |
withLandmark(String landmark)
A landmark listed in an address that a Snowball is to be delivered to.
|
Address |
withName(String name)
The name of a person to receive a Snowball at an address.
|
Address |
withPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snowball is to be
delivered to.
|
Address |
withPostalCode(String postalCode)
The postal code in an address that a Snowball is to be delivered to.
|
Address |
withPrefectureOrDistrict(String prefectureOrDistrict)
The prefecture or district in an address that a Snowball is to be
delivered to.
|
Address |
withStateOrProvince(String stateOrProvince)
The state or province in an address that a Snowball is to be delivered
to.
|
Address |
withStreet1(String street1)
The first line in a street address that a Snowball is to be delivered to.
|
Address |
withStreet2(String street2)
The second line in a street address that a Snowball is to be delivered
to.
|
Address |
withStreet3(String street3)
The third line in a street address that a Snowball is to be delivered to.
|
public void setAddressId(String addressId)
The unique ID for an address.
addressId - The unique ID for an address.public String getAddressId()
The unique ID for an address.
public Address withAddressId(String addressId)
The unique ID for an address.
addressId - The unique ID for an address.public void setName(String name)
The name of a person to receive a Snowball at an address.
name - The name of a person to receive a Snowball at an address.public String getName()
The name of a person to receive a Snowball at an address.
public Address withName(String name)
The name of a person to receive a Snowball at an address.
name - The name of a person to receive a Snowball at an address.public void setCompany(String company)
The name of the company to receive a Snowball at an address.
company - The name of the company to receive a Snowball at an address.public String getCompany()
The name of the company to receive a Snowball at an address.
public Address withCompany(String company)
The name of the company to receive a Snowball at an address.
company - The name of the company to receive a Snowball at an address.public void setStreet1(String street1)
The first line in a street address that a Snowball is to be delivered to.
street1 - The first line in a street address that a Snowball is to be
delivered to.public String getStreet1()
The first line in a street address that a Snowball is to be delivered to.
public Address withStreet1(String street1)
The first line in a street address that a Snowball is to be delivered to.
street1 - The first line in a street address that a Snowball is to be
delivered to.public void setStreet2(String street2)
The second line in a street address that a Snowball is to be delivered to.
street2 - The second line in a street address that a Snowball is to be
delivered to.public String getStreet2()
The second line in a street address that a Snowball is to be delivered to.
public Address withStreet2(String street2)
The second line in a street address that a Snowball is to be delivered to.
street2 - The second line in a street address that a Snowball is to be
delivered to.public void setStreet3(String street3)
The third line in a street address that a Snowball is to be delivered to.
street3 - The third line in a street address that a Snowball is to be
delivered to.public String getStreet3()
The third line in a street address that a Snowball is to be delivered to.
public Address withStreet3(String street3)
The third line in a street address that a Snowball is to be delivered to.
street3 - The third line in a street address that a Snowball is to be
delivered to.public void setCity(String city)
The city in an address that a Snowball is to be delivered to.
city - The city in an address that a Snowball is to be delivered to.public String getCity()
The city in an address that a Snowball is to be delivered to.
public Address withCity(String city)
The city in an address that a Snowball is to be delivered to.
city - The city in an address that a Snowball is to be delivered to.public void setStateOrProvince(String stateOrProvince)
The state or province in an address that a Snowball is to be delivered to.
stateOrProvince - The state or province in an address that a Snowball is to be
delivered to.public String getStateOrProvince()
The state or province in an address that a Snowball is to be delivered to.
public Address withStateOrProvince(String stateOrProvince)
The state or province in an address that a Snowball is to be delivered to.
stateOrProvince - The state or province in an address that a Snowball is to be
delivered to.public void setPrefectureOrDistrict(String prefectureOrDistrict)
The prefecture or district in an address that a Snowball is to be delivered to.
prefectureOrDistrict - The prefecture or district in an address that a Snowball is to be
delivered to.public String getPrefectureOrDistrict()
The prefecture or district in an address that a Snowball is to be delivered to.
public Address withPrefectureOrDistrict(String prefectureOrDistrict)
The prefecture or district in an address that a Snowball is to be delivered to.
prefectureOrDistrict - The prefecture or district in an address that a Snowball is to be
delivered to.public void setLandmark(String landmark)
A landmark listed in an address that a Snowball is to be delivered to.
landmark - A landmark listed in an address that a Snowball is to be delivered
to.public String getLandmark()
A landmark listed in an address that a Snowball is to be delivered to.
public Address withLandmark(String landmark)
A landmark listed in an address that a Snowball is to be delivered to.
landmark - A landmark listed in an address that a Snowball is to be delivered
to.public void setCountry(String country)
The country in an address that a Snowball is to be delivered to.
country - The country in an address that a Snowball is to be delivered to.public String getCountry()
The country in an address that a Snowball is to be delivered to.
public Address withCountry(String country)
The country in an address that a Snowball is to be delivered to.
country - The country in an address that a Snowball is to be delivered to.public void setPostalCode(String postalCode)
The postal code in an address that a Snowball is to be delivered to.
postalCode - The postal code in an address that a Snowball is to be delivered
to.public String getPostalCode()
The postal code in an address that a Snowball is to be delivered to.
public Address withPostalCode(String postalCode)
The postal code in an address that a Snowball is to be delivered to.
postalCode - The postal code in an address that a Snowball is to be delivered
to.public void setPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snowball is to be delivered to.
phoneNumber - The phone number associated with an address that a Snowball is to
be delivered to.public String getPhoneNumber()
The phone number associated with an address that a Snowball is to be delivered to.
public Address withPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snowball is to be delivered to.
phoneNumber - The phone number associated with an address that a Snowball is to
be delivered to.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.