public static class Storefront.ProductOption extends AbstractResponse<Storefront.ProductOption> implements Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
ProductOption() |
ProductOption(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique ID.
|
java.lang.String |
getName()
The product option’s name.
|
java.util.List<Storefront.ProductOptionValue> |
getOptionValues()
The corresponding option value to the product option.
|
java.util.List<java.lang.String> |
getValues()
Deprecated.
Use `optionValues` instead.
|
Storefront.ProductOption |
setName(java.lang.String arg) |
Storefront.ProductOption |
setOptionValues(java.util.List<Storefront.ProductOptionValue> arg) |
Storefront.ProductOption |
setValues(java.util.List<java.lang.String> arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic ProductOption()
public ProductOption(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.ProductOption setName(java.lang.String arg)
public java.util.List<Storefront.ProductOptionValue> getOptionValues()
public Storefront.ProductOption setOptionValues(java.util.List<Storefront.ProductOptionValue> arg)
public java.util.List<java.lang.String> getValues()
public Storefront.ProductOption setValues(java.util.List<java.lang.String> arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.ProductOption>