Record Class BrokerTypes.BrokerMessage

java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerMessage
Enclosing class:
BrokerTypes

public static record BrokerTypes.BrokerMessage(String id, String messageId, String idempotencyKey, String workspaceId, String productId, String productTag, String env, String brokerTag, String topicTag, String event, String producerTag, String messageEncrypted, Map<String,Object> messageDecrypted, BrokerTypes.BrokerMessageStatus status, Date producedAt, List<BrokerTypes.BrokerMessageConsumerDelivery> consumerDeliveries, String processId, String sessionTag, Map<String,Object> metadata, Date createdAt, Date updatedAt) extends Record
  • Constructor Details

    • BrokerMessage

      public BrokerMessage(String id, String messageId, String idempotencyKey, String workspaceId, String productId, String productTag, String env, String brokerTag, String topicTag, String event, String producerTag, String messageEncrypted, Map<String,Object> messageDecrypted, BrokerTypes.BrokerMessageStatus status, Date producedAt, List<BrokerTypes.BrokerMessageConsumerDelivery> consumerDeliveries, String processId, String sessionTag, Map<String,Object> metadata, Date createdAt, Date updatedAt)
      Creates an instance of a BrokerMessage record class.
      Parameters:
      id - the value for the id record component
      messageId - the value for the messageId record component
      idempotencyKey - the value for the idempotencyKey record component
      workspaceId - the value for the workspaceId record component
      productId - the value for the productId record component
      productTag - the value for the productTag record component
      env - the value for the env record component
      brokerTag - the value for the brokerTag record component
      topicTag - the value for the topicTag record component
      event - the value for the event record component
      producerTag - the value for the producerTag record component
      messageEncrypted - the value for the messageEncrypted record component
      messageDecrypted - the value for the messageDecrypted record component
      status - the value for the status record component
      producedAt - the value for the producedAt record component
      consumerDeliveries - the value for the consumerDeliveries record component
      processId - the value for the processId record component
      sessionTag - the value for the sessionTag record component
      metadata - the value for the metadata record component
      createdAt - the value for the createdAt record component
      updatedAt - the value for the updatedAt record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • messageId

      public String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • idempotencyKey

      public String idempotencyKey()
      Returns the value of the idempotencyKey record component.
      Returns:
      the value of the idempotencyKey record component
    • workspaceId

      public String workspaceId()
      Returns the value of the workspaceId record component.
      Returns:
      the value of the workspaceId record component
    • productId

      public String productId()
      Returns the value of the productId record component.
      Returns:
      the value of the productId record component
    • productTag

      public String productTag()
      Returns the value of the productTag record component.
      Returns:
      the value of the productTag record component
    • env

      public String env()
      Returns the value of the env record component.
      Returns:
      the value of the env record component
    • brokerTag

      public String brokerTag()
      Returns the value of the brokerTag record component.
      Returns:
      the value of the brokerTag record component
    • topicTag

      public String topicTag()
      Returns the value of the topicTag record component.
      Returns:
      the value of the topicTag record component
    • event

      public String event()
      Returns the value of the event record component.
      Returns:
      the value of the event record component
    • producerTag

      public String producerTag()
      Returns the value of the producerTag record component.
      Returns:
      the value of the producerTag record component
    • messageEncrypted

      public String messageEncrypted()
      Returns the value of the messageEncrypted record component.
      Returns:
      the value of the messageEncrypted record component
    • messageDecrypted

      public Map<String,Object> messageDecrypted()
      Returns the value of the messageDecrypted record component.
      Returns:
      the value of the messageDecrypted record component
    • status

      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • producedAt

      public Date producedAt()
      Returns the value of the producedAt record component.
      Returns:
      the value of the producedAt record component
    • consumerDeliveries

      public List<BrokerTypes.BrokerMessageConsumerDelivery> consumerDeliveries()
      Returns the value of the consumerDeliveries record component.
      Returns:
      the value of the consumerDeliveries record component
    • processId

      public String processId()
      Returns the value of the processId record component.
      Returns:
      the value of the processId record component
    • sessionTag

      public String sessionTag()
      Returns the value of the sessionTag record component.
      Returns:
      the value of the sessionTag record component
    • metadata

      public Map<String,Object> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • createdAt

      public Date createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • updatedAt

      public Date updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component