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()
.id("{id}")
.key("{key}")
.title("{title}")
.salutation("{salutation}")
.firstName("{firstName}")
.lastName("{lastName}")
.streetName("{streetName}")
.streetNumber("{streetNumber}")
.additionalStreetInfo("{additionalStreetInfo}")
.postalCode("{postalCode}")
.city("{city}")
.region("{region}")
.state("{state}")
.country("{country}")
.company("{company}")
.department("{department}")
.building("{building}")
.apartment("{apartment}")
.pOBox("{pOBox}")
.phone("{phone}")
.mobile("{mobile}")
.email("{email}")
.fax("{fax}")
.additionalAddressInfo("{additionalAddressInfo}")
.externalId("{externalId}")
.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 Address@NotNull String
@NotNull String
@NotNull String
@NotNull String
@NotNull String
getCity()
@NotNull String
@NotNull String
Two-digit country code as per ISO 3166-1 alpha-2.@NotNull String
@NotNull String
getEmail()
@NotNull String
@NotNull String
getFax()
@NotNull String
@NotNull String
getId()
Unique ID of the Address.@NotNull String
getKey()
@NotNull String
@NotNull String
@NotNull String
getPhone()
@NotNull String
getPOBox()
@NotNull String
@NotNull String
@NotNull String
@NotNull String
getState()
@NotNull String
@NotNull String
@NotNull String
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) Two-digit country code as per ISO 3166-1 alpha-2.void
setDepartment
(String department) set departmentvoid
set emailvoid
setExternalId
(String externalId) set externalIdvoid
set faxvoid
setFirstName
(String firstName) set firstNamevoid
Unique ID of the Address.void
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
Unique ID of the Address.
- Returns:
- id
-
getKey
- Returns:
- key
-
getTitle
- Returns:
- title
-
getSalutation
- Returns:
- salutation
-
getFirstName
- Returns:
- firstName
-
getLastName
- Returns:
- lastName
-
getStreetName
- Returns:
- streetName
-
getStreetNumber
- Returns:
- streetNumber
-
getAdditionalStreetInfo
- Returns:
- additionalStreetInfo
-
getPostalCode
- Returns:
- postalCode
-
getCity
- Returns:
- city
-
getRegion
- Returns:
- region
-
getState
- Returns:
- state
-
getCountry
Two-digit country code as per ISO 3166-1 alpha-2.
- Returns:
- country
-
getCompany
- Returns:
- company
-
getDepartment
- Returns:
- department
-
getBuilding
- Returns:
- building
-
getApartment
- Returns:
- apartment
-
getPOBox
- Returns:
- pOBox
-
getPhone
- Returns:
- phone
-
getMobile
- Returns:
- mobile
-
getEmail
- Returns:
-
getFax
- Returns:
- fax
-
getAdditionalAddressInfo
- Returns:
- additionalAddressInfo
-
getExternalId
- Returns:
- externalId
-
setId
Unique ID of the Address.
- 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
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
-
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
-