Class SNSPayload

java.lang.Object
org.deltava.service.aws.SNSPayload

class SNSPayload extends Object
A class to store Amazon SNS payloads.
Since:
8.5
Version:
8.5
Author:
Luke
  • Constructor Details

    • SNSPayload

      public SNSPayload(String id, String topic, String type)
      Creates the message payload.
      Parameters:
      id - the message ID
      topic - the SNS topic name
      type - the message type
  • Method Details

    • getID

      public String getID()
      Returns the message ID.
      Returns:
      the ID
    • getTopic

      public String getTopic()
      Returns the SNS topic name.
      Returns:
      the topic name
    • getType

      public String getType()
      Returns the message type.
      Returns:
      the type
    • getBody

      public org.json.JSONObject getBody()
      Returns the JSON payload of this message.
      Returns:
      a JSONObject
    • getSignatureVersion

      public int getSignatureVersion()
      Returns the SNS signature version number.
      Returns:
      the signature version, 0 if none or -1 if no body
    • setBody

      public void setBody(org.json.JSONObject jo)
      Updates the message payload.
      Parameters:
      jo - a JSONObject
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object