Interface CustomerUpdate
- All Superinterfaces:
ResourceUpdate<CustomerUpdate,
CustomerUpdateAction, CustomerUpdateBuilder>
public interface CustomerUpdate
extends ResourceUpdate<CustomerUpdate,CustomerUpdateAction,CustomerUpdateBuilder>
CustomerUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerUpdate customerUpdate = CustomerUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerUpdateBuilder
builder()
builder factory method for CustomerUpdatestatic CustomerUpdateBuilder
builder
(CustomerUpdate template) create builder for CustomerUpdate instancestatic CustomerUpdate
deepCopy
(CustomerUpdate template) factory method to create a deep copy of CustomerUpdate@NotNull @Valid List<CustomerUpdateAction>
Update actions to be performed on the Customer.@NotNull Long
Expected version of the Customer on which the changes should be applied.static CustomerUpdate
of()
factory methodstatic CustomerUpdate
of
(CustomerUpdate template) factory method to create a shallow copy CustomerUpdatevoid
setActions
(CustomerUpdateAction... actions) Update actions to be performed on the Customer.void
setActions
(List<CustomerUpdateAction> 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<CustomerUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerUpdate
(Function<CustomerUpdate, 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<CustomerUpdate,
CustomerUpdateAction, CustomerUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Customer.
- Specified by:
getActions
in interfaceResourceUpdate<CustomerUpdate,
CustomerUpdateAction, CustomerUpdateBuilder> - 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<CustomerUpdate,
CustomerUpdateAction, CustomerUpdateBuilder> - 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<CustomerUpdate,
CustomerUpdateAction, CustomerUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of CustomerUpdate
-
of
factory method to create a shallow copy CustomerUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerUpdate- Returns:
- builder
-
builder
create builder for CustomerUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerUpdate
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
-