Builder for the SharePhotoContent interface.
Extends: | Builder |
Package: | model |
addMedium(ShareMedia)
Adds a medium to the content.
public Builder addMedium(ShareMedia medium)
Parameter | Description |
---|---|
medium | ShareMedia to add. |
addMedia(List)
Adds multiple media to the content.
public Builder addMedia(List media)
Parameter | Description |
---|---|
media | List of ShareMedia to add. |
build()
Builds the object.
public Object build()
build()
public ShareMediaContent build()
readFrom(ShareModel)
Reads the values from a ShareModel into the builder.
public ShareModelBuilder readFrom(ShareModel model)
Parameter | Description |
---|---|
model | The source ShareModel |
setMedia(List)
Replaces the media for the builder.
public Builder setMedia(List media)
Parameter | Description |
---|---|
media | List of ShareMedia to add. |