Interface InventoryEntryReference

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

public interface InventoryEntryReference extends Reference, Identifiable<InventoryEntry>, IdentifiableObjHolder<InventoryEntry>

Reference to an InventoryEntry.


Example to create an instance using the builder pattern

     InventoryEntryReference inventoryEntryReference = InventoryEntryReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

    • INVENTORY_ENTRY

      static final String INVENTORY_ENTRY
      discriminator value for InventoryEntryReference
      See Also:
  • Method Details

    • getObj

      @Valid @Valid InventoryEntry getObj()

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

      Specified by:
      getObj in interface IdentifiableObjHolder<InventoryEntry>
      Returns:
      obj
    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced InventoryEntry.

      Specified by:
      getId in interface Identifiable<InventoryEntry>
      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Returns:
      id
    • setObj

      void setObj(InventoryEntry obj)

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

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced InventoryEntry.

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

      factory method
      Returns:
      instance of InventoryEntryReference
    • of

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

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

      builder factory method for InventoryEntryReference
      Returns:
      builder
    • builder

      create builder for InventoryEntryReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInventoryEntryReference

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