public static class Storefront.Metafield extends AbstractResponse<Storefront.Metafield> implements Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
Metafield() |
Metafield(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
DateTime |
getCreatedAt()
The date and time when the storefront metafield was created.
|
java.lang.String |
getDescription()
The description of a metafield.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique ID.
|
java.lang.String |
getKey()
The unique identifier for the metafield within its namespace.
|
java.lang.String |
getNamespace()
The container for a group of metafields that the metafield is associated with.
|
Storefront.MetafieldParentResource |
getParentResource()
The type of resource that the metafield is attached to.
|
Storefront.MetafieldReference |
getReference()
Returns a reference object if the metafield's type is a resource reference.
|
Storefront.MetafieldReferenceConnection |
getReferences()
A list of reference objects if the metafield's type is a resource reference list.
|
java.lang.String |
getType()
The type name of the metafield.
|
DateTime |
getUpdatedAt()
The date and time when the metafield was last updated.
|
java.lang.String |
getValue()
The data stored in the metafield.
|
Storefront.Metafield |
setCreatedAt(DateTime arg) |
Storefront.Metafield |
setDescription(java.lang.String arg) |
Storefront.Metafield |
setKey(java.lang.String arg) |
Storefront.Metafield |
setNamespace(java.lang.String arg) |
Storefront.Metafield |
setParentResource(Storefront.MetafieldParentResource arg) |
Storefront.Metafield |
setReference(Storefront.MetafieldReference arg) |
Storefront.Metafield |
setReferences(Storefront.MetafieldReferenceConnection arg) |
Storefront.Metafield |
setType(java.lang.String arg) |
Storefront.Metafield |
setUpdatedAt(DateTime arg) |
Storefront.Metafield |
setValue(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Metafield()
public Metafield(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic DateTime getCreatedAt()
public Storefront.Metafield setCreatedAt(DateTime arg)
public java.lang.String getDescription()
public Storefront.Metafield setDescription(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic java.lang.String getKey()
public Storefront.Metafield setKey(java.lang.String arg)
public java.lang.String getNamespace()
public Storefront.Metafield setNamespace(java.lang.String arg)
public Storefront.MetafieldParentResource getParentResource()
public Storefront.Metafield setParentResource(Storefront.MetafieldParentResource arg)
public Storefront.MetafieldReference getReference()
public Storefront.Metafield setReference(Storefront.MetafieldReference arg)
public Storefront.MetafieldReferenceConnection getReferences()
public Storefront.Metafield setReferences(Storefront.MetafieldReferenceConnection arg)
public java.lang.String getType()
public Storefront.Metafield setType(java.lang.String arg)
public DateTime getUpdatedAt()
public Storefront.Metafield setUpdatedAt(DateTime arg)
public java.lang.String getValue()
public Storefront.Metafield setValue(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Metafield>