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 MyBusinessUnitUpdateBuilder
builder()
builder factory method for MyBusinessUnitUpdatestatic MyBusinessUnitUpdateBuilder
builder
(MyBusinessUnitUpdate template) create builder for MyBusinessUnitUpdate instancestatic MyBusinessUnitUpdate
deepCopy
(MyBusinessUnitUpdate template) factory method to create a deep copy of MyBusinessUnitUpdate@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 MyBusinessUnitUpdate
of()
factory methodstatic MyBusinessUnitUpdate
of
(MyBusinessUnitUpdate template) factory method to create a shallow copy MyBusinessUnitUpdatevoid
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<MyBusinessUnitUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyBusinessUnitUpdate
(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
-
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
-