public class SnsAction
extends java.lang.Object
implements java.io.Serializable
Describes an action to publish to an Amazon SNS topic.
| Constructor and Description | 
|---|
| SnsAction() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| java.lang.String | getMessageFormat()
 (Optional) The message format of the message to publish. | 
| java.lang.String | getRoleArn()
 The ARN of the IAM role that grants access. | 
| java.lang.String | getTargetArn()
 The ARN of the SNS topic. | 
| int | hashCode() | 
| void | setMessageFormat(MessageFormat messageFormat)
 (Optional) The message format of the message to publish. | 
| void | setMessageFormat(java.lang.String messageFormat)
 (Optional) The message format of the message to publish. | 
| void | setRoleArn(java.lang.String roleArn)
 The ARN of the IAM role that grants access. | 
| void | setTargetArn(java.lang.String targetArn)
 The ARN of the SNS topic. | 
| java.lang.String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| SnsAction | withMessageFormat(MessageFormat messageFormat)
 (Optional) The message format of the message to publish. | 
| SnsAction | withMessageFormat(java.lang.String messageFormat)
 (Optional) The message format of the message to publish. | 
| SnsAction | withRoleArn(java.lang.String roleArn)
 The ARN of the IAM role that grants access. | 
| SnsAction | withTargetArn(java.lang.String targetArn)
 The ARN of the SNS topic. | 
public java.lang.String getTargetArn()
The ARN of the SNS topic.
The ARN of the SNS topic.
public void setTargetArn(java.lang.String targetArn)
The ARN of the SNS topic.
targetArn - The ARN of the SNS topic.
public SnsAction withTargetArn(java.lang.String targetArn)
The ARN of the SNS topic.
Returns a reference to this object so that method calls can be chained together.
targetArn - The ARN of the SNS topic.
public java.lang.String getRoleArn()
The ARN of the IAM role that grants access.
The ARN of the IAM role that grants access.
public void setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
roleArn - The ARN of the IAM role that grants access.
public SnsAction withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access.
Returns a reference to this object so that method calls can be chained together.
roleArn - The ARN of the IAM role that grants access.
public java.lang.String getMessageFormat()
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
 Constraints:
 Allowed Values: RAW, JSON
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
MessageFormatpublic void setMessageFormat(java.lang.String messageFormat)
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
 Constraints:
 Allowed Values: RAW, JSON
messageFormat - (Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https ://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
MessageFormatpublic SnsAction withMessageFormat(java.lang.String messageFormat)
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: RAW, JSON
messageFormat - (Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https ://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
MessageFormatpublic void setMessageFormat(MessageFormat messageFormat)
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
 Constraints:
 Allowed Values: RAW, JSON
messageFormat - (Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https ://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
MessageFormatpublic SnsAction withMessageFormat(MessageFormat messageFormat)
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: RAW, JSON
messageFormat - (Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https ://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
MessageFormatpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.