public static class Photo.Builder extends MultiValuedAttribute.Builder
Photo instances| Constructor and Description |
|---|
Builder() |
Builder(Photo photo)
builds an Builder based of the given Attribute
|
| Modifier and Type | Method and Description |
|---|---|
Photo |
build()
Builds a new Attribute with the given parameters
|
Photo.Builder |
removeValue() |
Photo.Builder |
setDisplay(String display)
Sets the human readable name (See
MultiValuedAttribute.getDisplay()). |
Photo.Builder |
setOperation(String operation)
Sets the operation (See
MultiValuedAttribute.getOperation()). |
Photo.Builder |
setPrimary(Boolean primary)
Sets the primary attribute (See
MultiValuedAttribute.isPrimary()). |
Photo.Builder |
setType(Photo.Type type)
Sets the label indicating the attribute's function (See
Photo.getType()). |
Photo.Builder |
setValue(ImageDataURI image)
an imageDataURI which contains a small in data image.
|
Photo.Builder |
setValue(URI uri)
an URI pointing to an image
|
setReference, setValuepublic Builder()
public Builder(Photo photo)
photo - existing Attributepublic Photo.Builder setOperation(String operation)
MultiValuedAttribute.BuilderMultiValuedAttribute.getOperation()).
setOperation in class MultiValuedAttribute.Builderoperation - only "delete" is supported at the momentpublic Photo.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 Photo.Builder setValue(URI uri)
uri - a image URIpublic Photo.Builder removeValue()
public Photo.Builder setValue(ImageDataURI image)
image - a imagepublic Photo.Builder setType(Photo.Type type)
Photo.getType()).type - the type of the attributepublic Photo.Builder setPrimary(Boolean primary)
MultiValuedAttribute.BuilderMultiValuedAttribute.isPrimary()).setPrimary in class MultiValuedAttribute.Builderprimary - indicates if this is the primary attributepublic Photo build()
MultiValuedAttribute.Builderbuild in class MultiValuedAttribute.BuilderCopyright © 2022 SAP SE. All rights reserved.