public static class Storefront.Metafield extends <any> implements Storefront.Node
| Constructor and Description |
|---|
Metafield() |
Metafield(ID id) |
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()
Globally unique identifier.
|
java.lang.String |
getKey()
The key name for a metafield.
|
java.lang.String |
getNamespace()
The namespace for a metafield.
|
Storefront.MetafieldParentResource |
getParentResource()
The parent object that the metafield belongs to.
|
DateTime |
getUpdatedAt()
The date and time when the storefront metafield was updated.
|
java.lang.String |
getValue()
The value of a metafield.
|
Storefront.MetafieldValueType |
getValueType()
Represents the metafield value type.
|
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 |
setUpdatedAt(DateTime arg) |
Storefront.Metafield |
setValue(java.lang.String arg) |
Storefront.Metafield |
setValueType(Storefront.MetafieldValueType arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public Metafield()
public Metafield(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic Metafield(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.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.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 DateTime getUpdatedAt()
public Storefront.Metafield setUpdatedAt(DateTime arg)
public java.lang.String getValue()
public Storefront.Metafield setValue(java.lang.String arg)
public Storefront.MetafieldValueType getValueType()
public Storefront.Metafield setValueType(Storefront.MetafieldValueType arg)
public boolean unwrapsToObject(java.lang.String key)