public static class Storefront.Video extends AbstractResponse<Storefront.Video> implements Storefront.Media, Storefront.MetafieldReference, Storefront.Node
optimisticData, responseData| 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()
A 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) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Video()
public Video(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.MediagetGraphQlTypeName in interface Storefront.MetafieldReferencegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic java.lang.String getAlt()
getAlt in interface Storefront.Mediapublic Storefront.Video setAlt(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface 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)
unwrapsToObject in class AbstractResponse<Storefront.Video>