public static class Storefront.Image extends AbstractResponse<Storefront.Image>
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAltText()
A word or phrase to share the nature or contents of an image.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.Integer |
getHeight()
The original height of the image in pixels.
|
ID |
getId()
A unique ID for the image.
|
java.lang.String |
getOriginalSrc()
Deprecated.
Use `url` instead.
|
java.lang.String |
getSrc()
Deprecated.
Use `url` instead.
|
java.lang.String |
getTransformedSrc()
Deprecated.
Use `url(transform:)` instead
|
java.lang.String |
getUrl()
The location of the image as a URL.
|
java.lang.Integer |
getWidth()
The original width of the image in pixels.
|
Storefront.Image |
setAltText(java.lang.String arg) |
Storefront.Image |
setHeight(java.lang.Integer arg) |
Storefront.Image |
setId(ID arg) |
Storefront.Image |
setOriginalSrc(java.lang.String arg) |
Storefront.Image |
setSrc(java.lang.String arg) |
Storefront.Image |
setTransformedSrc(java.lang.String arg) |
Storefront.Image |
setUrl(java.lang.String arg) |
Storefront.Image |
setWidth(java.lang.Integer arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Image()
public Image(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.String getAltText()
public Storefront.Image setAltText(java.lang.String arg)
public java.lang.Integer getHeight()
public Storefront.Image setHeight(java.lang.Integer arg)
public ID getId()
public Storefront.Image setId(ID arg)
public java.lang.String getOriginalSrc()
public Storefront.Image setOriginalSrc(java.lang.String arg)
public java.lang.String getSrc()
public Storefront.Image setSrc(java.lang.String arg)
public java.lang.String getTransformedSrc()
public Storefront.Image setTransformedSrc(java.lang.String arg)
public java.lang.String getUrl()
public Storefront.Image setUrl(java.lang.String arg)
public java.lang.Integer getWidth()
public Storefront.Image setWidth(java.lang.Integer arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Image>