Interface CategoryUpdate
- All Superinterfaces:
ResourceUpdate<CategoryUpdate,CategoryUpdateAction, CategoryUpdateBuilder>
public interface CategoryUpdate
extends ResourceUpdate<CategoryUpdate,CategoryUpdateAction,CategoryUpdateBuilder>
CategoryUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryUpdate categoryUpdate = CategoryUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryUpdateBuilderbuilder()builder factory method for CategoryUpdatestatic CategoryUpdateBuilderbuilder(CategoryUpdate template) create builder for CategoryUpdate instancecopyDeep()static CategoryUpdatedeepCopy(CategoryUpdate template) factory method to create a deep copy of CategoryUpdate@NotNull @Valid List<CategoryUpdateAction>Update actions to be performed on the Category.@NotNull LongExpected version of the Category on which the changes should be applied.static CategoryUpdateof()factory methodstatic CategoryUpdateof(CategoryUpdate template) factory method to create a shallow copy CategoryUpdatevoidsetActions(CategoryUpdateAction... actions) Update actions to be performed on the Category.voidsetActions(List<CategoryUpdateAction> actions) Update actions to be performed on the Category.voidsetVersion(Long version) Expected version of the Category on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<CategoryUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCategoryUpdate(Function<CategoryUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the Category on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
getVersionin interfaceResourceUpdate<CategoryUpdate,CategoryUpdateAction, CategoryUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Category.
- Specified by:
getActionsin interfaceResourceUpdate<CategoryUpdate,CategoryUpdateAction, CategoryUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the Category on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
setVersionin interfaceResourceUpdate<CategoryUpdate,CategoryUpdateAction, CategoryUpdateBuilder> - Parameters:
version- value to be set
-
setActions
Update actions to be performed on the Category.
- Parameters:
actions- values to be set
-
setActions
Update actions to be performed on the Category.
- Specified by:
setActionsin interfaceResourceUpdate<CategoryUpdate,CategoryUpdateAction, CategoryUpdateBuilder> - Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of CategoryUpdate
-
of
factory method to create a shallow copy CategoryUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategoryUpdate copyDeep() -
deepCopy
factory method to create a deep copy of CategoryUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryUpdate- Returns:
- builder
-
builder
create builder for CategoryUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryUpdate
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
-