Interface CartSetKeyAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartSetKeyAction extends CartUpdateAction
CartSetKeyAction
Example to create an instance using the builder pattern

     CartSetKeyAction cartSetKeyAction = CartSetKeyAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getKey

      String getKey()

      Value to set. If empty, any existing key will be removed.

      Returns:
      key
    • setKey

      void setKey(String key)

      Value to set. If empty, any existing key will be removed.

      Parameters:
      key - value to be set
    • of

      static CartSetKeyAction of()
      factory method
      Returns:
      instance of CartSetKeyAction
    • of

      static CartSetKeyAction of(CartSetKeyAction template)
      factory method to create a shallow copy CartSetKeyAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CartSetKeyAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartSetKeyActionBuilder builder()
      builder factory method for CartSetKeyAction
      Returns:
      builder
    • builder

      static CartSetKeyActionBuilder builder(CartSetKeyAction template)
      create builder for CartSetKeyAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartSetKeyAction

      default <T> T withCartSetKeyAction(Function<CartSetKeyAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • ofUnset

      static CartSetKeyAction ofUnset()
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CartSetKeyAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference