Interface AssignedProductSelection


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

     AssignedProductSelection assignedProductSelection = AssignedProductSelection.builder()
             .productSelection(productSelectionBuilder -> productSelectionBuilder)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .build()
 
  • Method Details

    • getProductSelection

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

      Reference to the Product Selection that this assignment is part of.

      Returns:
      productSelection
    • getVariantSelection

      @Valid @Valid ProductVariantSelection getVariantSelection()

      Defines which Variants of the Product will be included in the Product Selection.

      This field is only available for assignments to a Product Selection with Individual ProductSelectionMode.

      Returns:
      variantSelection
    • getVariantExclusion

      @Valid @Valid ProductVariantExclusion getVariantExclusion()

      Defines which Variants of the Product will be excluded from the Product Selection.

      This field is only available for assignments to a Product Selection with IndividualExclusion ProductSelectionMode.

      Returns:
      variantExclusion
    • getCreatedAt

      @NotNull @NotNull ZonedDateTime getCreatedAt()

      Date and time (UTC) this assignment was initially created.

      Returns:
      createdAt
    • setProductSelection

      void setProductSelection(ProductSelectionReference productSelection)

      Reference to the Product Selection that this assignment is part of.

      Parameters:
      productSelection - value to be set
    • setVariantSelection

      void setVariantSelection(ProductVariantSelection variantSelection)

      Defines which Variants of the Product will be included in the Product Selection.

      This field is only available for assignments to a Product Selection with Individual ProductSelectionMode.

      Parameters:
      variantSelection - value to be set
    • setVariantExclusion

      void setVariantExclusion(ProductVariantExclusion variantExclusion)

      Defines which Variants of the Product will be excluded from the Product Selection.

      This field is only available for assignments to a Product Selection with IndividualExclusion ProductSelectionMode.

      Parameters:
      variantExclusion - value to be set
    • setCreatedAt

      void setCreatedAt(ZonedDateTime createdAt)

      Date and time (UTC) this assignment was initially created.

      Parameters:
      createdAt - value to be set
    • of

      factory method
      Returns:
      instance of AssignedProductSelection
    • of

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

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

      builder factory method for AssignedProductSelection
      Returns:
      builder
    • builder

      create builder for AssignedProductSelection instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAssignedProductSelection

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