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 ShoppingListUpdateBuilderbuilder()builder factory method for ShoppingListUpdatestatic ShoppingListUpdateBuilderbuilder(ShoppingListUpdate template) create builder for ShoppingListUpdate instancecopyDeep()static ShoppingListUpdatedeepCopy(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 LongExpected version of the ShoppingList on which the changes should be applied.static ShoppingListUpdateof()factory methodstatic ShoppingListUpdateof(ShoppingListUpdate template) factory method to create a shallow copy ShoppingListUpdatevoidsetActions(ShoppingListUpdateAction... actions) List of update actions to be performed on the ShoppingList.voidsetActions(List<ShoppingListUpdateAction> actions) List of update actions to be performed on the ShoppingList.voidsetVersion(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> TwithShoppingListUpdate(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:
getVersionin interfaceResourceUpdate<ShoppingListUpdate,ShoppingListUpdateAction, ShoppingListUpdateBuilder> - Returns:
- version
-
getActions
List of update actions to be performed on the ShoppingList.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
ShoppingListUpdate copyDeep() -
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
-