Class StagedOrderRemoveCustomLineItemActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderRemoveCustomLineItemActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderRemoveCustomLineItemAction>
public class StagedOrderRemoveCustomLineItemActionBuilder
extends Object
implements Builder<StagedOrderRemoveCustomLineItemAction>
StagedOrderRemoveCustomLineItemActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderRemoveCustomLineItemAction stagedOrderRemoveCustomLineItemAction = StagedOrderRemoveCustomLineItemAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderRemoveCustomLineItemAction with checking for non-null required valuesbuilds StagedOrderRemoveCustomLineItemAction 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.of()factory method for an instance of StagedOrderRemoveCustomLineItemActionBuilderof(StagedOrderRemoveCustomLineItemAction template) create builder for StagedOrderRemoveCustomLineItemAction instance
-
Constructor Details
-
StagedOrderRemoveCustomLineItemActionBuilder
public StagedOrderRemoveCustomLineItemActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderRemoveCustomLineItemActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderRemoveCustomLineItemActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- 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
-
build
builds StagedOrderRemoveCustomLineItemAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderRemoveCustomLineItemAction>- Returns:
- StagedOrderRemoveCustomLineItemAction
-
buildUnchecked
builds StagedOrderRemoveCustomLineItemAction without checking for non-null required values- Returns:
- StagedOrderRemoveCustomLineItemAction
-
of
factory method for an instance of StagedOrderRemoveCustomLineItemActionBuilder- Returns:
- builder
-
of
public static StagedOrderRemoveCustomLineItemActionBuilder of(StagedOrderRemoveCustomLineItemAction template) create builder for StagedOrderRemoveCustomLineItemAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-