Interface BusinessUnitKeyReference

All Superinterfaces:
KeyReference, WithKey

public interface BusinessUnitKeyReference extends KeyReference

KeyReference to a BusinessUnit.


Example to create an instance using the builder pattern

     BusinessUnitKeyReference businessUnitKeyReference = BusinessUnitKeyReference.builder()
             .key("{key}")
             .build()
 
  • Field Details

  • Method Details

    • getKey

      @NotNull @NotNull String getKey()

      Unique and immutable key of the referenced BusinessUnit.

      Specified by:
      getKey in interface KeyReference
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • setKey

      void setKey(String key)

      Unique and immutable key of the referenced BusinessUnit.

      Specified by:
      setKey in interface KeyReference
      Parameters:
      key - value to be set
    • of

      factory method
      Returns:
      instance of BusinessUnitKeyReference
    • of

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

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

      builder factory method for BusinessUnitKeyReference
      Returns:
      builder
    • builder

      create builder for BusinessUnitKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withBusinessUnitKeyReference

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