Class StagedOrderChangeCustomLineItemMoneyActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderChangeCustomLineItemMoneyActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderChangeCustomLineItemMoneyAction>
public class StagedOrderChangeCustomLineItemMoneyActionBuilder
extends Object
implements Builder<StagedOrderChangeCustomLineItemMoneyAction>
StagedOrderChangeCustomLineItemMoneyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderChangeCustomLineItemMoneyAction stagedOrderChangeCustomLineItemMoneyAction = StagedOrderChangeCustomLineItemMoneyAction.builder()
.money(moneyBuilder -> moneyBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderChangeCustomLineItemMoneyAction with checking for non-null required valuesbuilds StagedOrderChangeCustomLineItemMoneyAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.id
of the CustomLineItem to update.key
of the CustomLineItem to update.getMoney()
Value to set.Value to set.money
(Function<MoneyBuilder, MoneyBuilder> builder) Value to set.of()
factory method for an instance of StagedOrderChangeCustomLineItemMoneyActionBuilderof
(StagedOrderChangeCustomLineItemMoneyAction template) create builder for StagedOrderChangeCustomLineItemMoneyAction instancewithMoney
(Function<MoneyBuilder, Money> builder) Value to set.
-
Constructor Details
-
StagedOrderChangeCustomLineItemMoneyActionBuilder
public StagedOrderChangeCustomLineItemMoneyActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderChangeCustomLineItemMoneyActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderChangeCustomLineItemMoneyActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
money
public StagedOrderChangeCustomLineItemMoneyActionBuilder money(Function<MoneyBuilder, MoneyBuilder> builder) Value to set. Must not be empty. Can be a negative amount.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
withMoney
public StagedOrderChangeCustomLineItemMoneyActionBuilder withMoney(Function<MoneyBuilder, Money> builder) Value to set. Must not be empty. Can be a negative amount.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
money
Value to set. Must not be empty. Can be a negative amount.
- Parameters:
money
- value to be set- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getMoney
Value to set. Must not be empty. Can be a negative amount.
- Returns:
- money
-
build
builds StagedOrderChangeCustomLineItemMoneyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderChangeCustomLineItemMoneyAction>
- Returns:
- StagedOrderChangeCustomLineItemMoneyAction
-
buildUnchecked
builds StagedOrderChangeCustomLineItemMoneyAction without checking for non-null required values- Returns:
- StagedOrderChangeCustomLineItemMoneyAction
-
of
factory method for an instance of StagedOrderChangeCustomLineItemMoneyActionBuilder- Returns:
- builder
-
of
public static StagedOrderChangeCustomLineItemMoneyActionBuilder of(StagedOrderChangeCustomLineItemMoneyAction template) create builder for StagedOrderChangeCustomLineItemMoneyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-