Interface CategoryChangeParentAction
- All Superinterfaces:
CategoryUpdateAction,ResourceUpdateAction<CategoryUpdateAction>
This action locks the entire Category tree in the Project for the duration of the request. For details, see Category tree locking.
Example to create an instance using the builder pattern
CategoryChangeParentAction categoryChangeParentAction = CategoryChangeParentAction.builder()
.parent(parentBuilder -> parentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CategoryChangeParentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CategoryChangeParentActionbuilder(CategoryChangeParentAction template) create builder for CategoryChangeParentAction instancecopyDeep()static CategoryChangeParentActiondeepCopy(CategoryChangeParentAction template) factory method to create a deep copy of CategoryChangeParentAction@NotNull @Valid CategoryResourceIdentifierNew value to set as parent.static CategoryChangeParentActionof()factory methodstatic CategoryChangeParentActionof(CategoryChangeParentAction template) factory method to create a shallow copy CategoryChangeParentActionvoidsetParent(CategoryResourceIdentifier parent) New value to set as parent.static tools.jackson.core.type.TypeReference<CategoryChangeParentAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_PARENT
discriminator value for CategoryChangeParentAction- See Also:
-
-
Method Details
-
getParent
New value to set as parent.
- Returns:
- parent
-
setParent
New value to set as parent.
- Parameters:
parent- value to be set
-
of
factory method- Returns:
- instance of CategoryChangeParentAction
-
of
factory method to create a shallow copy CategoryChangeParentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategoryChangeParentAction copyDeep()- Specified by:
copyDeepin interfaceCategoryUpdateAction
-
deepCopy
factory method to create a deep copy of CategoryChangeParentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryChangeParentAction- Returns:
- builder
-
builder
create builder for CategoryChangeParentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryChangeParentAction
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
-