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 ClientLoggingBuilder
builder()
builder factory method for ClientLoggingstatic ClientLoggingBuilder
builder
(ClientLogging template) create builder for ClientLogging instancestatic ClientLogging
deepCopy
(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 CustomerReference
Indicates the Customer who created or modified the resource in the context of a Business Unit.id
of the API Client which created the resource.@Valid CustomerReference
Indicates the Customer who modified the resource using a token from the password flow.External user ID provided byX-External-User-ID
HTTP Header.static ClientLogging
of()
factory methodstatic ClientLogging
of
(ClientLogging template) factory method to create a shallow copy ClientLoggingvoid
setAnonymousId
(String anonymousId) Indicates that the resource was modified during an anonymous session with the logged ID.void
setAssociate
(CustomerReference associate) Indicates the Customer who created or modified the resource in the context of a Business Unit.void
setClientId
(String clientId) id
of the API Client which created the resource.void
setCustomer
(CustomerReference customer) Indicates the Customer who modified the resource using a token from the password flow.void
setExternalUserId
(String externalUserId) External user ID provided byX-External-User-ID
HTTP Header.static com.fasterxml.jackson.core.type.TypeReference<ClientLogging>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withClientLogging
(Function<ClientLogging, T> helper) accessor map function
-
Method Details
-
getClientId
String getClientId()id
of the API Client which created the resource.- Returns:
- clientId
-
getExternalUserId
String getExternalUserId()External user ID provided by
X-External-User-ID
HTTP 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 present when an Associate acts on behalf of a company using the associate endpoints.
- Returns:
- associate
-
setClientId
id
of the API Client which created the resource.- Parameters:
clientId
- value to be set
-
setExternalUserId
External user ID provided by
X-External-User-ID
HTTP 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 present 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
-
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
-