Interface ProductKeyReference

All Superinterfaces:
KeyReference

public interface ProductKeyReference extends KeyReference

References a product by key.


Example to create an instance using the builder pattern

     ProductKeyReference productKeyReference = ProductKeyReference.builder()
             .key("{key}")
             .build()
 
  • Field Details

  • Method Details

    • of

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

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

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

      static ProductKeyReferenceBuilder builder()
      builder factory method for ProductKeyReference
      Returns:
      builder
    • builder

      create builder for ProductKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductKeyReference

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