Interface CategorySetExternalIdAction
- All Superinterfaces:
CategoryUpdateAction
,ResourceUpdateAction<CategoryUpdateAction>
This update action sets a new ID that can be used as an additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).
Example to create an instance using the builder pattern
CategorySetExternalIdAction categorySetExternalIdAction = CategorySetExternalIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategorySetExternalIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategorySetExternalIdActionbuilder
(CategorySetExternalIdAction template) create builder for CategorySetExternalIdAction instancestatic CategorySetExternalIdAction
deepCopy
(CategorySetExternalIdAction template) factory method to create a deep copy of CategorySetExternalIdActionValue to set.static CategorySetExternalIdAction
of()
factory methodstatic CategorySetExternalIdAction
of
(CategorySetExternalIdAction template) factory method to create a shallow copy CategorySetExternalIdActionvoid
setExternalId
(String externalId) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CategorySetExternalIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_EXTERNAL_ID
discriminator value for CategorySetExternalIdAction- See Also:
-
-
Method Details
-
getExternalId
String getExternalId()Value to set. If empty, any existing value will be removed.
- Returns:
- externalId
-
setExternalId
Value to set. If empty, any existing value will be removed.
- Parameters:
externalId
- value to be set
-
of
factory method- Returns:
- instance of CategorySetExternalIdAction
-
of
factory method to create a shallow copy CategorySetExternalIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CategorySetExternalIdAction deepCopy(@Nullable CategorySetExternalIdAction template) factory method to create a deep copy of CategorySetExternalIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetExternalIdAction- Returns:
- builder
-
builder
create builder for CategorySetExternalIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetExternalIdAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-