Interface CartDiscountSetKeyAction

All Superinterfaces:
CartDiscountUpdateAction, ResourceUpdateAction<CartDiscountUpdateAction>
All Known Implementing Classes:
CartDiscountSetKeyActionImpl

public interface CartDiscountSetKeyAction extends CartDiscountUpdateAction
CartDiscountSetKeyAction
Example to create an instance using the builder pattern

     CartDiscountSetKeyAction cartDiscountSetKeyAction = CartDiscountSetKeyAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getKey

      String getKey()

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

      Returns:
      key
    • setKey

      void setKey(String key)

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

      Parameters:
      key - value to be set
    • of

      factory method
      Returns:
      instance of CartDiscountSetKeyAction
    • of

      factory method to create a shallow copy CartDiscountSetKeyAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      builder factory method for CartDiscountSetKeyAction
      Returns:
      builder
    • builder

      create builder for CartDiscountSetKeyAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartDiscountSetKeyAction

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

      static CartDiscountSetKeyAction ofUnset()
    • typeReference

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