Interface DiscountCodeSetNameAction

All Superinterfaces:
DiscountCodeUpdateAction, ResourceUpdateAction<DiscountCodeUpdateAction>

public interface DiscountCodeSetNameAction extends DiscountCodeUpdateAction
DiscountCodeSetNameAction
Example to create an instance using the builder pattern

     DiscountCodeSetNameAction discountCodeSetNameAction = DiscountCodeSetNameAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getName

      @Valid @Valid LocalizedString getName()

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

      Returns:
      name
    • setName

      void setName(LocalizedString name)

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

      Parameters:
      name - value to be set
    • of

      factory method
      Returns:
      instance of DiscountCodeSetNameAction
    • of

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

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

      builder factory method for DiscountCodeSetNameAction
      Returns:
      builder
    • builder

      create builder for DiscountCodeSetNameAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountCodeSetNameAction

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

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