public static class SNSEvent.SNS extends Object implements Serializable, Cloneable
Constructor and Description |
---|
SNS()
default constructor
(Not available in v1)
|
Modifier and Type | Method and Description |
---|---|
SNSEvent.SNS |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
Gets the message
|
Map<String,SNSEvent.MessageAttribute> |
getMessageAttributes()
Gets the attributes associated with the message
|
String |
getMessageId()
Gets the message id
|
String |
getSignature()
Gets the message signature
|
String |
getSignatureVersion()
Gets the signature version used to sign the message
|
String |
getSigningCertUrl()
Gets the URL for the signing certificate
|
String |
getSubject()
Gets the subject for the message
|
org.joda.time.DateTime |
getTimestamp()
Gets the message time stamp
|
String |
getTopicArn()
Gets the topic ARN
|
String |
getType()
Gets the message type
|
String |
getUnsubscribeUrl()
Gets the message unsubscribe URL
|
int |
hashCode() |
void |
setMessage(String message)
Sets the message
|
void |
setMessageAttributes(Map<String,SNSEvent.MessageAttribute> messageAttributes)
Sets the attributes associated with the message
|
void |
setMessageId(String messageId)
Sets the message id
|
void |
setSignature(String signature)
Sets the message signature
|
void |
setSignatureVersion(String signatureVersion)
The signature version used to sign the message
|
void |
setSigningCertUrl(String signingCertUrl)
Sets the URL for the signing certificate
|
void |
setSubject(String subject)
Sets the subject for the message
|
void |
setTimestamp(org.joda.time.DateTime timestamp)
Sets the message time stamp
|
void |
setTopicArn(String topicArn)
Sets the topic ARN
|
void |
setType(String type)
Sets the message type
|
void |
setUnsubscribeUrl(String unsubscribeUrl)
Sets the message unsubscribe URL
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SNSEvent.SNS |
withMessage(String message) |
SNSEvent.SNS |
withMessageAttributes(Map<String,SNSEvent.MessageAttribute> messageAttributes) |
SNSEvent.SNS |
withMessageId(String messageId) |
SNSEvent.SNS |
withSignature(String signature) |
SNSEvent.SNS |
withSignatureVersion(String signatureVersion) |
SNSEvent.SNS |
withSigningCertUrl(String signingCertUrl) |
SNSEvent.SNS |
withSubject(String subject) |
SNSEvent.SNS |
withTimestamp(org.joda.time.DateTime timestamp) |
SNSEvent.SNS |
withTopicArn(String topicArn) |
SNSEvent.SNS |
withType(String type) |
SNSEvent.SNS |
withUnsubscribeUrl(String unsubscribeUrl) |
public Map<String,SNSEvent.MessageAttribute> getMessageAttributes()
public void setMessageAttributes(Map<String,SNSEvent.MessageAttribute> messageAttributes)
messageAttributes
- A map object with string and message attribute key/value pairspublic SNSEvent.SNS withMessageAttributes(Map<String,SNSEvent.MessageAttribute> messageAttributes)
messageAttributes
- message attributespublic String getSigningCertUrl()
public void setSigningCertUrl(String signingCertUrl)
signingCertUrl
- A string containing a URLpublic SNSEvent.SNS withSigningCertUrl(String signingCertUrl)
signingCertUrl
- signing cert urlpublic String getMessageId()
public void setMessageId(String messageId)
messageId
- A string containing the message IDpublic SNSEvent.SNS withMessageId(String messageId)
messageId
- message idpublic String getMessage()
public void setMessage(String message)
message
- A string containing the message bodypublic SNSEvent.SNS withMessage(String message)
message
- string messagepublic String getSubject()
public void setSubject(String subject)
subject
- A string containing the message subjectpublic SNSEvent.SNS withSubject(String subject)
subject
- subject of messagepublic String getUnsubscribeUrl()
public void setUnsubscribeUrl(String unsubscribeUrl)
unsubscribeUrl
- A string with the URLpublic SNSEvent.SNS withUnsubscribeUrl(String unsubscribeUrl)
unsubscribeUrl
- unsubscribe urlpublic String getType()
public void setType(String type)
type
- A string containing the message typepublic SNSEvent.SNS withType(String type)
type
- typepublic String getSignatureVersion()
public void setSignatureVersion(String signatureVersion)
signatureVersion
- A string containing the signature versionpublic SNSEvent.SNS withSignatureVersion(String signatureVersion)
signatureVersion
- signature versionpublic String getSignature()
public void setSignature(String signature)
signature
- A string containing the message signaturepublic SNSEvent.SNS withSignature(String signature)
signature
- signaturepublic org.joda.time.DateTime getTimestamp()
public void setTimestamp(org.joda.time.DateTime timestamp)
timestamp
- A Date object representing the message time stamppublic SNSEvent.SNS withTimestamp(org.joda.time.DateTime timestamp)
timestamp
- timestamppublic String getTopicArn()
public void setTopicArn(String topicArn)
topicArn
- A string containing the topic ARNpublic SNSEvent.SNS withTopicArn(String topicArn)
topicArn
- topic ARNpublic String toString()
toString
in class Object
Object.toString()
public SNSEvent.SNS clone()
Copyright © 2018. All rights reserved.