Interface CreatedBy
- All Superinterfaces:
- ClientLogging
IDs and references that created the resource. This is 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 SummaryModifier and TypeMethodDescriptionstatic CreatedByBuilderbuilder()builder factory method for CreatedBystatic CreatedByBuildercreate builder for CreatedBy instancecopyDeep()static CreatedByfactory method to create a deep copy of CreatedByIndicates the anonymous session during which the resource was created.@Valid CustomerReferenceIndicates the Customer who created the resource in the context of a Business Unit.@Valid AttributionIndicates if the resource was created indirectly.idof the API Client which created the resource.@Valid CustomerReferenceIndicates the Customer who created 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 CreatedByof()factory methodstatic CreatedByfactory method to create a shallow copy CreatedByvoidsetAnonymousId(String anonymousId) Indicates the anonymous session during which the resource was created.voidsetAssociate(CustomerReference associate) Indicates the Customer who created the resource in the context of a Business Unit.voidsetAttributedTo(Attribution attributedTo) Indicates if the resource was created indirectly.voidsetClientId(String clientId) idof the API Client which created the resource.voidsetCustomer(CustomerReference customer) Indicates the Customer who created 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<CreatedBy>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCreatedBy(Function<CreatedBy, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.ClientLoggingwithClientLogging
- 
Method Details- 
getClientIdString getClientId()idof the API Client which created the resource.- Specified by:
- getClientIdin interface- ClientLogging
- Returns:
- clientId
 
- 
getExternalUserIdString getExternalUserId()External user ID provided by the X-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.- Specified by:
- getExternalUserIdin interface- ClientLogging
- Returns:
- externalUserId
 
- 
getCustomerIndicates the Customer who created the resource using a token from the password flow. - Specified by:
- getCustomerin interface- ClientLogging
- Returns:
- customer
 
- 
getAnonymousIdString getAnonymousId()Indicates the anonymous session during which the resource was created. - Specified by:
- getAnonymousIdin interface- ClientLogging
- Returns:
- anonymousId
 
- 
getAttributedToIndicates if the resource was created indirectly. - Returns:
- attributedTo
 
- 
getAssociateIndicates the Customer who created the resource in the context of a Business Unit. Only available for B2B-enabled Project when an Associate acts on behalf of a company using the associate endpoints. - Specified by:
- getAssociatein interface- ClientLogging
- Returns:
- associate
 
- 
setClientIdidof the API Client which created the resource.- Specified by:
- setClientIdin interface- ClientLogging
- Parameters:
- clientId- value to be set
 
- 
setExternalUserIdExternal user ID provided by the X-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.- Specified by:
- setExternalUserIdin interface- ClientLogging
- Parameters:
- externalUserId- value to be set
 
- 
setCustomerIndicates the Customer who created the resource using a token from the password flow. - Specified by:
- setCustomerin interface- ClientLogging
- Parameters:
- customer- value to be set
 
- 
setAnonymousIdIndicates the anonymous session during which the resource was created. - Specified by:
- setAnonymousIdin interface- ClientLogging
- Parameters:
- anonymousId- value to be set
 
- 
setAttributedToIndicates if the resource was created indirectly. - Parameters:
- attributedTo- value to be set
 
- 
setAssociateIndicates the Customer who created the resource in the context of a Business Unit. Only available for B2B-enabled Project when an Associate acts on behalf of a company using the associate endpoints. - Specified by:
- setAssociatein interface- ClientLogging
- Parameters:
- associate- value to be set
 
- 
offactory method- Returns:
- instance of CreatedBy
 
- 
offactory method to create a shallow copy CreatedBy- Parameters:
- template- instance to be copied
- Returns:
- copy instance
 
- 
copyDeepCreatedBy copyDeep()- Specified by:
- copyDeepin interface- ClientLogging
 
- 
deepCopyfactory method to create a deep copy of CreatedBy- Parameters:
- template- instance to be copied
- Returns:
- copy instance
 
- 
builderbuilder factory method for CreatedBy- Returns:
- builder
 
- 
buildercreate builder for CreatedBy instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
- 
withCreatedByaccessor map function- Type Parameters:
- T- mapped type
- Parameters:
- helper- function to map the object
- Returns:
- mapped value
 
- 
typeReferencegives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
 
 
-