Class SnsAction
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.SnsAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SnsAction.Builder,SnsAction>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSnsAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnsAction.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MessageFormatmessageFormat()(Optional) The message format of the message to publish.StringmessageFormatAsString()(Optional) The message format of the message to publish.StringroleArn()The ARN of the IAM role that grants access.List<SdkField<?>>sdkFields()static Class<? extends SnsAction.Builder>serializableBuilderClass()StringtargetArn()The ARN of the SNS topic.SnsAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
targetArn
public final String targetArn()
The ARN of the SNS topic.
- Returns:
- The ARN of the SNS topic.
-
roleArn
public final String roleArn()
The ARN of the IAM role that grants access.
- Returns:
- The ARN of the IAM role that grants access.
-
messageFormat
public final 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 https://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,
messageFormatwill returnMessageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommessageFormatAsString().- Returns:
- (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 https://docs.aws .amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
- See Also:
MessageFormat
-
messageFormatAsString
public final 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 https://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,
messageFormatwill returnMessageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommessageFormatAsString().- Returns:
- (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 https://docs.aws .amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
- See Also:
MessageFormat
-
toBuilder
public SnsAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SnsAction.Builder,SnsAction>
-
builder
public static SnsAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends SnsAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-