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