Class WebhookMessage

java.lang.Object
dev.vality.webhook.dispatcher.WebhookMessage
All Implemented Interfaces:
Serializable, Cloneable, Comparable<WebhookMessage>, org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-02-21")
public class WebhookMessage
extends Object
implements org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>, Serializable, Cloneable, Comparable<WebhookMessage>
See Also:
Serialized Form
  • Field Details

    • webhook_id

      public long webhook_id
    • source_id

      public String source_id
    • event_id

      public long event_id
    • parent_event_id

      public long parent_event_id
    • created_at

      public String created_at
    • url

      public String url
    • content_type

      public String content_type
    • additional_headers

      public Map<String,​String> additional_headers
    • request_body

      public ByteBuffer request_body
    • retry_count

      public long retry_count
    • metaDataMap

      public static final Map<WebhookMessage._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • WebhookMessage

      public WebhookMessage()
    • WebhookMessage

      public WebhookMessage​(long webhook_id, String source_id, long event_id, long parent_event_id, String created_at, String url, String content_type, Map<String,​String> additional_headers, ByteBuffer request_body)
    • WebhookMessage

      public WebhookMessage​(WebhookMessage other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public WebhookMessage deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>
    • getWebhookId

      public long getWebhookId()
    • setWebhookId

      public WebhookMessage setWebhookId​(long webhook_id)
    • unsetWebhookId

      public void unsetWebhookId()
    • isSetWebhookId

      public boolean isSetWebhookId()
      Returns true if field webhook_id is set (has been assigned a value) and false otherwise
    • setWebhookIdIsSet

      public void setWebhookIdIsSet​(boolean value)
    • getSourceId

      public String getSourceId()
    • setSourceId

      public WebhookMessage setSourceId​(String source_id)
    • unsetSourceId

      public void unsetSourceId()
    • isSetSourceId

      public boolean isSetSourceId()
      Returns true if field source_id is set (has been assigned a value) and false otherwise
    • setSourceIdIsSet

      public void setSourceIdIsSet​(boolean value)
    • getEventId

      public long getEventId()
    • setEventId

      public WebhookMessage setEventId​(long event_id)
    • unsetEventId

      public void unsetEventId()
    • isSetEventId

      public boolean isSetEventId()
      Returns true if field event_id is set (has been assigned a value) and false otherwise
    • setEventIdIsSet

      public void setEventIdIsSet​(boolean value)
    • getParentEventId

      public long getParentEventId()
    • setParentEventId

      public WebhookMessage setParentEventId​(long parent_event_id)
    • unsetParentEventId

      public void unsetParentEventId()
    • isSetParentEventId

      public boolean isSetParentEventId()
      Returns true if field parent_event_id is set (has been assigned a value) and false otherwise
    • setParentEventIdIsSet

      public void setParentEventIdIsSet​(boolean value)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public WebhookMessage setCreatedAt​(String created_at)
    • unsetCreatedAt

      public void unsetCreatedAt()
    • isSetCreatedAt

      public boolean isSetCreatedAt()
      Returns true if field created_at is set (has been assigned a value) and false otherwise
    • setCreatedAtIsSet

      public void setCreatedAtIsSet​(boolean value)
    • getUrl

      public String getUrl()
    • setUrl

      public WebhookMessage setUrl​(String url)
    • unsetUrl

      public void unsetUrl()
    • isSetUrl

      public boolean isSetUrl()
      Returns true if field url is set (has been assigned a value) and false otherwise
    • setUrlIsSet

      public void setUrlIsSet​(boolean value)
    • getContentType

      public String getContentType()
    • setContentType

      public WebhookMessage setContentType​(String content_type)
    • unsetContentType

      public void unsetContentType()
    • isSetContentType

      public boolean isSetContentType()
      Returns true if field content_type is set (has been assigned a value) and false otherwise
    • setContentTypeIsSet

      public void setContentTypeIsSet​(boolean value)
    • getAdditionalHeadersSize

      public int getAdditionalHeadersSize()
    • putToAdditionalHeaders

      public void putToAdditionalHeaders​(String key, String val)
    • getAdditionalHeaders

      public Map<String,​String> getAdditionalHeaders()
    • setAdditionalHeaders

      public WebhookMessage setAdditionalHeaders​(Map<String,​String> additional_headers)
    • unsetAdditionalHeaders

      public void unsetAdditionalHeaders()
    • isSetAdditionalHeaders

      public boolean isSetAdditionalHeaders()
      Returns true if field additional_headers is set (has been assigned a value) and false otherwise
    • setAdditionalHeadersIsSet

      public void setAdditionalHeadersIsSet​(boolean value)
    • getRequestBody

      public byte[] getRequestBody()
    • bufferForRequestBody

      public ByteBuffer bufferForRequestBody()
    • setRequestBody

      public WebhookMessage setRequestBody​(byte[] request_body)
    • setRequestBody

      public WebhookMessage setRequestBody​(ByteBuffer request_body)
    • unsetRequestBody

      public void unsetRequestBody()
    • isSetRequestBody

      public boolean isSetRequestBody()
      Returns true if field request_body is set (has been assigned a value) and false otherwise
    • setRequestBodyIsSet

      public void setRequestBodyIsSet​(boolean value)
    • getRetryCount

      public long getRetryCount()
    • setRetryCount

      public WebhookMessage setRetryCount​(long retry_count)
    • unsetRetryCount

      public void unsetRetryCount()
    • isSetRetryCount

      public boolean isSetRetryCount()
      Returns true if field retry_count is set (has been assigned a value) and false otherwise
    • setRetryCountIsSet

      public void setRetryCountIsSet​(boolean value)
    • setFieldValue

      public void setFieldValue​(WebhookMessage._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>
    • getFieldValue

      public Object getFieldValue​(WebhookMessage._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>
    • isSet

      public boolean isSet​(WebhookMessage._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>
    • equals

      public boolean equals​(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(WebhookMessage that)
    • hashCode

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

      public int compareTo​(WebhookMessage other)
      Specified by:
      compareTo in interface Comparable<WebhookMessage>
    • fieldForId

      public WebhookMessage._Fields fieldForId​(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<WebhookMessage,​WebhookMessage._Fields>
    • getFields

      public WebhookMessage._Fields[] getFields()
    • getFieldMetaData

      public Map<WebhookMessage._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
    • read

      public void read​(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException