@Generated(value="software.amazon.awssdk:codegen") public final class SnsAction extends Object implements StructuredPojo, ToCopyableBuilder<SnsAction.Builder,SnsAction>
Describes an action to publish to an Amazon SNS topic.
Modifier and Type | Class and Description |
---|---|
static interface |
SnsAction.Builder |
Modifier and Type | Method and Description |
---|---|
static SnsAction.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
MessageFormat |
messageFormat()
The message format of the message to publish.
|
String |
messageFormatAsString()
The message format of the message to publish.
|
String |
roleArn()
The ARN of the IAM role that grants access.
|
static Class<? extends SnsAction.Builder> |
serializableBuilderClass() |
String |
targetArn()
The ARN of the SNS topic.
|
SnsAction.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String targetArn()
The ARN of the SNS topic.
public String roleArn()
The ARN of the IAM role that grants access.
public 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.
If the service returns an enum value that is not available in the current SDK version, messageFormat
will return MessageFormat.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
messageFormatAsString()
.
MessageFormat
public String messageFormatAsString()
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.
If the service returns an enum value that is not available in the current SDK version, messageFormat
will return MessageFormat.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
messageFormatAsString()
.
MessageFormat
public SnsAction.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SnsAction.Builder,SnsAction>
public static SnsAction.Builder builder()
public static Class<? extends SnsAction.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.