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