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 MyShoppingListUpdateBuilderbuilder()builder factory method for MyShoppingListUpdatestatic MyShoppingListUpdateBuilderbuilder(MyShoppingListUpdate template) create builder for MyShoppingListUpdate instancecopyDeep()static MyShoppingListUpdatedeepCopy(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 LongExpected version of the ShoppingList on which the changes should be applied.static MyShoppingListUpdateof()factory methodstatic MyShoppingListUpdateof(MyShoppingListUpdate template) factory method to create a shallow copy MyShoppingListUpdatevoidsetActions(MyShoppingListUpdateAction... actions) List of update actions to be performed on the ShoppingList.voidsetActions(List<MyShoppingListUpdateAction> 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<MyShoppingListUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyShoppingListUpdate(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:
getVersionin interfaceResourceUpdate<MyShoppingListUpdate,MyShoppingListUpdateAction, MyShoppingListUpdateBuilder> - Returns:
- version
-
getActions
List of update actions to be performed on the ShoppingList.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
MyShoppingListUpdate copyDeep() -
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
-