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