Class StagedOrderChangeCustomLineItemQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderChangeCustomLineItemQuantityActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderChangeCustomLineItemQuantityAction>
public class StagedOrderChangeCustomLineItemQuantityActionBuilder
extends Object
implements Builder<StagedOrderChangeCustomLineItemQuantityAction>
StagedOrderChangeCustomLineItemQuantityActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderChangeCustomLineItemQuantityAction stagedOrderChangeCustomLineItemQuantityAction = StagedOrderChangeCustomLineItemQuantityAction.builder()
.quantity(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderChangeCustomLineItemQuantityAction with checking for non-null required valuesbuilds StagedOrderChangeCustomLineItemQuantityAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.idof the CustomLineItem to update.keyof the CustomLineItem to update.New value to set.of()factory method for an instance of StagedOrderChangeCustomLineItemQuantityActionBuildercreate builder for StagedOrderChangeCustomLineItemQuantityAction instanceNew value to set.
-
Constructor Details
-
StagedOrderChangeCustomLineItemQuantityActionBuilder
public StagedOrderChangeCustomLineItemQuantityActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderChangeCustomLineItemQuantityActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderChangeCustomLineItemQuantityActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set- Returns:
- Builder
-
quantity
New value to set. If
0, the Custom Line Item is removed from the Order.- Parameters:
quantity- value to be set- Returns:
- Builder
-
getCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getQuantity
New value to set. If
0, the Custom Line Item is removed from the Order.- Returns:
- quantity
-
build
builds StagedOrderChangeCustomLineItemQuantityAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderChangeCustomLineItemQuantityAction>- Returns:
- StagedOrderChangeCustomLineItemQuantityAction
-
buildUnchecked
builds StagedOrderChangeCustomLineItemQuantityAction without checking for non-null required values- Returns:
- StagedOrderChangeCustomLineItemQuantityAction
-
of
factory method for an instance of StagedOrderChangeCustomLineItemQuantityActionBuilder- Returns:
- builder
-
of
public static StagedOrderChangeCustomLineItemQuantityActionBuilder of(StagedOrderChangeCustomLineItemQuantityAction template) create builder for StagedOrderChangeCustomLineItemQuantityAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-