public static class Storefront.Video extends <any> implements Storefront.Media, Storefront.Node
| Constructor and Description |
|---|
Video() |
Video(ID id) |
Video(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 |
getGraphQlTypeName() |
ID |
getId()
Globally unique identifier.
|
Storefront.MediaContentType |
getMediaContentType()
The media content type.
|
Storefront.Image |
getPreviewImage()
The preview image for the media.
|
java.util.List<Storefront.VideoSource> |
getSources()
The sources for a video.
|
Storefront.Video |
setAlt(java.lang.String arg) |
Storefront.Video |
setMediaContentType(Storefront.MediaContentType arg) |
Storefront.Video |
setPreviewImage(Storefront.Image arg) |
Storefront.Video |
setSources(java.util.List<Storefront.VideoSource> arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public Video()
public Video(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic Video(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.MediagetGraphQlTypeName in interface Storefront.Nodepublic java.lang.String getAlt()
getAlt in interface Storefront.Mediapublic Storefront.Video setAlt(java.lang.String arg)
public ID getId()
getId in interface Storefront.Nodepublic Storefront.MediaContentType getMediaContentType()
getMediaContentType in interface Storefront.Mediapublic Storefront.Video setMediaContentType(Storefront.MediaContentType arg)
public Storefront.Image getPreviewImage()
getPreviewImage in interface Storefront.Mediapublic Storefront.Video setPreviewImage(Storefront.Image arg)
public java.util.List<Storefront.VideoSource> getSources()
public Storefront.Video setSources(java.util.List<Storefront.VideoSource> arg)
public boolean unwrapsToObject(java.lang.String key)