Class StagedOrderSetLineItemPriceActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetLineItemPriceActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetLineItemPriceAction>
public class StagedOrderSetLineItemPriceActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderSetLineItemPriceAction>
StagedOrderSetLineItemPriceActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemPriceAction stagedOrderSetLineItemPriceAction = StagedOrderSetLineItemPriceAction.builder()
.lineItemId("{lineItemId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetLineItemPriceAction with checking for non-null required valuesbuilds StagedOrderSetLineItemPriceAction without checking for non-null required valuesexternalPrice
(Money externalPrice) Draft type that stores amounts only in cent precision for the specified currency.externalPrice
(Function<MoneyBuilder, MoneyBuilder> builder) Draft type that stores amounts only in cent precision for the specified currency.Draft type that stores amounts only in cent precision for the specified currency.value of lineItemId}lineItemId
(String lineItemId) set the value to the lineItemIdof()
factory method for an instance of StagedOrderSetLineItemPriceActionBuilderof
(StagedOrderSetLineItemPriceAction template) create builder for StagedOrderSetLineItemPriceAction instancewithExternalPrice
(Function<MoneyBuilder, Money> builder) Draft type that stores amounts only in cent precision for the specified currency.
-
Constructor Details
-
StagedOrderSetLineItemPriceActionBuilder
-
-
Method Details
-
lineItemId
set the value to the lineItemId- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
externalPrice
public StagedOrderSetLineItemPriceActionBuilder externalPrice(Function<MoneyBuilder, MoneyBuilder> builder) Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
withExternalPrice
public StagedOrderSetLineItemPriceActionBuilder withExternalPrice(Function<MoneyBuilder, Money> builder) Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
externalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
externalPrice
- value to be set- Returns:
- Builder
-
getLineItemId
value of lineItemId}- Returns:
- lineItemId
-
getExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- externalPrice
-
build
builds StagedOrderSetLineItemPriceAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetLineItemPriceAction>
- Returns:
- StagedOrderSetLineItemPriceAction
-
buildUnchecked
builds StagedOrderSetLineItemPriceAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemPriceAction
-
of
factory method for an instance of StagedOrderSetLineItemPriceActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemPriceActionBuilder of(StagedOrderSetLineItemPriceAction template) create builder for StagedOrderSetLineItemPriceAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-