@Generated(value="software.amazon.awssdk:codegen") public final class SnsAction extends Object implements SdkPojo, Serializable, 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() |
MessageFormat |
messageFormat()
(Optional) The message format of the message to publish.
|
String |
messageFormatAsString()
(Optional) The message format of the message to publish.
|
String |
roleArn()
The ARN of the IAM role that grants access.
|
List<SdkField<?>> |
sdkFields() |
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()
(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 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()
(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 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()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.