public class PostalAddress extends Object
Constructor and Description |
---|
PostalAddress() |
PostalAddress(String address,
EnumWithCustomOfPostalAddressCategory category,
String city,
String country,
String countryCode,
Boolean isMailingAddress,
String postalCode,
String postOfficeBox,
Boolean preferred,
String stateOrProvince,
String street)
Initializes a new instance of the PostalAddress
|
Modifier and Type | Method and Description |
---|---|
PostalAddress |
address(String address)
Set address and return this.
|
PostalAddress |
category(EnumWithCustomOfPostalAddressCategory category)
Set category and return this.
|
PostalAddress |
city(String city)
Set city and return this.
|
PostalAddress |
country(String country)
Set country and return this.
|
PostalAddress |
countryCode(String countryCode)
Set countryCode and return this.
|
boolean |
equals(Object o) |
String |
getAddress()
Address.
|
EnumWithCustomOfPostalAddressCategory |
getCategory()
Address category.
|
String |
getCity()
Address's city.
|
String |
getCountry()
Address's country.
|
String |
getCountryCode()
Country code.
|
String |
getPostalCode()
Postal code.
|
String |
getPostOfficeBox()
Post Office box.
|
String |
getStateOrProvince()
Address's region.
|
String |
getStreet()
Address's street.
|
int |
hashCode() |
Boolean |
isIsMailingAddress()
Defines whether address may be used for mailing.
|
PostalAddress |
isMailingAddress(Boolean isMailingAddress)
Set isMailingAddress and return this.
|
Boolean |
isPreferred()
Defines whether postal address is preferred.
|
PostalAddress |
postalCode(String postalCode)
Set postalCode and return this.
|
PostalAddress |
postOfficeBox(String postOfficeBox)
Set postOfficeBox and return this.
|
PostalAddress |
preferred(Boolean preferred)
Set preferred and return this.
|
void |
setAddress(String address)
Set address.
|
void |
setCategory(EnumWithCustomOfPostalAddressCategory category)
Set category.
|
void |
setCity(String city)
Set city.
|
void |
setCountry(String country)
Set country.
|
void |
setCountryCode(String countryCode)
Set countryCode.
|
void |
setIsMailingAddress(Boolean isMailingAddress)
Set isMailingAddress.
|
void |
setPostalCode(String postalCode)
Set postalCode.
|
void |
setPostOfficeBox(String postOfficeBox)
Set postOfficeBox.
|
void |
setPreferred(Boolean preferred)
Set preferred.
|
void |
setStateOrProvince(String stateOrProvince)
Set stateOrProvince.
|
void |
setStreet(String street)
Set street.
|
PostalAddress |
stateOrProvince(String stateOrProvince)
Set stateOrProvince and return this.
|
PostalAddress |
street(String street)
Set street and return this.
|
String |
toString() |
public PostalAddress()
public PostalAddress(String address, EnumWithCustomOfPostalAddressCategory category, String city, String country, String countryCode, Boolean isMailingAddress, String postalCode, String postOfficeBox, Boolean preferred, String stateOrProvince, String street)
address
- Address.category
- Address category.city
- Address's city.country
- Address's country.countryCode
- Country code.isMailingAddress
- Defines whether address may be used for mailing.postalCode
- Postal code.postOfficeBox
- Post Office box.preferred
- Defines whether postal address is preferred.stateOrProvince
- Address's region.street
- Address's street.public PostalAddress address(String address)
address
- Address.public String getAddress()
public void setAddress(String address)
address
- Address.public PostalAddress category(EnumWithCustomOfPostalAddressCategory category)
category
- Address category.public EnumWithCustomOfPostalAddressCategory getCategory()
public void setCategory(EnumWithCustomOfPostalAddressCategory category)
category
- Address category.public PostalAddress city(String city)
city
- Address's city.public String getCity()
public void setCity(String city)
city
- Address's city.public PostalAddress country(String country)
country
- Address's country.public String getCountry()
public void setCountry(String country)
country
- Address's country.public PostalAddress countryCode(String countryCode)
countryCode
- Country code.public String getCountryCode()
public void setCountryCode(String countryCode)
countryCode
- Country code.public PostalAddress isMailingAddress(Boolean isMailingAddress)
isMailingAddress
- Defines whether address may be used for mailing.public Boolean isIsMailingAddress()
public void setIsMailingAddress(Boolean isMailingAddress)
isMailingAddress
- Defines whether address may be used for mailing.public PostalAddress postalCode(String postalCode)
postalCode
- Postal code.public String getPostalCode()
public void setPostalCode(String postalCode)
postalCode
- Postal code.public PostalAddress postOfficeBox(String postOfficeBox)
postOfficeBox
- Post Office box.public String getPostOfficeBox()
public void setPostOfficeBox(String postOfficeBox)
postOfficeBox
- Post Office box.public PostalAddress preferred(Boolean preferred)
preferred
- Defines whether postal address is preferred.public Boolean isPreferred()
public void setPreferred(Boolean preferred)
preferred
- Defines whether postal address is preferred.public PostalAddress stateOrProvince(String stateOrProvince)
stateOrProvince
- Address's region.public String getStateOrProvince()
public void setStateOrProvince(String stateOrProvince)
stateOrProvince
- Address's region.public PostalAddress street(String street)
street
- Address's street.public String getStreet()
public void setStreet(String street)
street
- Address's street.Copyright © 2020. All rights reserved.