Class SNSPayload
java.lang.Object
org.deltava.service.aws.SNSPayload
A class to store Amazon SNS payloads.
- Since:
- 8.5
- Version:
- 8.5
- Author:
- Luke
-
Constructor Summary
ConstructorsConstructorDescriptionSNSPayload(String id, String topic, String type) Creates the message payload. -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectgetBody()Returns the JSON payload of this message.getID()Returns the message ID.intReturns the SNS signature version number.getTopic()Returns the SNS topic name.getType()Returns the message type.inthashCode()voidsetBody(org.json.JSONObject jo) Updates the message payload.toString()
-
Constructor Details
-
SNSPayload
-
-
Method Details
-
getID
-
getTopic
-
getType
-
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
-
toString
-