ToCopyableBuilder<MessageAttributeValue.Builder,MessageAttributeValue>
@Generated("software.amazon.awssdk:codegen") public class MessageAttributeValue extends Object implements 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 | Description |
---|---|---|
static interface |
MessageAttributeValue.Builder |
Modifier and Type | Method | 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() |
Take this object and create a builder that contains all of the current property values of this object.
|
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.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public MessageAttributeValue.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MessageAttributeValue.Builder,MessageAttributeValue>
public static MessageAttributeValue.Builder builder()
public static Class<? extends MessageAttributeValue.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.