public static final class ShareOpenGraphContent.Builder extends ShareContent.Builder<ShareOpenGraphContent,ShareOpenGraphContent.Builder>
ShareOpenGraphContent
interface.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ShareOpenGraphContent |
build()
Builds the object.
|
ShareOpenGraphContent.Builder |
readFrom(ShareOpenGraphContent model)
Reads the values from a ShareModel into the builder.
|
ShareOpenGraphContent.Builder |
setAction(ShareOpenGraphAction action)
Sets the Open Graph Action for the content.
|
ShareOpenGraphContent.Builder |
setPreviewPropertyName(java.lang.String previewPropertyName)
Sets the property name for the primary
ShareOpenGraphObject in the action. |
setContentUrl, setPeopleIds, setPlaceId, setRef, setShareHashtag
public ShareOpenGraphContent.Builder setAction(@Nullable ShareOpenGraphAction action)
action
- ShareOpenGraphAction
public ShareOpenGraphContent.Builder setPreviewPropertyName(@Nullable java.lang.String previewPropertyName)
ShareOpenGraphObject
in the action.previewPropertyName
- The property name for the preview object.public ShareOpenGraphContent build()
ShareBuilder
public ShareOpenGraphContent.Builder readFrom(ShareOpenGraphContent model)
ShareModelBuilder
readFrom
in interface ShareModelBuilder<ShareOpenGraphContent,ShareOpenGraphContent.Builder>
readFrom
in class ShareContent.Builder<ShareOpenGraphContent,ShareOpenGraphContent.Builder>
model
- The source ShareModel