Interface CustomerGroupReference

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

public interface CustomerGroupReference extends Reference, Identifiable<CustomerGroup>, IdentifiableObjHolder<CustomerGroup>

Reference to a CustomerGroup.


Example to create an instance using the builder pattern

     CustomerGroupReference customerGroupReference = CustomerGroupReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

  • Method Details

    • getObj

      @Valid @Valid CustomerGroup getObj()

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

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

      @NotNull @NotNull String getId()

      Unique identifier of the referenced CustomerGroup.

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

      void setObj(CustomerGroup obj)

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

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced CustomerGroup.

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

      factory method
      Returns:
      instance of CustomerGroupReference
    • of

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

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

      builder factory method for CustomerGroupReference
      Returns:
      builder
    • builder

      create builder for CustomerGroupReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerGroupReference

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