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