Class SnsAction
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an action to publish to an Amazon SNS topic.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The message format of the message to publish.The ARN of the IAM role that grants access.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.toString()
Returns a string representation of this object; useful for testing and debugging.withMessageFormat
(MessageFormat messageFormat) The message format of the message to publish.withMessageFormat
(String messageFormat) The message format of the message to publish.withRoleArn
(String roleArn) The ARN of the IAM role that grants access.withTargetArn
(String targetArn) The ARN of the SNS topic.
-
Constructor Details
-
SnsAction
public SnsAction()
-
-
Method Details
-
setTargetArn
The ARN of the SNS topic.
- Parameters:
targetArn
- The ARN of the SNS topic.
-
getTargetArn
The ARN of the SNS topic.
- Returns:
- The ARN of the SNS topic.
-
withTargetArn
The ARN of the SNS topic.
- Parameters:
targetArn
- The ARN of the SNS topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
The ARN of the IAM role that grants access.
- Parameters:
roleArn
- The ARN of the IAM role that grants access.
-
getRoleArn
The ARN of the IAM role that grants access.
- Returns:
- The ARN of the IAM role that grants access.
-
withRoleArn
The ARN of the IAM role that grants access.
- Parameters:
roleArn
- The ARN of the IAM role that grants access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessageFormat
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.
- Parameters:
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.- See Also:
-
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.
- Returns:
- 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.
- See Also:
-
withMessageFormat
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setMessageFormat
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.
- Parameters:
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.- See Also:
-
withMessageFormat
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-