public static class Address.Builder extends MultiValuedAttribute.Builder
Address instances| Constructor and Description |
|---|
Builder() |
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 |
setDisplay(String display)
Sets the human readable name (See
MultiValuedAttribute.getDisplay()). |
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
Address.getType()). |
setReference, setValuepublic Builder()
public 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)
Address.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.Builderprimary - indicates if this is the primary attributepublic Address.Builder setOperation(String operation)
MultiValuedAttribute.BuilderMultiValuedAttribute.getOperation()).
setOperation in class MultiValuedAttribute.Builderoperation - only "delete" is supported at the momentpublic Address.Builder setDisplay(String display)
MultiValuedAttribute.BuilderMultiValuedAttribute.getDisplay()).
client info: the Display value is set by the OSIAM server. If a MultiValuedAttribute which is send to the OSIAM server has this value filled, the value will be ignored or the action will be rejected.
setDisplay in class MultiValuedAttribute.Builderdisplay - a human readable namepublic Address build()
MultiValuedAttribute.Builderbuild in class MultiValuedAttribute.BuilderCopyright © 2022 SAP SE. All rights reserved.