public static class Storefront.ProductOptionValue extends AbstractResponse<Storefront.ProductOptionValue> implements Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
ProductOptionValue() |
ProductOptionValue(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique ID.
|
java.lang.String |
getName()
The name of the product option value.
|
Storefront.ProductOptionValueSwatch |
getSwatch()
The swatch of the product option value.
|
Storefront.ProductOptionValue |
setName(java.lang.String arg) |
Storefront.ProductOptionValue |
setSwatch(Storefront.ProductOptionValueSwatch arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic ProductOptionValue()
public ProductOptionValue(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic java.lang.String getName()
public Storefront.ProductOptionValue setName(java.lang.String arg)
public Storefront.ProductOptionValueSwatch getSwatch()
public Storefront.ProductOptionValue setSwatch(Storefront.ProductOptionValueSwatch arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.ProductOptionValue>