Package com.commercetools.api.models.me
Interface MyShoppingListUpdate
- All Superinterfaces:
ResourceUpdate<MyShoppingListUpdate,
MyShoppingListUpdateAction, MyShoppingListUpdateBuilder>
public interface MyShoppingListUpdate
extends ResourceUpdate<MyShoppingListUpdate,MyShoppingListUpdateAction,MyShoppingListUpdateBuilder>
MyShoppingListUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListUpdate myShoppingListUpdate = MyShoppingListUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyShoppingListUpdateBuilder
builder()
builder factory method for MyShoppingListUpdatestatic MyShoppingListUpdateBuilder
builder
(MyShoppingListUpdate template) create builder for MyShoppingListUpdate instancestatic MyShoppingListUpdate
deepCopy
(MyShoppingListUpdate template) factory method to create a deep copy of MyShoppingListUpdate@NotNull @Valid List<MyShoppingListUpdateAction>
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 MyShoppingListUpdate
of()
factory methodstatic MyShoppingListUpdate
of
(MyShoppingListUpdate template) factory method to create a shallow copy MyShoppingListUpdatevoid
setActions
(MyShoppingListUpdateAction... actions) List of update actions to be performed on the ShoppingList.void
setActions
(List<MyShoppingListUpdateAction> 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<MyShoppingListUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyShoppingListUpdate
(Function<MyShoppingListUpdate, 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<MyShoppingListUpdate,
MyShoppingListUpdateAction, MyShoppingListUpdateBuilder> - Returns:
- version
-
getActions
List of update actions to be performed on the ShoppingList.
- Specified by:
getActions
in interfaceResourceUpdate<MyShoppingListUpdate,
MyShoppingListUpdateAction, MyShoppingListUpdateBuilder> - 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<MyShoppingListUpdate,
MyShoppingListUpdateAction, MyShoppingListUpdateBuilder> - 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<MyShoppingListUpdate,
MyShoppingListUpdateAction, MyShoppingListUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of MyShoppingListUpdate
-
of
factory method to create a shallow copy MyShoppingListUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyShoppingListUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListUpdate- Returns:
- builder
-
builder
create builder for MyShoppingListUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListUpdate
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
-