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 CategoryUpdateBuilder
builder()
builder factory method for CategoryUpdatestatic CategoryUpdateBuilder
builder
(CategoryUpdate template) create builder for CategoryUpdate instancestatic CategoryUpdate
deepCopy
(CategoryUpdate template) factory method to create a deep copy of CategoryUpdate@NotNull @Valid List<CategoryUpdateAction>
Update actions to be performed on the Category.@NotNull Long
Expected version of the Category on which the changes should be applied.static CategoryUpdate
of()
factory methodstatic CategoryUpdate
of
(CategoryUpdate template) factory method to create a shallow copy CategoryUpdatevoid
setActions
(CategoryUpdateAction... actions) Update actions to be performed on the Category.void
setActions
(List<CategoryUpdateAction> actions) Update actions to be performed on the Category.void
setVersion
(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> T
withCategoryUpdate
(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:
getVersion
in interfaceResourceUpdate<CategoryUpdate,
CategoryUpdateAction, CategoryUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Category.
- Specified by:
getActions
in 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:
setVersion
in 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:
setActions
in 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
-
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
-