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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartRemoveCustomLineItemAction with checking for non-null required valuesbuilds CartRemoveCustomLineItemAction 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.of()
factory method for an instance of CartRemoveCustomLineItemActionBuilderof
(CartRemoveCustomLineItemAction template) create builder for CartRemoveCustomLineItemAction instance
-
Constructor Details
-
CartRemoveCustomLineItemActionBuilder
public CartRemoveCustomLineItemActionBuilder()
-
-
Method Details
-
customLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- 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
-
build
builds CartRemoveCustomLineItemAction with checking for non-null required values- Specified by:
build
in 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
-