StructuredPojo, ToCopyableBuilder<SnsAction.Builder,SnsAction>@Generated("software.amazon.awssdk:codegen") public class SnsAction extends Object implements StructuredPojo, ToCopyableBuilder<SnsAction.Builder,SnsAction>
Describes an action to publish to an Amazon SNS topic.
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
SnsAction.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static SnsAction.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller. |
String |
messageFormat() |
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() |
public String targetArn()
The ARN of the SNS topic.
public String roleArn()
The ARN of the IAM role that grants access.
public 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.
MessageFormatpublic SnsAction.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<SnsAction.Builder,SnsAction>public static SnsAction.Builder builder()
public static Class<? extends SnsAction.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.