public static class Storefront.ExternalVideo extends AbstractResponse<Storefront.ExternalVideo> implements Storefront.Media, Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
ExternalVideo() |
ExternalVideo(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlt()
A word or phrase to share the nature or contents of a media.
|
java.lang.String |
getEmbeddedUrl()
Deprecated.
Use `originUrl` instead.
|
java.lang.String |
getEmbedUrl()
The embed URL of the video for the respective host.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.MediaHost |
getHost()
The host of the external video.
|
ID |
getId()
A globally-unique ID.
|
Storefront.MediaContentType |
getMediaContentType()
The media content type.
|
java.lang.String |
getOriginUrl()
The origin URL of the video on the respective host.
|
Storefront.MediaPresentation |
getPresentation()
The presentation for a media.
|
Storefront.Image |
getPreviewImage()
The preview image for the media.
|
Storefront.ExternalVideo |
setAlt(java.lang.String arg) |
Storefront.ExternalVideo |
setEmbeddedUrl(java.lang.String arg) |
Storefront.ExternalVideo |
setEmbedUrl(java.lang.String arg) |
Storefront.ExternalVideo |
setHost(Storefront.MediaHost arg) |
Storefront.ExternalVideo |
setMediaContentType(Storefront.MediaContentType arg) |
Storefront.ExternalVideo |
setOriginUrl(java.lang.String arg) |
Storefront.ExternalVideo |
setPresentation(Storefront.MediaPresentation arg) |
Storefront.ExternalVideo |
setPreviewImage(Storefront.Image arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic ExternalVideo()
public ExternalVideo(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.MediagetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic java.lang.String getAlt()
getAlt in interface Storefront.Mediapublic Storefront.ExternalVideo setAlt(java.lang.String arg)
public java.lang.String getEmbedUrl()
public Storefront.ExternalVideo setEmbedUrl(java.lang.String arg)
public java.lang.String getEmbeddedUrl()
public Storefront.ExternalVideo setEmbeddedUrl(java.lang.String arg)
public Storefront.MediaHost getHost()
public Storefront.ExternalVideo setHost(Storefront.MediaHost arg)
public ID getId()
getId in interface Storefront.MediagetId in interface Storefront.NodegetId in interface Nodepublic Storefront.MediaContentType getMediaContentType()
getMediaContentType in interface Storefront.Mediapublic Storefront.ExternalVideo setMediaContentType(Storefront.MediaContentType arg)
public java.lang.String getOriginUrl()
public Storefront.ExternalVideo setOriginUrl(java.lang.String arg)
public Storefront.MediaPresentation getPresentation()
getPresentation in interface Storefront.Mediapublic Storefront.ExternalVideo setPresentation(Storefront.MediaPresentation arg)
public Storefront.Image getPreviewImage()
getPreviewImage in interface Storefront.Mediapublic Storefront.ExternalVideo setPreviewImage(Storefront.Image arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.ExternalVideo>