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