public class EntityUrl extends AbstractResponse<EntityUrl>
optimisticData, responseData| Constructor and Description |
|---|
EntityUrl() |
EntityUrl(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalUrl()
Deprecated.
The canonical_url field is deprecated, use relative_url instead.
|
ID |
getEntityUid()
The unique ID for a `ProductInterface`, `CategoryInterface`, `CmsPage`, etc.
|
String |
getGraphQlTypeName() |
Integer |
getId()
Deprecated.
Use `entity_uid` instead.
|
Integer |
getRedirectCode()
301 or 302 HTTP code for url permanent or temporary redirect or 0 for the 200 no redirect
|
String |
getRelativeUrl()
The internal relative URL.
|
UrlRewriteEntityTypeEnum |
getType()
One of PRODUCT, CATEGORY, or CMS_PAGE.
|
EntityUrl |
setCanonicalUrl(String arg) |
EntityUrl |
setEntityUid(ID arg) |
EntityUrl |
setId(Integer arg) |
EntityUrl |
setRedirectCode(Integer arg) |
EntityUrl |
setRelativeUrl(String arg) |
EntityUrl |
setType(UrlRewriteEntityTypeEnum arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic EntityUrl()
public EntityUrl(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
@Deprecated public String getCanonicalUrl()
public ID getEntityUid()
@Deprecated public Integer getId()
public Integer getRedirectCode()
public String getRelativeUrl()
public UrlRewriteEntityTypeEnum getType()
public EntityUrl setType(UrlRewriteEntityTypeEnum arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<EntityUrl>Copyright © 2022 Adobe. All rights reserved.