Class CreatedByImpl
java.lang.Object
com.commercetools.api.models.common.CreatedByImpl
- All Implemented Interfaces:
ClientLogging
,CreatedBy
,io.vrap.rmf.base.client.ModelBase
Present on resources created after 1 February 2019 except for events not tracked.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates the anonymous session during which the resource was created.id
of the APIClient which created the resource.Indicates the Customer who created the resource using a token from the password flow.External user ID provided byX-External-User-ID
HTTP Header.int
hashCode()
void
setAnonymousId
(String anonymousId) Indicates the anonymous session during which the resource was created.void
setClientId
(String clientId) id
of the APIClient which created the resource.void
setCustomer
(CustomerReference customer) Indicates the Customer who created the resource using a token from the password flow.void
setExternalUserId
(String externalUserId) External user ID provided byX-External-User-ID
HTTP Header.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.ClientLogging
withClientLogging
Methods inherited from interface com.commercetools.api.models.common.CreatedBy
withCreatedBy
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CreatedByImpl
public CreatedByImpl()create empty instance
-
-
Method Details
-
getClientId
id
of the APIClient which created the resource.- Specified by:
getClientId
in interfaceClientLogging
- Specified by:
getClientId
in interfaceCreatedBy
- Returns:
- clientId
-
getExternalUserId
External user ID provided by
X-External-User-ID
HTTP Header.- Specified by:
getExternalUserId
in interfaceClientLogging
- Specified by:
getExternalUserId
in interfaceCreatedBy
- Returns:
- externalUserId
-
getCustomer
Indicates the Customer who created the resource using a token from the password flow.
- Specified by:
getCustomer
in interfaceClientLogging
- Specified by:
getCustomer
in interfaceCreatedBy
- Returns:
- customer
-
getAnonymousId
Indicates the anonymous session during which the resource was created.
- Specified by:
getAnonymousId
in interfaceClientLogging
- Specified by:
getAnonymousId
in interfaceCreatedBy
- Returns:
- anonymousId
-
setClientId
Description copied from interface:CreatedBy
id
of the APIClient which created the resource.- Specified by:
setClientId
in interfaceClientLogging
- Specified by:
setClientId
in interfaceCreatedBy
- Parameters:
clientId
- value to be set
-
setExternalUserId
Description copied from interface:CreatedBy
External user ID provided by
X-External-User-ID
HTTP Header.- Specified by:
setExternalUserId
in interfaceClientLogging
- Specified by:
setExternalUserId
in interfaceCreatedBy
- Parameters:
externalUserId
- value to be set
-
setCustomer
Description copied from interface:CreatedBy
Indicates the Customer who created the resource using a token from the password flow.
- Specified by:
setCustomer
in interfaceClientLogging
- Specified by:
setCustomer
in interfaceCreatedBy
- Parameters:
customer
- value to be set
-
setAnonymousId
Description copied from interface:CreatedBy
Indicates the anonymous session during which the resource was created.
- Specified by:
setAnonymousId
in interfaceClientLogging
- Specified by:
setAnonymousId
in interfaceCreatedBy
- Parameters:
anonymousId
- value to be set
-
equals
-
hashCode
-