@Generated(value="software.amazon.awssdk:codegen") public class MessageAttributeValue extends Object implements software.amazon.awssdk.utils.builder.ToCopyableBuilder<MessageAttributeValue.Builder,MessageAttributeValue>
The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see Publish.
Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes). For more information, see Using Amazon SNS Message Attributes.
Modifier and Type | Class and Description |
---|---|
static interface |
MessageAttributeValue.Builder |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
binaryValue()
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
|
static MessageAttributeValue.Builder |
builder() |
String |
dataType()
Amazon SNS supports the following logical data types: String, Number, and Binary.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static Class<? extends MessageAttributeValue.Builder> |
serializableBuilderClass() |
String |
stringValue()
Strings are Unicode with UTF8 binary encoding.
|
MessageAttributeValue.Builder |
toBuilder() |
String |
toString() |
public String dataType()
Amazon SNS supports the following logical data types: String, Number, and Binary. For more information, see Message Attribute Data Types.
public String stringValue()
Strings are Unicode with UTF8 binary encoding. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.
public ByteBuffer binaryValue()
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
This method will return a new read-only ByteBuffer
each time it is invoked.
public MessageAttributeValue.Builder toBuilder()
toBuilder
in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<MessageAttributeValue.Builder,MessageAttributeValue>
public static MessageAttributeValue.Builder builder()
public static Class<? extends MessageAttributeValue.Builder> serializableBuilderClass()
Copyright © 2017. All rights reserved.