Interface ProductTypeReference

All Superinterfaces:
Identifiable<ProductType>, Reference, ReferenceMixin
All Known Implementing Classes:
ProductTypeReferenceImpl

public interface ProductTypeReference extends Reference, Identifiable<ProductType>

Reference to a ProductType.


Example to create an instance using the builder pattern

     ProductTypeReference productTypeReference = ProductTypeReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

  • Method Details

    • getObj

      @Valid @Valid ProductType getObj()

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

      Returns:
      obj
    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced ProductType.

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

      void setObj(ProductType obj)

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

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced ProductType.

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

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

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

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

      static ProductTypeReferenceBuilder builder()
      builder factory method for ProductTypeReference
      Returns:
      builder
    • builder

      create builder for ProductTypeReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductTypeReference

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