@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()
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)
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 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)
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 http://docs.aws.amazon.com/sns/latest/dg/json-formats.html 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 http://docs.aws.amazon.com
/sns/latest/dg/json-formats.html refer to their official documentation.MessageFormat
public 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 http://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
MessageFormat
public SnsAction withMessageFormat(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 http://docs.aws.amazon.com/sns/latest/dg/json-formats.html 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 http://docs.aws.amazon.com
/sns/latest/dg/json-formats.html 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 http://docs.aws.amazon.com/sns/latest/dg/json-formats.html 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 http://docs.aws.amazon.com
/sns/latest/dg/json-formats.html 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 http://docs.aws.amazon.com/sns/latest/dg/json-formats.html 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 http://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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.