public static class Address.Builder extends MultiValuedAttribute.Builder
Address instances| Constructor and Description |
|---|
Address.Builder() |
Address.Builder(Address address)
builds an Builder based of the given Attribute
|
| Modifier and Type | Method and Description |
|---|---|
Address |
build()
Builds a new Attribute with the given parameters
|
Address.Builder |
setCountry(String country)
Sets the country name (See
Address.getCountry()). |
Address.Builder |
setFormatted(String formatted)
Sets the full mailing address (See
Address.getFormatted()). |
Address.Builder |
setLocality(String locality)
Sets the city or locality.
|
Address.Builder |
setOperation(String operation)
Sets the operation (See
MultiValuedAttribute.getOperation()). |
Address.Builder |
setPostalCode(String postalCode)
Sets the postal code
|
Address.Builder |
setPrimary(boolean primary)
Sets the primary attribute (See
MultiValuedAttribute.isPrimary()). |
Address.Builder |
setRegion(String region)
Sets the state or region.
|
Address.Builder |
setStreetAddress(String streetAddress)
Sets the full street address component, (See
Address.getStreetAddress()). |
Address.Builder |
setType(Address.Type type)
Sets the label indicating the attribute's function (See
MultiValuedAttribute#getType()). |
setDisplay, setReference, setValuepublic Address.Builder()
public Address.Builder(Address address)
address - existing Attributepublic Address.Builder setFormatted(String formatted)
Address.getFormatted()).formatted - the formatted addresspublic Address.Builder setStreetAddress(String streetAddress)
Address.getStreetAddress()).streetAddress - the street addresspublic Address.Builder setLocality(String locality)
locality - the localitypublic Address.Builder setRegion(String region)
region - the regionpublic Address.Builder setPostalCode(String postalCode)
postalCode - the postal codepublic Address.Builder setType(Address.Type type)
MultiValuedAttribute#getType()).type - the type of the attributepublic Address.Builder setCountry(String country)
Address.getCountry()).country - the countrypublic Address.Builder setPrimary(boolean primary)
MultiValuedAttribute.BuilderMultiValuedAttribute.isPrimary()).setPrimary in class MultiValuedAttribute.Builderpublic Address.Builder setOperation(String operation)
MultiValuedAttribute.BuilderMultiValuedAttribute.getOperation()).
Will be automatically set by the UpdateUsersetOperation in class MultiValuedAttribute.Builderoperation - only "delete" is supported at the momentpublic Address build()
MultiValuedAttribute.Builderbuild in class MultiValuedAttribute.BuilderCopyright © 2014. All Rights Reserved.