public static class Storefront.UnknownMedia extends <any> implements Storefront.Media
| Constructor and Description |
|---|
UnknownMedia() |
UnknownMedia(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.Media |
create(JsonObject fields) |
java.lang.String |
getAlt()
A word or phrase to share the nature or contents of a media.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.MediaContentType |
getMediaContentType()
The media content type.
|
Storefront.Image |
getPreviewImage()
The preview image for the media.
|
Storefront.UnknownMedia |
setAlt(java.lang.String arg) |
Storefront.UnknownMedia |
setMediaContentType(Storefront.MediaContentType arg) |
Storefront.UnknownMedia |
setPreviewImage(Storefront.Image arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public UnknownMedia()
public UnknownMedia(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic static Storefront.Media create(JsonObject fields) throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.Mediapublic java.lang.String getAlt()
getAlt in interface Storefront.Mediapublic Storefront.UnknownMedia setAlt(java.lang.String arg)
public Storefront.MediaContentType getMediaContentType()
getMediaContentType in interface Storefront.Mediapublic Storefront.UnknownMedia setMediaContentType(Storefront.MediaContentType arg)
public Storefront.Image getPreviewImage()
getPreviewImage in interface Storefront.Mediapublic Storefront.UnknownMedia setPreviewImage(Storefront.Image arg)
public boolean unwrapsToObject(java.lang.String key)