Interface Address
public interface Address
Address
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Address address = Address.builder()
.country("{country}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddressBuilder
builder()
builder factory method for Addressstatic AddressBuilder
create builder for Address instancestatic Address
factory method to create a deep copy of AddressgetCity()
@NotNull String
A two-digit country code as per ISO 3166-1 alpha-2.@Valid Custom
Custom Fields defined for the Address.getEmail()
getFax()
getId()
getKey()
getPhone()
getPOBox()
getState()
getTitle()
static Address
of()
factory methodstatic Address
factory method to create a shallow copy Addressvoid
setAdditionalAddressInfo
(String additionalAddressInfo) set additionalAddressInfovoid
setAdditionalStreetInfo
(String additionalStreetInfo) set additionalStreetInfovoid
setApartment
(String apartment) set apartmentvoid
setBuilding
(String building) set buildingvoid
set cityvoid
setCompany
(String company) set companyvoid
setCountry
(String country) A two-digit country code as per ISO 3166-1 alpha-2.void
Custom Fields defined for the Address.void
setDepartment
(String department) set departmentvoid
set emailvoid
setExternalId
(String externalId) set externalIdvoid
set faxvoid
setFirstName
(String firstName) set firstNamevoid
set idvoid
set keyvoid
setLastName
(String lastName) set lastNamevoid
set mobilevoid
set phonevoid
set pOBoxvoid
setPostalCode
(String postalCode) set postalCodevoid
set regionvoid
setSalutation
(String salutation) set salutationvoid
set statevoid
setStreetName
(String streetName) set streetNamevoid
setStreetNumber
(String streetNumber) set streetNumbervoid
set titlestatic com.fasterxml.jackson.core.type.TypeReference<Address>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAddress
(Function<Address, T> helper) accessor map function
-
Method Details
-
getId
String getId()- Returns:
- id
-
getKey
String getKey()- Returns:
- key
-
getTitle
String getTitle()- Returns:
- title
-
getSalutation
String getSalutation()- Returns:
- salutation
-
getFirstName
String getFirstName()- Returns:
- firstName
-
getLastName
String getLastName()- Returns:
- lastName
-
getStreetName
String getStreetName()- Returns:
- streetName
-
getStreetNumber
String getStreetNumber()- Returns:
- streetNumber
-
getAdditionalStreetInfo
String getAdditionalStreetInfo()- Returns:
- additionalStreetInfo
-
getPostalCode
String getPostalCode()- Returns:
- postalCode
-
getCity
String getCity()- Returns:
- city
-
getRegion
String getRegion()- Returns:
- region
-
getState
String getState()- Returns:
- state
-
getCountry
A two-digit country code as per ISO 3166-1 alpha-2.
- Returns:
- country
-
getCompany
String getCompany()- Returns:
- company
-
getDepartment
String getDepartment()- Returns:
- department
-
getBuilding
String getBuilding()- Returns:
- building
-
getApartment
String getApartment()- Returns:
- apartment
-
getPOBox
String getPOBox()- Returns:
- pOBox
-
getPhone
String getPhone()- Returns:
- phone
-
getMobile
String getMobile()- Returns:
- mobile
-
getEmail
String getEmail()- Returns:
-
getFax
String getFax()- Returns:
- fax
-
getAdditionalAddressInfo
String getAdditionalAddressInfo()- Returns:
- additionalAddressInfo
-
getExternalId
String getExternalId()- Returns:
- externalId
-
getCustom
Custom Fields defined for the Address. Custom Fields can only be applied to
shippingAddress
.- Returns:
- custom
-
setId
set id- Parameters:
id
- value to be set
-
setKey
set key- Parameters:
key
- value to be set
-
setTitle
set title- Parameters:
title
- value to be set
-
setSalutation
set salutation- Parameters:
salutation
- value to be set
-
setFirstName
set firstName- Parameters:
firstName
- value to be set
-
setLastName
set lastName- Parameters:
lastName
- value to be set
-
setStreetName
set streetName- Parameters:
streetName
- value to be set
-
setStreetNumber
set streetNumber- Parameters:
streetNumber
- value to be set
-
setAdditionalStreetInfo
set additionalStreetInfo- Parameters:
additionalStreetInfo
- value to be set
-
setPostalCode
set postalCode- Parameters:
postalCode
- value to be set
-
setCity
set city- Parameters:
city
- value to be set
-
setRegion
set region- Parameters:
region
- value to be set
-
setState
set state- Parameters:
state
- value to be set
-
setCountry
A two-digit country code as per ISO 3166-1 alpha-2.
- Parameters:
country
- value to be set
-
setCompany
set company- Parameters:
company
- value to be set
-
setDepartment
set department- Parameters:
department
- value to be set
-
setBuilding
set building- Parameters:
building
- value to be set
-
setApartment
set apartment- Parameters:
apartment
- value to be set
-
setPOBox
set pOBox- Parameters:
pOBox
- value to be set
-
setPhone
set phone- Parameters:
phone
- value to be set
-
setMobile
set mobile- Parameters:
mobile
- value to be set
-
setEmail
set email- Parameters:
email
- value to be set
-
setFax
set fax- Parameters:
fax
- value to be set
-
setAdditionalAddressInfo
set additionalAddressInfo- Parameters:
additionalAddressInfo
- value to be set
-
setExternalId
set externalId- Parameters:
externalId
- value to be set
-
setCustom
Custom Fields defined for the Address. Custom Fields can only be applied to
shippingAddress
.- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of Address
-
of
factory method to create a shallow copy Address- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Address- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Address- Returns:
- builder
-
builder
create builder for Address instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAddress
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-