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

     CartRemoveCustomLineItemAction cartRemoveCustomLineItemAction = CartRemoveCustomLineItemAction.builder()
             .build()
 
  • Constructor Details

    • CartRemoveCustomLineItemActionBuilder

      public CartRemoveCustomLineItemActionBuilder()
  • Method Details

    • customLineItemId

      public CartRemoveCustomLineItemActionBuilder customLineItemId(@Nullable String customLineItemId)

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Parameters:
      customLineItemId - value to be set
      Returns:
      Builder
    • customLineItemKey

      public CartRemoveCustomLineItemActionBuilder customLineItemKey(@Nullable String customLineItemKey)

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Parameters:
      customLineItemKey - value to be set
      Returns:
      Builder
    • getCustomLineItemId

      @Nullable public String getCustomLineItemId()

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemId
    • getCustomLineItemKey

      @Nullable public String getCustomLineItemKey()

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemKey
    • build

      builds CartRemoveCustomLineItemAction with checking for non-null required values
      Specified by:
      build in interface Builder<CartRemoveCustomLineItemAction>
      Returns:
      CartRemoveCustomLineItemAction
    • buildUnchecked

      public 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