Class ApprovalRulePredicateSetMessageImpl

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

public class ApprovalRulePredicateSetMessageImpl extends Object implements ApprovalRulePredicateSetMessage, io.vrap.rmf.base.client.ModelBase

Generated after a successful Set Predicate update action.

  • Constructor Details

    • ApprovalRulePredicateSetMessageImpl

      public ApprovalRulePredicateSetMessageImpl()
      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
    • getPredicate

      public String getPredicate()

      Name of the ApprovalRule after the Set Predicate update action.

      Specified by:
      getPredicate in interface ApprovalRulePredicateSetMessage
      Returns:
      predicate
    • getOldPredicate

      public String getOldPredicate()

      Name of the ApprovalRule before the Set Predicate update action.

      Specified by:
      getOldPredicate in interface ApprovalRulePredicateSetMessage
      Returns:
      oldPredicate
    • 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
    • setPredicate

      public void setPredicate(String predicate)
      Description copied from interface: ApprovalRulePredicateSetMessage

      Name of the ApprovalRule after the Set Predicate update action.

      Specified by:
      setPredicate in interface ApprovalRulePredicateSetMessage
      Parameters:
      predicate - value to be set
    • setOldPredicate

      public void setOldPredicate(String oldPredicate)
      Description copied from interface: ApprovalRulePredicateSetMessage

      Name of the ApprovalRule before the Set Predicate update action.

      Specified by:
      setOldPredicate in interface ApprovalRulePredicateSetMessage
      Parameters:
      oldPredicate - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object