@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SnsAction extends Object implements Serializable, Cloneable, StructuredPojo
Describes an action to publish to an Amazon SNS topic.
Constructor and Description |
---|
SnsAction() |
Modifier and Type | Method and Description |
---|---|
SnsAction |
clone() |
boolean |
equals(Object obj) |
String |
getMessageFormat()
(Optional) 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMessageFormat(MessageFormat messageFormat)
(Optional) The message format of the message to publish.
|
void |
setMessageFormat(String messageFormat)
(Optional) 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.
|
SnsAction |
withMessageFormat(MessageFormat messageFormat)
(Optional) The message format of the message to publish.
|
SnsAction |
withMessageFormat(String messageFormat)
(Optional) 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 void setTargetArn(String targetArn)
The ARN of the SNS topic.
targetArn
- The ARN of the SNS topic.public String getTargetArn()
The ARN of the SNS topic.
public SnsAction withTargetArn(String targetArn)
The ARN of the SNS topic.
targetArn
- The ARN of the SNS topic.public void setRoleArn(String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public String getRoleArn()
The ARN of the IAM role that grants access.
public SnsAction withRoleArn(String roleArn)
The ARN of the IAM role that grants access.
roleArn
- The ARN of the IAM role that grants access.public void setMessageFormat(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.
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.MessageFormat
public 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.
MessageFormat
public SnsAction withMessageFormat(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.
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.MessageFormat
public 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.
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.MessageFormat
public 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.
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.MessageFormat
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.