public class SnsAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an action to publish to an Amazon SNS topic.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
messageFormat
The message format of the message to publish.
|
private java.lang.String |
roleArn
The ARN of the IAM role that grants access.
|
private java.lang.String |
targetArn
The ARN of the SNS topic.
|
Constructor and Description |
---|
SnsAction() |
Modifier and Type | Method and Description |
---|---|
SnsAction |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessageFormat()
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)
The message format of the message to publish.
|
void |
setMessageFormat(java.lang.String messageFormat)
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)
The message format of the message to publish.
|
SnsAction |
withMessageFormat(java.lang.String messageFormat)
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.
|
private java.lang.String targetArn
The ARN of the SNS topic.
private java.lang.String roleArn
The ARN of the IAM role that grants access.
private java.lang.String messageFormat
The message format of the message to publish. Optional. 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 refer to their official documentation.
public void setTargetArn(java.lang.String targetArn)
The ARN of the SNS topic.
targetArn
- The ARN of the SNS topic.public java.lang.String getTargetArn()
The ARN of the SNS topic.
public SnsAction withTargetArn(java.lang.String targetArn)
The ARN of the SNS topic.
targetArn
- The ARN of the SNS topic.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 java.lang.String getRoleArn()
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.
roleArn
- The ARN of the IAM role that grants access.public void setMessageFormat(java.lang.String messageFormat)
The message format of the message to publish. Optional. 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 refer to their official documentation.
messageFormat
- The message format of the message to publish. Optional. 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
refer to their official documentation.MessageFormat
public java.lang.String getMessageFormat()
The message format of the message to publish. Optional. 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 refer to their official documentation.
MessageFormat
public SnsAction withMessageFormat(java.lang.String messageFormat)
The message format of the message to publish. Optional. 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 refer to their official documentation.
messageFormat
- The message format of the message to publish. Optional. 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
refer to their official documentation.MessageFormat
public void setMessageFormat(MessageFormat messageFormat)
The message format of the message to publish. Optional. 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 refer to their official documentation.
messageFormat
- The message format of the message to publish. Optional. 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
refer to their official documentation.MessageFormat
public SnsAction withMessageFormat(MessageFormat messageFormat)
The message format of the message to publish. Optional. 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 refer to their official documentation.
messageFormat
- The message format of the message to publish. Optional. 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
refer to their official documentation.MessageFormat
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SnsAction clone()
clone
in class java.lang.Object