public static class Storefront.Menu extends AbstractResponse<Storefront.Menu> implements Storefront.Node
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getHandle()
The menu's handle.
|
ID |
getId()
A globally-unique ID.
|
java.util.List<Storefront.MenuItem> |
getItems()
The menu's child items.
|
java.lang.Integer |
getItemsCount()
The count of items on the menu.
|
java.lang.String |
getTitle()
The menu's title.
|
Storefront.Menu |
setHandle(java.lang.String arg) |
Storefront.Menu |
setItems(java.util.List<Storefront.MenuItem> arg) |
Storefront.Menu |
setItemsCount(java.lang.Integer arg) |
Storefront.Menu |
setTitle(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Menu()
public Menu(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic java.lang.String getHandle()
public Storefront.Menu setHandle(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic java.util.List<Storefront.MenuItem> getItems()
public Storefront.Menu setItems(java.util.List<Storefront.MenuItem> arg)
public java.lang.Integer getItemsCount()
public Storefront.Menu setItemsCount(java.lang.Integer arg)
public java.lang.String getTitle()
public Storefront.Menu setTitle(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Menu>