Interface DirectDiscountReference

All Superinterfaces:
Reference, ReferenceMixin

public interface DirectDiscountReference extends Reference

Reference to a DirectDiscount.


Example to create an instance using the builder pattern

     DirectDiscountReference directDiscountReference = DirectDiscountReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

    • DIRECT_DISCOUNT

      static final String DIRECT_DISCOUNT
      discriminator value for DirectDiscountReference
      See Also:
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced DirectDiscount.

      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Returns:
      id
    • setId

      void setId(String id)

      Unique identifier of the referenced DirectDiscount.

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

      factory method
      Returns:
      instance of DirectDiscountReference
    • of

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

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

      builder factory method for DirectDiscountReference
      Returns:
      builder
    • builder

      create builder for DirectDiscountReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDirectDiscountReference

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