Interface ProductSelectionDraft

All Superinterfaces:
CustomizableDraft<ProductSelectionDraft>, Draft<ProductSelectionDraft>, WithKey

public interface ProductSelectionDraft extends CustomizableDraft<ProductSelectionDraft>, WithKey, Draft<ProductSelectionDraft>
ProductSelectionDraft
Example to create an instance using the builder pattern

     ProductSelectionDraft productSelectionDraft = ProductSelectionDraft.builder()
             .name(nameBuilder -> nameBuilder)
             .build()
 
  • Method Details

    • getKey

      String getKey()

      User-defined unique identifier for the ProductSelection.

      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getName

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

      Name of the ProductSelection. Not checked for uniqueness, but distinct names are recommended.

      Returns:
      name
    • getCustom

      @Valid @Valid CustomFieldsDraft getCustom()

      Custom Fields of this ProductSelection.

      Specified by:
      getCustom in interface CustomizableDraft<ProductSelectionDraft>
      Returns:
      custom
    • getMode

      Mode of the Product Selection.

      Returns:
      mode
    • setKey

      void setKey(String key)

      User-defined unique identifier for the ProductSelection.

      Parameters:
      key - value to be set
    • setName

      void setName(LocalizedString name)

      Name of the ProductSelection. Not checked for uniqueness, but distinct names are recommended.

      Parameters:
      name - value to be set
    • setCustom

      void setCustom(CustomFieldsDraft custom)

      Custom Fields of this ProductSelection.

      Specified by:
      setCustom in interface CustomizableDraft<ProductSelectionDraft>
      Parameters:
      custom - value to be set
    • setMode

      void setMode(ProductSelectionMode mode)

      Mode of the Product Selection.

      Parameters:
      mode - value to be set
    • of

      static ProductSelectionDraft of()
      factory method
      Returns:
      instance of ProductSelectionDraft
    • of

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

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

      static ProductSelectionDraftBuilder builder()
      builder factory method for ProductSelectionDraft
      Returns:
      builder
    • builder

      create builder for ProductSelectionDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductSelectionDraft

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