Interface DiscountGroupReference

All Superinterfaces:
Reference, ReferenceMixin

public interface DiscountGroupReference extends Reference

Reference to a DiscountGroup.


Example to create an instance using the builder pattern

     DiscountGroupReference discountGroupReference = DiscountGroupReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

  • Method Details

    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced DiscountGroup.

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

      @Valid @Valid DiscountGroup getObj()

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

      Returns:
      obj
    • setId

      void setId(String id)

      Unique identifier of the referenced DiscountGroup.

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

      void setObj(DiscountGroup obj)

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

      Parameters:
      obj - value to be set
    • of

      factory method
      Returns:
      instance of DiscountGroupReference
    • of

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

      Specified by:
      copyDeep in interface Reference
    • deepCopy

      @Nullable static DiscountGroupReference deepCopy(@Nullable DiscountGroupReference template)
      factory method to create a deep copy of DiscountGroupReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for DiscountGroupReference
      Returns:
      builder
    • builder

      create builder for DiscountGroupReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountGroupReference

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