Interface LastModifiedBy

All Superinterfaces:
ClientLogging

public interface LastModifiedBy extends ClientLogging

IDs and references that last modified the resource. This is present on resources created or updated after 1 February 2019 except for events not tracked.


Example to create an instance using the builder pattern

     LastModifiedBy lastModifiedBy = LastModifiedBy.builder()
             .build()
 
  • Method Details

    • getClientId

      String getClientId()

      id of the API Client which modified the resource.

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

      String getExternalUserId()

      External user ID provided by the X-External-User-ID HTTP Header or external_user_id:{externalUserId} scope.

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

      @Valid @Valid CustomerReference getCustomer()

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

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

      String getAnonymousId()

      Indicates the anonymous session during which the resource was modified.

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

      @Valid @Valid Attribution getAttributedTo()

      Indicates if the resource was modified indirectly.

      Returns:
      attributedTo
    • getAssociate

      @Valid @Valid CustomerReference getAssociate()

      Indicates the Customer who modified 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 modified the resource.

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

      void setExternalUserId(String externalUserId)

      External user ID provided by the X-External-User-ID HTTP Header or external_user_id:{externalUserId} scope.

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

      void setCustomer(CustomerReference customer)

      Indicates the Customer who modified 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 modified.

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

      void setAttributedTo(Attribution attributedTo)

      Indicates if the resource was modified indirectly.

      Parameters:
      attributedTo - value to be set
    • setAssociate

      void setAssociate(CustomerReference associate)

      Indicates the Customer who modified 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 LastModifiedBy of()
      factory method
      Returns:
      instance of LastModifiedBy
    • of

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

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

      static LastModifiedByBuilder builder()
      builder factory method for LastModifiedBy
      Returns:
      builder
    • builder

      static LastModifiedByBuilder builder(LastModifiedBy template)
      create builder for LastModifiedBy instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withLastModifiedBy

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