Interface StoreSetProductSelectionsAction

All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>, StoreUpdateAction

public interface StoreSetProductSelectionsAction extends StoreUpdateAction

Instead of adding or removing Product Selections individually, you can also change all the Store's Product Selections in one go using this update action. The Store will only contain the Product Selections specified in the request.


Example to create an instance using the builder pattern

     StoreSetProductSelectionsAction storeSetProductSelectionsAction = StoreSetProductSelectionsAction.builder()
             .build()
 
  • Field Details

    • SET_PRODUCT_SELECTIONS

      static final String SET_PRODUCT_SELECTIONS
      discriminator value for StoreSetProductSelectionsAction
      See Also:
  • Method Details

    • getProductSelections

      @Valid @Valid List<ProductSelectionSettingDraft> getProductSelections()

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Returns:
      productSelections
    • setProductSelections

      void setProductSelections(ProductSelectionSettingDraft... productSelections)

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      productSelections - values to be set
    • setProductSelections

      void setProductSelections(List<ProductSelectionSettingDraft> productSelections)

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      productSelections - values to be set
    • of

      factory method
      Returns:
      instance of StoreSetProductSelectionsAction
    • of

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

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

      builder factory method for StoreSetProductSelectionsAction
      Returns:
      builder
    • builder

      create builder for StoreSetProductSelectionsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreSetProductSelectionsAction

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