Class CustomLineItemStateTransitionMessageImpl
- All Implemented Interfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,CustomLineItemStateTransitionMessage
,Message
,OrderMessage
,Versioned<Message>
,io.vrap.rmf.base.client.ModelBase
Generated after a successful Transition Custom Line Item State update action.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.message.CustomLineItemStateTransitionMessage
CUSTOM_LINE_ITEM_STATE_TRANSITION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Date and time (UTC) the Message was generated.Present on resources created after 1 February 2019 except for events not tracked.Unique identifier of the Custom Line Item.State the Custom Line Item was transitioned from.getId()
Unique identifier of the Message.Value ofcreatedAt
.Value ofcreatedBy
.Number of Custom Line Items for which the State was transitioned.Reference to the resource on which the change or action was performed.User-provided identifiers of the resource, such askey
orexternalId
.Version of the resource on which the change or action was performed.Message number in relation to other Messages for a given resource.State the Custom Line Item was transitioned to.Date and time (UTC) when the transition of the Custom Line Item State was performed.getType()
Message Type of the Message.Version of a resource.int
hashCode()
void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Message was generated.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustomLineItemId
(String customLineItemId) Unique identifier of the Custom Line Item.void
setFromState
(StateReference fromState) State the Custom Line Item was transitioned from.void
Unique identifier of the Message.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Value ofcreatedAt
.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Value ofcreatedBy
.void
setQuantity
(Long quantity) Number of Custom Line Items for which the State was transitioned.void
setResource
(Reference resource) Reference to the resource on which the change or action was performed.void
setResourceUserProvidedIdentifiers
(UserProvidedIdentifiers resourceUserProvidedIdentifiers) User-provided identifiers of the resource, such askey
orexternalId
.void
setResourceVersion
(Long resourceVersion) Version of the resource on which the change or action was performed.void
setSequenceNumber
(Long sequenceNumber) Message number in relation to other Messages for a given resource.void
setToState
(StateReference toState) State the Custom Line Item was transitioned to.void
setTransitionDate
(ZonedDateTime transitionDate) Date and time (UTC) when the transition of the Custom Line Item State was performed.void
setVersion
(Long version) Version of a resource.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.message.CustomLineItemStateTransitionMessage
withCustomLineItemStateTransitionMessage
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
withMessage
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.message.OrderMessage
withOrderMessage
-
Constructor Details
-
CustomLineItemStateTransitionMessageImpl
create empty instance
-
-
Method Details
-
getId
Unique identifier of the Message. Can be used to track which Messages have been processed.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<Message>
- Specified by:
getId
in interfaceIdentifiable<Message>
- Specified by:
getId
in interfaceMessage
- Specified by:
getId
in interfaceVersioned<Message>
- Returns:
- id
-
getVersion
Version of a resource. In case of Messages, this is always
1
.- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<Message>
- Specified by:
getVersion
in interfaceMessage
- Specified by:
getVersion
in interfaceVersioned<Message>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Message was generated.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceMessage
- Returns:
- createdAt
-
getLastModifiedAt
Value of
createdAt
.- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceMessage
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Value of
createdBy
.- Specified by:
getLastModifiedBy
in interfaceMessage
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceMessage
- Returns:
- createdBy
-
getSequenceNumber
Message number in relation to other Messages for a given resource. The
sequenceNumber
of the next Message for the resource is the successor of thesequenceNumber
of the current Message. Meaning, thesequenceNumber
of the next Message equals thesequenceNumber
of the current Message + 1.sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.- Specified by:
getSequenceNumber
in interfaceMessage
- Returns:
- sequenceNumber
-
getResource
Reference to the resource on which the change or action was performed.
- Specified by:
getResource
in interfaceMessage
- Returns:
- resource
-
getResourceVersion
Version of the resource on which the change or action was performed.
- Specified by:
getResourceVersion
in interfaceMessage
- Returns:
- resourceVersion
-
getType
Message Type of the Message.
-
getResourceUserProvidedIdentifiers
User-provided identifiers of the resource, such as
key
orexternalId
. Only present if the resource has such identifiers.- Specified by:
getResourceUserProvidedIdentifiers
in interfaceMessage
- Returns:
- resourceUserProvidedIdentifiers
-
getCustomLineItemId
Unique identifier of the Custom Line Item.
- Specified by:
getCustomLineItemId
in interfaceCustomLineItemStateTransitionMessage
- Returns:
- customLineItemId
-
getTransitionDate
Date and time (UTC) when the transition of the Custom Line Item State was performed.
- Specified by:
getTransitionDate
in interfaceCustomLineItemStateTransitionMessage
- Returns:
- transitionDate
-
getQuantity
Number of Custom Line Items for which the State was transitioned.
- Specified by:
getQuantity
in interfaceCustomLineItemStateTransitionMessage
- Returns:
- quantity
-
getFromState
State the Custom Line Item was transitioned from.
- Specified by:
getFromState
in interfaceCustomLineItemStateTransitionMessage
- Returns:
- fromState
-
getToState
State the Custom Line Item was transitioned to.
- Specified by:
getToState
in interfaceCustomLineItemStateTransitionMessage
- Returns:
- toState
-
setId
Description copied from interface:Message
Unique identifier of the Message. Can be used to track which Messages have been processed.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceMessage
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:Message
Version of a resource. In case of Messages, this is always
1
.- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceMessage
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:Message
Date and time (UTC) the Message was generated.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceMessage
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:Message
Value of
createdAt
.- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceMessage
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:Message
Value of
createdBy
.- Specified by:
setLastModifiedBy
in interfaceMessage
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:Message
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceMessage
- Parameters:
createdBy
- value to be set
-
setSequenceNumber
Description copied from interface:Message
Message number in relation to other Messages for a given resource. The
sequenceNumber
of the next Message for the resource is the successor of thesequenceNumber
of the current Message. Meaning, thesequenceNumber
of the next Message equals thesequenceNumber
of the current Message + 1.sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.- Specified by:
setSequenceNumber
in interfaceMessage
- Parameters:
sequenceNumber
- value to be set
-
setResource
Description copied from interface:Message
Reference to the resource on which the change or action was performed.
- Specified by:
setResource
in interfaceMessage
- Parameters:
resource
- value to be set
-
setResourceVersion
Description copied from interface:Message
Version of the resource on which the change or action was performed.
- Specified by:
setResourceVersion
in interfaceMessage
- Parameters:
resourceVersion
- value to be set
-
setResourceUserProvidedIdentifiers
public void setResourceUserProvidedIdentifiers(UserProvidedIdentifiers resourceUserProvidedIdentifiers) Description copied from interface:Message
User-provided identifiers of the resource, such as
key
orexternalId
. Only present if the resource has such identifiers.- Specified by:
setResourceUserProvidedIdentifiers
in interfaceMessage
- Parameters:
resourceUserProvidedIdentifiers
- value to be set
-
setCustomLineItemId
Description copied from interface:CustomLineItemStateTransitionMessage
Unique identifier of the Custom Line Item.
- Specified by:
setCustomLineItemId
in interfaceCustomLineItemStateTransitionMessage
- Parameters:
customLineItemId
- value to be set
-
setTransitionDate
Description copied from interface:CustomLineItemStateTransitionMessage
Date and time (UTC) when the transition of the Custom Line Item State was performed.
- Specified by:
setTransitionDate
in interfaceCustomLineItemStateTransitionMessage
- Parameters:
transitionDate
- value to be set
-
setQuantity
Description copied from interface:CustomLineItemStateTransitionMessage
Number of Custom Line Items for which the State was transitioned.
- Specified by:
setQuantity
in interfaceCustomLineItemStateTransitionMessage
- Parameters:
quantity
- value to be set
-
setFromState
Description copied from interface:CustomLineItemStateTransitionMessage
State the Custom Line Item was transitioned from.
- Specified by:
setFromState
in interfaceCustomLineItemStateTransitionMessage
- Parameters:
fromState
- value to be set
-
setToState
Description copied from interface:CustomLineItemStateTransitionMessage
State the Custom Line Item was transitioned to.
- Specified by:
setToState
in interfaceCustomLineItemStateTransitionMessage
- Parameters:
toState
- value to be set
-
equals
-
hashCode
-