Package com.commercetools.api.models.me
Interface MyBusinessUnitUpdate
public interface MyBusinessUnitUpdate
MyBusinessUnitUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitUpdate myBusinessUnitUpdate = MyBusinessUnitUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyBusinessUnitUpdateBuilderbuilder()builder factory method for MyBusinessUnitUpdatestatic MyBusinessUnitUpdateBuilderbuilder(MyBusinessUnitUpdate template) create builder for MyBusinessUnitUpdate instancecopyDeep()static MyBusinessUnitUpdatedeepCopy(MyBusinessUnitUpdate template) factory method to create a deep copy of MyBusinessUnitUpdate@NotNull @Valid List<MyBusinessUnitUpdateAction>Update actions to be performed on the BusinessUnit.@NotNull LongExpected version of the BusinessUnit on which the changes should be applied.static MyBusinessUnitUpdateof()factory methodstatic MyBusinessUnitUpdateof(MyBusinessUnitUpdate template) factory method to create a shallow copy MyBusinessUnitUpdatevoidsetActions(MyBusinessUnitUpdateAction... actions) Update actions to be performed on the BusinessUnit.voidsetActions(List<MyBusinessUnitUpdateAction> 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<MyBusinessUnitUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyBusinessUnitUpdate(Function<MyBusinessUnitUpdate, T> helper) accessor map function
-
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.
- Returns:
- version
-
getActions
Update actions to be performed on the BusinessUnit.
- 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.
- 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.
- Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitUpdate
-
of
factory method to create a shallow copy MyBusinessUnitUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyBusinessUnitUpdate copyDeep() -
deepCopy
factory method to create a deep copy of MyBusinessUnitUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitUpdate- Returns:
- builder
-
builder
create builder for MyBusinessUnitUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitUpdate
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
-