Interface ProductSelectionReference

All Superinterfaces:
Identifiable<ProductSelection>, IdentifiableObjHolder<ProductSelection>, Reference, ReferenceMixin

public interface ProductSelectionReference extends Reference, Identifiable<ProductSelection>, IdentifiableObjHolder<ProductSelection>

Reference to a ProductSelection.


Example to create an instance using the builder pattern

     ProductSelectionReference productSelectionReference = ProductSelectionReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

    • PRODUCT_SELECTION

      static final String PRODUCT_SELECTION
      discriminator value for ProductSelectionReference
      See Also:
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced ProductSelection.

      Specified by:
      getId in interface Identifiable<ProductSelection>
      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Returns:
      id
    • getObj

      @Valid @Valid ProductSelection getObj()

      Contains the representation of the expanded ProductSelection. Only present in responses to requests with Reference Expansion for ProductSelections.

      Specified by:
      getObj in interface IdentifiableObjHolder<ProductSelection>
      Returns:
      obj
    • setId

      void setId(String id)

      Unique identifier of the referenced ProductSelection.

      Specified by:
      setId in interface Reference
      Parameters:
      id - value to be set
    • setObj

      void setObj(ProductSelection obj)

      Contains the representation of the expanded ProductSelection. Only present in responses to requests with Reference Expansion for ProductSelections.

      Parameters:
      obj - value to be set
    • of

      factory method
      Returns:
      instance of ProductSelectionReference
    • of

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

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

      builder factory method for ProductSelectionReference
      Returns:
      builder
    • builder

      create builder for ProductSelectionReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductSelectionReference

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