Record Class BrokerTypes.BrokerEvent

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

public static record BrokerTypes.BrokerEvent(String id, String eventType, BrokerTypes.BrokerEventCategory category, String topic, String brokerTag, String message, Date timestamp, BrokerTypes.BrokerEventStatus status, boolean idempotent, Map<String,Object> requestData, Map<String,Object> responseData, BrokerTypes.BrokerEventMetadata metadata, String productTag, String env, String processId) extends Record
  • Constructor Details

    • BrokerEvent

      public BrokerEvent(String id, String eventType, BrokerTypes.BrokerEventCategory category, String topic, String brokerTag, String message, Date timestamp, BrokerTypes.BrokerEventStatus status, boolean idempotent, Map<String,Object> requestData, Map<String,Object> responseData, BrokerTypes.BrokerEventMetadata metadata, String productTag, String env, String processId)
      Creates an instance of a BrokerEvent record class.
      Parameters:
      id - the value for the id record component
      eventType - the value for the eventType record component
      category - the value for the category record component
      topic - the value for the topic record component
      brokerTag - the value for the brokerTag record component
      message - the value for the message record component
      timestamp - the value for the timestamp record component
      status - the value for the status record component
      idempotent - the value for the idempotent record component
      requestData - the value for the requestData record component
      responseData - the value for the responseData record component
      metadata - the value for the metadata record component
      productTag - the value for the productTag record component
      env - the value for the env record component
      processId - the value for the processId 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • eventType

      public String eventType()
      Returns the value of the eventType record component.
      Returns:
      the value of the eventType record component
    • category

      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • topic

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

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

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • timestamp

      public Date timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • status

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

      public boolean idempotent()
      Returns the value of the idempotent record component.
      Returns:
      the value of the idempotent record component
    • requestData

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

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

      Returns the value of the metadata record component.
      Returns:
      the value of the metadata 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
    • processId

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