public static class Storefront.MediaImage extends AbstractResponse<Storefront.MediaImage> implements Storefront.Media, Storefront.MetafieldReference, Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
MediaImage() |
MediaImage(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()
A globally-unique ID.
|
Storefront.Image |
getImage()
The image for the media.
|
Storefront.MediaContentType |
getMediaContentType()
The media content type.
|
Storefront.MediaPresentation |
getPresentation()
The presentation for a media.
|
Storefront.Image |
getPreviewImage()
The preview image for the media.
|
Storefront.MediaImage |
setAlt(java.lang.String arg) |
Storefront.MediaImage |
setImage(Storefront.Image arg) |
Storefront.MediaImage |
setMediaContentType(Storefront.MediaContentType arg) |
Storefront.MediaImage |
setPresentation(Storefront.MediaPresentation arg) |
Storefront.MediaImage |
setPreviewImage(Storefront.Image arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic MediaImage()
public MediaImage(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.MediaImage setAlt(java.lang.String arg)
public ID getId()
getId in interface Storefront.MediagetId in interface Storefront.NodegetId in interface Nodepublic Storefront.Image getImage()
public Storefront.MediaImage setImage(Storefront.Image arg)
public Storefront.MediaContentType getMediaContentType()
getMediaContentType in interface Storefront.Mediapublic Storefront.MediaImage setMediaContentType(Storefront.MediaContentType arg)
public Storefront.MediaPresentation getPresentation()
getPresentation in interface Storefront.Mediapublic Storefront.MediaImage setPresentation(Storefront.MediaPresentation arg)
public Storefront.Image getPreviewImage()
getPreviewImage in interface Storefront.Mediapublic Storefront.MediaImage setPreviewImage(Storefront.Image arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.MediaImage>