public static class Storefront.UnknownMedia extends AbstractResponse<Storefront.UnknownMedia> implements Storefront.Media
optimisticData, responseData| 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() |
ID |
getId()
A globally-unique ID.
|
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.UnknownMedia |
setAlt(java.lang.String arg) |
Storefront.UnknownMedia |
setId(ID arg) |
Storefront.UnknownMedia |
setMediaContentType(Storefront.MediaContentType arg) |
Storefront.UnknownMedia |
setPresentation(Storefront.MediaPresentation arg) |
Storefront.UnknownMedia |
setPreviewImage(Storefront.Image arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic 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 ID getId()
getId in interface Storefront.Mediapublic Storefront.UnknownMedia setId(ID arg)
public Storefront.MediaContentType getMediaContentType()
getMediaContentType in interface Storefront.Mediapublic Storefront.UnknownMedia setMediaContentType(Storefront.MediaContentType arg)
public Storefront.MediaPresentation getPresentation()
getPresentation in interface Storefront.Mediapublic Storefront.UnknownMedia setPresentation(Storefront.MediaPresentation arg)
public Storefront.Image getPreviewImage()
getPreviewImage in interface Storefront.Mediapublic Storefront.UnknownMedia setPreviewImage(Storefront.Image arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.UnknownMedia>