Interface ClientLogging
- All Known Subinterfaces:
CreatedBy,LastModifiedBy
These objects represent information about which API Client created or modified a resource. For more information, see Client Logging.
Example to create an instance using the builder pattern
ClientLogging clientLogging = ClientLogging.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientLoggingBuilderbuilder()builder factory method for ClientLoggingstatic ClientLoggingBuilderbuilder(ClientLogging template) create builder for ClientLogging instancecopyDeep()static ClientLoggingdeepCopy(ClientLogging template) factory method to create a deep copy of ClientLoggingIndicates that the resource was modified during an anonymous session with the logged ID.@Valid CustomerReferenceIndicates the Customer who created or modified the resource in the context of a Business Unit.idof the API Client which created the resource.@Valid CustomerReferenceIndicates the Customer who modified the resource using a token from the password flow.External user ID provided byX-External-User-IDHTTP Header.static ClientLoggingof()factory methodstatic ClientLoggingof(ClientLogging template) factory method to create a shallow copy ClientLoggingvoidsetAnonymousId(String anonymousId) Indicates that the resource was modified during an anonymous session with the logged ID.voidsetAssociate(CustomerReference associate) Indicates the Customer who created or modified the resource in the context of a Business Unit.voidsetClientId(String clientId) idof the API Client which created the resource.voidsetCustomer(CustomerReference customer) Indicates the Customer who modified the resource using a token from the password flow.voidsetExternalUserId(String externalUserId) External user ID provided byX-External-User-IDHTTP Header.static com.fasterxml.jackson.core.type.TypeReference<ClientLogging>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithClientLogging(Function<ClientLogging, T> helper) accessor map function
-
Method Details
-
getClientId
String getClientId()idof the API Client which created the resource.- Returns:
- clientId
-
getExternalUserId
String getExternalUserId()External user ID provided by
X-External-User-IDHTTP Header.- Returns:
- externalUserId
-
getCustomer
Indicates the Customer who modified the resource using a token from the password flow.
- Returns:
- customer
-
getAnonymousId
String getAnonymousId()Indicates that the resource was modified during an anonymous session with the logged ID.
- Returns:
- anonymousId
-
getAssociate
Indicates the Customer who created or modified the resource in the context of a Business Unit. Only available for B2B-enabled Projects when an Associate acts on behalf of a company using the associate endpoints.
- Returns:
- associate
-
setClientId
idof the API Client which created the resource.- Parameters:
clientId- value to be set
-
setExternalUserId
External user ID provided by
X-External-User-IDHTTP Header.- Parameters:
externalUserId- value to be set
-
setCustomer
Indicates the Customer who modified the resource using a token from the password flow.
- Parameters:
customer- value to be set
-
setAnonymousId
Indicates that the resource was modified during an anonymous session with the logged ID.
- Parameters:
anonymousId- value to be set
-
setAssociate
Indicates the Customer who created or modified the resource in the context of a Business Unit. Only available for B2B-enabled Projects when an Associate acts on behalf of a company using the associate endpoints.
- Parameters:
associate- value to be set
-
of
factory method- Returns:
- instance of ClientLogging
-
of
factory method to create a shallow copy ClientLogging- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ClientLogging copyDeep() -
deepCopy
factory method to create a deep copy of ClientLogging- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ClientLogging- Returns:
- builder
-
builder
create builder for ClientLogging instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withClientLogging
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-