Interface ShoppingListUpdate
- All Superinterfaces:
ResourceUpdate<ShoppingListUpdate,
ShoppingListUpdateAction, ShoppingListUpdateBuilder>
public interface ShoppingListUpdate
extends ResourceUpdate<ShoppingListUpdate,ShoppingListUpdateAction,ShoppingListUpdateBuilder>
ShoppingListUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListUpdate shoppingListUpdate = ShoppingListUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShoppingListUpdateBuilder
builder()
builder factory method for ShoppingListUpdatestatic ShoppingListUpdateBuilder
builder
(ShoppingListUpdate template) create builder for ShoppingListUpdate instancestatic ShoppingListUpdate
deepCopy
(ShoppingListUpdate template) factory method to create a deep copy of ShoppingListUpdate@NotNull @Valid List<ShoppingListUpdateAction>
List of update actions to be performed on the ShoppingList.@NotNull Long
Expected version of the ShoppingList on which the changes should be applied.static ShoppingListUpdate
of()
factory methodstatic ShoppingListUpdate
of
(ShoppingListUpdate template) factory method to create a shallow copy ShoppingListUpdatevoid
setActions
(ShoppingListUpdateAction... actions) List of update actions to be performed on the ShoppingList.void
setActions
(List<ShoppingListUpdateAction> actions) List of update actions to be performed on the ShoppingList.void
setVersion
(Long version) Expected version of the ShoppingList on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShoppingListUpdate
(Function<ShoppingListUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the ShoppingList 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<ShoppingListUpdate,
ShoppingListUpdateAction, ShoppingListUpdateBuilder> - Returns:
- version
-
getActions
List of update actions to be performed on the ShoppingList.
- Specified by:
getActions
in interfaceResourceUpdate<ShoppingListUpdate,
ShoppingListUpdateAction, ShoppingListUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the ShoppingList 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<ShoppingListUpdate,
ShoppingListUpdateAction, ShoppingListUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
List of update actions to be performed on the ShoppingList.
- Parameters:
actions
- values to be set
-
setActions
List of update actions to be performed on the ShoppingList.
- Specified by:
setActions
in interfaceResourceUpdate<ShoppingListUpdate,
ShoppingListUpdateAction, ShoppingListUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of ShoppingListUpdate
-
of
factory method to create a shallow copy ShoppingListUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ShoppingListUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListUpdate- Returns:
- builder
-
builder
create builder for ShoppingListUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListUpdate
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
-