Class CustomerAddressCustomTypeSetMessageImpl

java.lang.Object
com.commercetools.api.models.message.CustomerAddressCustomTypeSetMessageImpl
All Implemented Interfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, CustomerAddressCustomTypeSetMessage, Message, Versioned<Message>, io.vrap.rmf.base.client.ModelBase

public class CustomerAddressCustomTypeSetMessageImpl extends Object implements CustomerAddressCustomTypeSetMessage, io.vrap.rmf.base.client.ModelBase

Generated after adding a Custom Type to an Address of a Customer using the Set Custom Type in Address update action.

  • Constructor Details

    • CustomerAddressCustomTypeSetMessageImpl

      public CustomerAddressCustomTypeSetMessageImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Message. Can be used to track which Messages have been processed.

      Specified by:
      getId in interface BaseResource
      Specified by:
      getId in interface DomainResource<Message>
      Specified by:
      getId in interface Identifiable<Message>
      Specified by:
      getId in interface Message
      Specified by:
      getId in interface Versioned<Message>
      Returns:
      id
    • getVersion

      public Long getVersion()

      Version of a resource. In case of Messages, this is always 1.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface DomainResource<Message>
      Specified by:
      getVersion in interface Message
      Specified by:
      getVersion in interface Versioned<Message>
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Message was generated.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface Message
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Value of createdAt.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface Message
      Returns:
      lastModifiedAt
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Value of createdBy.

      Specified by:
      getLastModifiedBy in interface Message
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface Message
      Returns:
      createdBy
    • getSequenceNumber

      public Long 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 the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber 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 interface Message
      Returns:
      sequenceNumber
    • getResource

      public Reference getResource()

      Reference to the resource on which the change or action was performed.

      Specified by:
      getResource in interface Message
      Returns:
      resource
    • getResourceVersion

      public Long getResourceVersion()

      Version of the resource on which the change or action was performed.

      Specified by:
      getResourceVersion in interface Message
      Returns:
      resourceVersion
    • getType

      public String getType()

      Message Type of the Message.

      Specified by:
      getType in interface Message
      Returns:
      type
    • getResourceUserProvidedIdentifiers

      public UserProvidedIdentifiers getResourceUserProvidedIdentifiers()

      User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

      Specified by:
      getResourceUserProvidedIdentifiers in interface Message
      Returns:
      resourceUserProvidedIdentifiers
    • getCustomFields

      public CustomFields getCustomFields()

      The Custom Fields that have been set.

      Specified by:
      getCustomFields in interface CustomerAddressCustomTypeSetMessage
      Returns:
      customFields
    • getPreviousTypeId

      public String getPreviousTypeId()

      id of the previous Custom Type. Absent if there was no previous Custom Type present.

      Specified by:
      getPreviousTypeId in interface CustomerAddressCustomTypeSetMessage
      Returns:
      previousTypeId
    • setId

      public void setId(String id)
      Description copied from interface: Message

      Unique identifier of the Message. Can be used to track which Messages have been processed.

      Specified by:
      setId in interface BaseResource
      Specified by:
      setId in interface Message
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: Message

      Version of a resource. In case of Messages, this is always 1.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface Message
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: Message

      Date and time (UTC) the Message was generated.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface Message
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: Message

      Value of createdAt.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface Message
      Parameters:
      lastModifiedAt - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: Message

      Value of createdBy.

      Specified by:
      setLastModifiedBy in interface Message
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: Message

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface Message
      Parameters:
      createdBy - value to be set
    • setSequenceNumber

      public void setSequenceNumber(Long sequenceNumber)
      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 the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber 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 interface Message
      Parameters:
      sequenceNumber - value to be set
    • setResource

      public void setResource(Reference resource)
      Description copied from interface: Message

      Reference to the resource on which the change or action was performed.

      Specified by:
      setResource in interface Message
      Parameters:
      resource - value to be set
    • setResourceVersion

      public void setResourceVersion(Long resourceVersion)
      Description copied from interface: Message

      Version of the resource on which the change or action was performed.

      Specified by:
      setResourceVersion in interface Message
      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 or externalId. Only present if the resource has such identifiers.

      Specified by:
      setResourceUserProvidedIdentifiers in interface Message
      Parameters:
      resourceUserProvidedIdentifiers - value to be set
    • setCustomFields

      public void setCustomFields(CustomFields customFields)
      Description copied from interface: CustomerAddressCustomTypeSetMessage

      The Custom Fields that have been set.

      Specified by:
      setCustomFields in interface CustomerAddressCustomTypeSetMessage
      Parameters:
      customFields - value to be set
    • setPreviousTypeId

      public void setPreviousTypeId(String previousTypeId)
      Description copied from interface: CustomerAddressCustomTypeSetMessage

      id of the previous Custom Type. Absent if there was no previous Custom Type present.

      Specified by:
      setPreviousTypeId in interface CustomerAddressCustomTypeSetMessage
      Parameters:
      previousTypeId - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object