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