Interface ProductSelectionSetting


public interface ProductSelectionSetting
ProductSelectionSetting
Example to create an instance using the builder pattern

     ProductSelectionSetting productSelectionSetting = ProductSelectionSetting.builder()
             .productSelection(productSelectionBuilder -> productSelectionBuilder)
             .active(true)
             .build()
 
  • Method Details

    • getProductSelection

      @NotNull @Valid @NotNull @Valid ProductSelectionReference getProductSelection()

      Reference to a ProductSelection.

      Returns:
      productSelection
    • getActive

      @NotNull @NotNull Boolean getActive()

      If true, all Products assigned to this Product Selection are part of the Store's assortment.

      Returns:
      active
    • setProductSelection

      void setProductSelection(ProductSelectionReference productSelection)

      Reference to a ProductSelection.

      Parameters:
      productSelection - value to be set
    • setActive

      void setActive(Boolean active)

      If true, all Products assigned to this Product Selection are part of the Store's assortment.

      Parameters:
      active - value to be set
    • of

      factory method
      Returns:
      instance of ProductSelectionSetting
    • of

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

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

      builder factory method for ProductSelectionSetting
      Returns:
      builder
    • builder

      create builder for ProductSelectionSetting instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductSelectionSetting

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