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 SendMessage.
Name
, type
, value
and the message body must not be empty or null. All parts of
the message attribute, including Name
, Type
, and Value
, are part of the
message size restriction (256 KB or 262,144 bytes).
Modifier and Type | Class | Description |
---|---|---|
static interface |
MessageAttributeValue.Builder |
Modifier and Type | Method | Description |
---|---|---|
List<ByteBuffer> |
binaryListValues() |
Not implemented.
|
ByteBuffer |
binaryValue() |
Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.
|
static MessageAttributeValue.Builder |
builder() |
|
String |
dataType() |
Amazon SQS supports the following logical data types:
String , Number , and
Binary . |
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
static Class<? extends MessageAttributeValue.Builder> |
serializableBuilderClass() |
|
List<String> |
stringListValues() |
Not implemented.
|
String |
stringValue() |
Strings are Unicode with UTF-8 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 stringValue()
Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.
public ByteBuffer binaryValue()
Binary type attributes can store any binary data, such as 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 List<String> stringListValues()
Not implemented. Reserved for future use.
public List<ByteBuffer> binaryListValues()
Not implemented. Reserved for future use.
public String dataType()
Amazon SQS supports the following logical data types: String
, Number
, and
Binary
. For the Number
data type, you must use StringValue
.
You can also append custom labels. For more information, see Message Attribute Data Types and Validation in the Amazon SQS Developer Guide.
String
, Number
, and
Binary
. For the Number
data type, you must use StringValue
.
You can also append custom labels. For more information, see Message Attribute Data Types and Validation in the Amazon SQS Developer Guide.
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.