public static final class LinkPreview.Builder extends Object
Builder class for LinkPreview
.
Public Constructor Summary
Builder()
|
Public Method Summary
LinkPreview |
build()
|
LinkPreview.Builder | |
LinkPreview.Builder | |
LinkPreview.Builder |
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public LinkPreview build ()
public LinkPreview.Builder setHostname (String hostname)
Sets the text to indicate the link owner, eg “INSIDER”.
Required.
public LinkPreview.Builder setImage (Image image)
Sets the hero image for the content on the link.
Optional.
public LinkPreview.Builder setTitle (String title)
Sets the text to indicate the title of the link.
Required.