public class MessageAttributeValue extends Object implements Serializable
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, 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).
Constructor and Description |
---|
MessageAttributeValue() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<ByteBuffer> |
getBinaryListValues()
Not implemented.
|
ByteBuffer |
getBinaryValue()
Binary type attributes can store any binary data, for example,
compressed data, encrypted data, or images.
|
String |
getDataType()
Amazon SQS supports the following logical data types: String, Number,
and Binary.
|
List<String> |
getStringListValues()
Not implemented.
|
String |
getStringValue()
Strings are Unicode with UTF8 binary encoding.
|
int |
hashCode() |
void |
setBinaryListValues(Collection<ByteBuffer> binaryListValues)
Not implemented.
|
void |
setBinaryValue(ByteBuffer binaryValue)
Binary type attributes can store any binary data, for example,
compressed data, encrypted data, or images.
|
void |
setDataType(String dataType)
Amazon SQS supports the following logical data types: String, Number,
and Binary.
|
void |
setStringListValues(Collection<String> stringListValues)
Not implemented.
|
void |
setStringValue(String stringValue)
Strings are Unicode with UTF8 binary encoding.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageAttributeValue |
withBinaryListValues(ByteBuffer... binaryListValues)
Not implemented.
|
MessageAttributeValue |
withBinaryListValues(Collection<ByteBuffer> binaryListValues)
Not implemented.
|
MessageAttributeValue |
withBinaryValue(ByteBuffer binaryValue)
Binary type attributes can store any binary data, for example,
compressed data, encrypted data, or images.
|
MessageAttributeValue |
withDataType(String dataType)
Amazon SQS supports the following logical data types: String, Number,
and Binary.
|
MessageAttributeValue |
withStringListValues(Collection<String> stringListValues)
Not implemented.
|
MessageAttributeValue |
withStringListValues(String... stringListValues)
Not implemented.
|
MessageAttributeValue |
withStringValue(String stringValue)
Strings are Unicode with UTF8 binary encoding.
|
public String getStringValue()
public void setStringValue(String stringValue)
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 MessageAttributeValue withStringValue(String stringValue)
Returns a reference to this object so that method calls can be chained together.
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 getBinaryValue()
public void setBinaryValue(ByteBuffer binaryValue)
binaryValue
- Binary type attributes can store any binary data, for example,
compressed data, encrypted data, or images.public MessageAttributeValue withBinaryValue(ByteBuffer binaryValue)
Returns a reference to this object so that method calls can be chained together.
binaryValue
- Binary type attributes can store any binary data, for example,
compressed data, encrypted data, or images.public List<String> getStringListValues()
public void setStringListValues(Collection<String> stringListValues)
stringListValues
- Not implemented. Reserved for future use.public MessageAttributeValue withStringListValues(String... stringListValues)
Returns a reference to this object so that method calls can be chained together.
stringListValues
- Not implemented. Reserved for future use.public MessageAttributeValue withStringListValues(Collection<String> stringListValues)
Returns a reference to this object so that method calls can be chained together.
stringListValues
- Not implemented. Reserved for future use.public List<ByteBuffer> getBinaryListValues()
public void setBinaryListValues(Collection<ByteBuffer> binaryListValues)
binaryListValues
- Not implemented. Reserved for future use.public MessageAttributeValue withBinaryListValues(ByteBuffer... binaryListValues)
Returns a reference to this object so that method calls can be chained together.
binaryListValues
- Not implemented. Reserved for future use.public MessageAttributeValue withBinaryListValues(Collection<ByteBuffer> binaryListValues)
Returns a reference to this object so that method calls can be chained together.
binaryListValues
- Not implemented. Reserved for future use.public String getDataType()
public void setDataType(String dataType)
dataType
- Amazon SQS supports the following logical data types: String, Number,
and Binary. In addition, you can append your own custom labels. For
more information, see Message
Attribute Data Types.public MessageAttributeValue withDataType(String dataType)
Returns a reference to this object so that method calls can be chained together.
dataType
- Amazon SQS supports the following logical data types: String, Number,
and Binary. In addition, you can append your own custom labels. For
more information, see Message
Attribute Data Types.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.