Interface LastModifiedBy
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionstatic LastModifiedByBuilderbuilder()builder factory method for LastModifiedBystatic LastModifiedByBuilderbuilder(LastModifiedBy template) create builder for LastModifiedBy instancecopyDeep()static LastModifiedBydeepCopy(LastModifiedBy template) factory method to create a deep copy of LastModifiedByIndicates the anonymous session during which the resource was modified.@Valid CustomerReferenceIndicates the Customer who modified the resource in the context of a Business Unit.@Valid AttributionIndicates if the resource was modified indirectly.idof the API Client which modified the resource.@Valid CustomerReferenceIndicates the Customer who modified the resource using a token from the password flow.External user ID provided by theX-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.static LastModifiedByof()factory methodstatic LastModifiedByof(LastModifiedBy template) factory method to create a shallow copy LastModifiedByvoidsetAnonymousId(String anonymousId) Indicates the anonymous session during which the resource was modified.voidsetAssociate(CustomerReference associate) Indicates the Customer who modified the resource in the context of a Business Unit.voidsetAttributedTo(Attribution attributedTo) Indicates if the resource was modified indirectly.voidsetClientId(String clientId) idof the API Client which modified 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 by theX-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.static com.fasterxml.jackson.core.type.TypeReference<LastModifiedBy>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithLastModifiedBy(Function<LastModifiedBy, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.ClientLogging
withClientLogging
-
Method Details
-
getClientId
String getClientId()idof the API Client which modified the resource.- Specified by:
getClientIdin interfaceClientLogging- Returns:
- clientId
-
getExternalUserId
String getExternalUserId()External user ID provided by the
X-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.- Specified by:
getExternalUserIdin interfaceClientLogging- Returns:
- externalUserId
-
getCustomer
Indicates the Customer who modified the resource using a token from the password flow.
- Specified by:
getCustomerin interfaceClientLogging- Returns:
- customer
-
getAnonymousId
String getAnonymousId()Indicates the anonymous session during which the resource was modified.
- Specified by:
getAnonymousIdin interfaceClientLogging- Returns:
- anonymousId
-
getAttributedTo
Indicates if the resource was modified indirectly.
- Returns:
- attributedTo
-
getAssociate
Indicates the Customer who 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.
- Specified by:
getAssociatein interfaceClientLogging- Returns:
- associate
-
setClientId
idof the API Client which modified the resource.- Specified by:
setClientIdin interfaceClientLogging- Parameters:
clientId- value to be set
-
setExternalUserId
External user ID provided by the
X-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.- Specified by:
setExternalUserIdin interfaceClientLogging- Parameters:
externalUserId- value to be set
-
setCustomer
Indicates the Customer who modified the resource using a token from the password flow.
- Specified by:
setCustomerin interfaceClientLogging- Parameters:
customer- value to be set
-
setAnonymousId
Indicates the anonymous session during which the resource was modified.
- Specified by:
setAnonymousIdin interfaceClientLogging- Parameters:
anonymousId- value to be set
-
setAttributedTo
Indicates if the resource was modified indirectly.
- Parameters:
attributedTo- value to be set
-
setAssociate
Indicates the Customer who 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.
- Specified by:
setAssociatein interfaceClientLogging- Parameters:
associate- value to be set
-
of
factory method- Returns:
- instance of LastModifiedBy
-
of
factory method to create a shallow copy LastModifiedBy- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
LastModifiedBy copyDeep()- Specified by:
copyDeepin interfaceClientLogging
-
deepCopy
factory method to create a deep copy of LastModifiedBy- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LastModifiedBy- Returns:
- builder
-
builder
create builder for LastModifiedBy instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withLastModifiedBy
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
-