Interface StoreChangeProductSelectionAction

All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>, StoreUpdateAction

public interface StoreChangeProductSelectionAction extends StoreUpdateAction

ProductSelection in a Store can be activated or deactivated using this update action.


Example to create an instance using the builder pattern

     StoreChangeProductSelectionAction storeChangeProductSelectionAction = StoreChangeProductSelectionAction.builder()
             .productSelection(productSelectionBuilder -> productSelectionBuilder)
             .build()
 
  • Field Details

    • CHANGE_PRODUCT_SELECTION_ACTIVE

      static final String CHANGE_PRODUCT_SELECTION_ACTIVE
      discriminator value for StoreChangeProductSelectionAction
      See Also:
  • Method Details

    • getProductSelection

      @NotNull @Valid @NotNull @Valid ProductSelectionResourceIdentifier getProductSelection()

      Current Product Selection of the Store to be activated or deactivated.

      Returns:
      productSelection
    • getActive

      Boolean getActive()

      Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

      Returns:
      active
    • setProductSelection

      void setProductSelection(ProductSelectionResourceIdentifier productSelection)

      Current Product Selection of the Store to be activated or deactivated.

      Parameters:
      productSelection - value to be set
    • setActive

      void setActive(Boolean active)

      Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

      Parameters:
      active - value to be set
    • of

      factory method
      Returns:
      instance of StoreChangeProductSelectionAction
    • of

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

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

      builder factory method for StoreChangeProductSelectionAction
      Returns:
      builder
    • builder

      create builder for StoreChangeProductSelectionAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreChangeProductSelectionAction

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