Interface CreatedBy

All Superinterfaces:
ClientLogging
All Known Implementing Classes:
CreatedByImpl

public interface CreatedBy extends ClientLogging

Present on resources created after 1 February 2019 except for events not tracked.


Example to create an instance using the builder pattern

     CreatedBy createdBy = CreatedBy.builder()
             .build()
 
  • Method Details

    • getClientId

      id of the API Client which created the resource.

      Specified by:
      getClientId in interface ClientLogging
      Returns:
      clientId
    • getExternalUserId

      External user ID provided by X-External-User-ID HTTP Header.

      Specified by:
      getExternalUserId in interface ClientLogging
      Returns:
      externalUserId
    • getCustomer

      Indicates the Customer who created the resource using a token from the password flow.

      Specified by:
      getCustomer in interface ClientLogging
      Returns:
      customer
    • getAnonymousId

      Indicates the anonymous session during which the resource was created.

      Specified by:
      getAnonymousId in interface ClientLogging
      Returns:
      anonymousId
    • getAssociate

      Indicates the Customer who created the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

      Specified by:
      getAssociate in interface ClientLogging
      Returns:
      associate
    • setClientId

      void setClientId(String clientId)

      id of the API Client which created the resource.

      Specified by:
      setClientId in interface ClientLogging
      Parameters:
      clientId - value to be set
    • setExternalUserId

      void setExternalUserId(String externalUserId)

      External user ID provided by X-External-User-ID HTTP Header.

      Specified by:
      setExternalUserId in interface ClientLogging
      Parameters:
      externalUserId - value to be set
    • setCustomer

      Indicates the Customer who created the resource using a token from the password flow.

      Specified by:
      setCustomer in interface ClientLogging
      Parameters:
      customer - value to be set
    • setAnonymousId

      void setAnonymousId(String anonymousId)

      Indicates the anonymous session during which the resource was created.

      Specified by:
      setAnonymousId in interface ClientLogging
      Parameters:
      anonymousId - value to be set
    • setAssociate

      Indicates the Customer who created the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

      Specified by:
      setAssociate in interface ClientLogging
      Parameters:
      associate - value to be set
    • of

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

      static CreatedBy of(CreatedBy template)
      factory method to create a shallow copy CreatedBy
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      builder factory method for CreatedBy
      Returns:
      builder
    • builder

      static CreatedByBuilder builder(CreatedBy template)
      create builder for CreatedBy instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCreatedBy

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