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 BusinessUnitUpdateBuilderbuilder()builder factory method for BusinessUnitUpdatestatic BusinessUnitUpdateBuilderbuilder(BusinessUnitUpdate template) create builder for BusinessUnitUpdate instancecopyDeep()static BusinessUnitUpdatedeepCopy(BusinessUnitUpdate template) factory method to create a deep copy of BusinessUnitUpdate@NotNull @Valid List<BusinessUnitUpdateAction>Update actions to be performed on the BusinessUnit.@NotNull LongExpected version of the BusinessUnit on which the changes should be applied.static BusinessUnitUpdateof()factory methodstatic BusinessUnitUpdateof(BusinessUnitUpdate template) factory method to create a shallow copy BusinessUnitUpdatevoidsetActions(BusinessUnitUpdateAction... actions) Update actions to be performed on the BusinessUnit.voidsetActions(List<BusinessUnitUpdateAction> actions) Update actions to be performed on the BusinessUnit.voidsetVersion(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> TwithBusinessUnitUpdate(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:
getVersionin interfaceResourceUpdate<BusinessUnitUpdate,BusinessUnitUpdateAction, BusinessUnitUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the BusinessUnit.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
BusinessUnitUpdate copyDeep() -
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
-