public static class Storefront.MediaImage extends <any> implements Storefront.Media, Storefront.Node
| Constructor and Description |
|---|
MediaImage() |
MediaImage(ID id) |
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()
Globally unique identifier.
|
Storefront.Image |
getImage()
The image for the media.
|
Storefront.MediaContentType |
getMediaContentType()
The media content type.
|
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 |
setPreviewImage(Storefront.Image arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public MediaImage()
public MediaImage(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic MediaImage(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.MediaImage setAlt(java.lang.String arg)
public ID getId()
getId in interface Storefront.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.Image getPreviewImage()
getPreviewImage in interface Storefront.Mediapublic Storefront.MediaImage setPreviewImage(Storefront.Image arg)
public boolean unwrapsToObject(java.lang.String key)