public class SnsAction extends Object implements Serializable
Describes an action to publish to an Amazon SNS topic.
| Constructor and Description |
|---|
SnsAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getMessageFormat()
The message format of the message to publish.
|
String |
getRoleArn()
The ARN of the IAM role that grants access.
|
String |
getTargetArn()
The ARN of the SNS topic.
|
int |
hashCode() |
void |
setMessageFormat(MessageFormat messageFormat)
The message format of the message to publish.
|
void |
setMessageFormat(String messageFormat)
The message format of the message to publish.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM role that grants access.
|
void |
setTargetArn(String targetArn)
The ARN of the SNS topic.
|
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(String messageFormat)
The message format of the message to publish.
|
SnsAction |
withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
|
SnsAction |
withTargetArn(String targetArn)
The ARN of the SNS topic.
|
public String getTargetArn()
public void setTargetArn(String targetArn)
targetArn - The ARN of the SNS topic.public SnsAction withTargetArn(String targetArn)
Returns a reference to this object so that method calls can be chained together.
targetArn - The ARN of the SNS topic.public String getRoleArn()
public void setRoleArn(String roleArn)
roleArn - The ARN of the IAM role that grants access.public SnsAction withRoleArn(String roleArn)
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 String getMessageFormat()
Constraints:
Allowed Values: RAW, JSON
MessageFormatpublic void setMessageFormat(String messageFormat)
Constraints:
Allowed Values: RAW, JSON
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.MessageFormatpublic SnsAction withMessageFormat(String messageFormat)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RAW, JSON
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.MessageFormatpublic void setMessageFormat(MessageFormat messageFormat)
Constraints:
Allowed Values: RAW, JSON
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.MessageFormatpublic SnsAction withMessageFormat(MessageFormat messageFormat)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RAW, JSON
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.MessageFormatpublic String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.