public static class Storefront.UrlRedirect extends AbstractResponse<Storefront.UrlRedirect> implements Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
UrlRedirect() |
UrlRedirect(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
The ID of the URL redirect.
|
java.lang.String |
getPath()
The old path to be redirected from.
|
java.lang.String |
getTarget()
The target location where the user will be redirected to.
|
Storefront.UrlRedirect |
setPath(java.lang.String arg) |
Storefront.UrlRedirect |
setTarget(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic UrlRedirect()
public UrlRedirect(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 getPath()
public Storefront.UrlRedirect setPath(java.lang.String arg)
public java.lang.String getTarget()
public Storefront.UrlRedirect setTarget(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.UrlRedirect>