Interface ProductChangeNameAction

All Superinterfaces:
ProductUpdateAction, ResourceUpdateAction<ProductUpdateAction>

public interface ProductChangeNameAction extends ProductUpdateAction
ProductChangeNameAction
Example to create an instance using the builder pattern

     ProductChangeNameAction productChangeNameAction = ProductChangeNameAction.builder()
             .name(nameBuilder -> nameBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getName

      @NotNull @Valid @NotNull @Valid LocalizedString getName()

      Value to set. Must not be empty.

      Returns:
      name
    • getStaged

      Boolean getStaged()

      If true, only the staged name is updated. If false, both the current and staged name are updated.

      Returns:
      staged
    • setName

      void setName(LocalizedString name)

      Value to set. Must not be empty.

      Parameters:
      name - value to be set
    • setStaged

      void setStaged(Boolean staged)

      If true, only the staged name is updated. If false, both the current and staged name are updated.

      Parameters:
      staged - value to be set
    • of

      factory method
      Returns:
      instance of ProductChangeNameAction
    • of

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

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

      builder factory method for ProductChangeNameAction
      Returns:
      builder
    • builder

      create builder for ProductChangeNameAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductChangeNameAction

      default <T> T withProductChangeNameAction(Function<ProductChangeNameAction,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<ProductChangeNameAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference