Interface ProductSelectionSettingDraft

All Superinterfaces:
Draft<ProductSelectionSettingDraft>

public interface ProductSelectionSettingDraft extends Draft<ProductSelectionSettingDraft>
ProductSelectionSettingDraft
Example to create an instance using the builder pattern

     ProductSelectionSettingDraft productSelectionSettingDraft = ProductSelectionSettingDraft.builder()
             .productSelection(productSelectionBuilder -> productSelectionBuilder)
             .build()
 
  • Method Details

    • getProductSelection

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

      Resource Identifier of a ProductSelection.

      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)

      Resource Identifier of a ProductSelection.

      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 ProductSelectionSettingDraft
    • of

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

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

      builder factory method for ProductSelectionSettingDraft
      Returns:
      builder
    • builder

      create builder for ProductSelectionSettingDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductSelectionSettingDraft

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