Package com.commercetools.api.models.me
Class MyBusinessUnitUpdateBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitUpdateBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitUpdate>
MyBusinessUnitUpdateBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(BusinessUnitUpdateAction... actions) Update actions to be performed on the BusinessUnit.actions
(List<BusinessUnitUpdateAction> actions) Update actions to be performed on the BusinessUnit.build()
builds MyBusinessUnitUpdate with checking for non-null required valuesbuilds MyBusinessUnitUpdate without checking for non-null required valuesUpdate actions to be performed on the BusinessUnit.Expected version of the BusinessUnit on which the changes should be applied.static MyBusinessUnitUpdateBuilder
of()
factory method for an instance of MyBusinessUnitUpdateBuilderstatic MyBusinessUnitUpdateBuilder
of
(MyBusinessUnitUpdate template) create builder for MyBusinessUnitUpdate instanceplusActions
(BusinessUnitUpdateAction... actions) Update actions to be performed on the BusinessUnit.plusActions
(Function<BusinessUnitUpdateActionBuilder, Builder<? extends BusinessUnitUpdateAction>> builder) Update actions to be performed on the BusinessUnit.Expected version of the BusinessUnit on which the changes should be applied.withActions
(Function<BusinessUnitUpdateActionBuilder, Builder<? extends BusinessUnitUpdateAction>> builder) Update actions to be performed on the BusinessUnit.
-
Constructor Details
-
MyBusinessUnitUpdateBuilder
public MyBusinessUnitUpdateBuilder()
-
-
Method Details
-
version
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- Returns:
- Builder
-
actions
Update actions to be performed on the BusinessUnit.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the BusinessUnit.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the BusinessUnit.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public MyBusinessUnitUpdateBuilder plusActions(Function<BusinessUnitUpdateActionBuilder, Builder<? extends BusinessUnitUpdateAction>> builder) Update actions to be performed on the BusinessUnit.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public MyBusinessUnitUpdateBuilder withActions(Function<BusinessUnitUpdateActionBuilder, Builder<? extends BusinessUnitUpdateAction>> builder) Update actions to be performed on the BusinessUnit.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
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
-
build
builds MyBusinessUnitUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitUpdate>
- Returns:
- MyBusinessUnitUpdate
-
buildUnchecked
builds MyBusinessUnitUpdate without checking for non-null required values- Returns:
- MyBusinessUnitUpdate
-
of
factory method for an instance of MyBusinessUnitUpdateBuilder- Returns:
- builder
-
of
create builder for MyBusinessUnitUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-