public class MessageAttributeValue
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.util.List<java.nio.ByteBuffer> |
getBinaryListValues()
Not implemented.
|
java.nio.ByteBuffer |
getBinaryValue()
Binary type attributes can store any binary data, for example, compressed
data, encrypted data, or images.
|
java.lang.String |
getDataType()
Amazon SQS supports the following logical data types: String, Number, and
Binary.
|
java.util.List<java.lang.String> |
getStringListValues()
Not implemented.
|
java.lang.String |
getStringValue()
Strings are Unicode with UTF8 binary encoding.
|
int |
hashCode() |
void |
setBinaryListValues(java.util.Collection<java.nio.ByteBuffer> binaryListValues)
Not implemented.
|
void |
setBinaryValue(java.nio.ByteBuffer binaryValue)
Binary type attributes can store any binary data, for example, compressed
data, encrypted data, or images.
|
void |
setDataType(java.lang.String dataType)
Amazon SQS supports the following logical data types: String, Number, and
Binary.
|
void |
setStringListValues(java.util.Collection<java.lang.String> stringListValues)
Not implemented.
|
void |
setStringValue(java.lang.String stringValue)
Strings are Unicode with UTF8 binary encoding.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageAttributeValue |
withBinaryListValues(java.nio.ByteBuffer... binaryListValues)
Not implemented.
|
MessageAttributeValue |
withBinaryListValues(java.util.Collection<java.nio.ByteBuffer> binaryListValues)
Not implemented.
|
MessageAttributeValue |
withBinaryValue(java.nio.ByteBuffer binaryValue)
Binary type attributes can store any binary data, for example, compressed
data, encrypted data, or images.
|
MessageAttributeValue |
withDataType(java.lang.String dataType)
Amazon SQS supports the following logical data types: String, Number, and
Binary.
|
MessageAttributeValue |
withStringListValues(java.util.Collection<java.lang.String> stringListValues)
Not implemented.
|
MessageAttributeValue |
withStringListValues(java.lang.String... stringListValues)
Not implemented.
|
MessageAttributeValue |
withStringValue(java.lang.String stringValue)
Strings are Unicode with UTF8 binary encoding.
|
public java.lang.String getStringValue()
Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
public void setStringValue(java.lang.String stringValue)
Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
stringValue
- Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
public MessageAttributeValue withStringValue(java.lang.String stringValue)
Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
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 ASCII Printable Characters.
public java.nio.ByteBuffer getBinaryValue()
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
public void setBinaryValue(java.nio.ByteBuffer binaryValue)
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
binaryValue
- Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
public MessageAttributeValue withBinaryValue(java.nio.ByteBuffer binaryValue)
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
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 java.util.List<java.lang.String> getStringListValues()
Not implemented. Reserved for future use.
Not implemented. Reserved for future use.
public void setStringListValues(java.util.Collection<java.lang.String> stringListValues)
Not implemented. Reserved for future use.
stringListValues
- Not implemented. Reserved for future use.
public MessageAttributeValue withStringListValues(java.lang.String... stringListValues)
Not implemented. Reserved for future use.
Returns a reference to this object so that method calls can be chained together.
stringListValues
- Not implemented. Reserved for future use.
public MessageAttributeValue withStringListValues(java.util.Collection<java.lang.String> stringListValues)
Not implemented. Reserved for future use.
Returns a reference to this object so that method calls can be chained together.
stringListValues
- Not implemented. Reserved for future use.
public java.util.List<java.nio.ByteBuffer> getBinaryListValues()
Not implemented. Reserved for future use.
Not implemented. Reserved for future use.
public void setBinaryListValues(java.util.Collection<java.nio.ByteBuffer> binaryListValues)
Not implemented. Reserved for future use.
binaryListValues
- Not implemented. Reserved for future use.
public MessageAttributeValue withBinaryListValues(java.nio.ByteBuffer... binaryListValues)
Not implemented. Reserved for future use.
Returns a reference to this object so that method calls can be chained together.
binaryListValues
- Not implemented. Reserved for future use.
public MessageAttributeValue withBinaryListValues(java.util.Collection<java.nio.ByteBuffer> binaryListValues)
Not implemented. Reserved for future use.
Returns a reference to this object so that method calls can be chained together.
binaryListValues
- Not implemented. Reserved for future use.
public java.lang.String getDataType()
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 in the Amazon SQS Developer Guide.
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 in the Amazon SQS Developer Guide.
public void setDataType(java.lang.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 in the Amazon SQS Developer Guide.
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 in the Amazon SQS Developer Guide.
public MessageAttributeValue withDataType(java.lang.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 in the Amazon SQS Developer Guide.
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. For the Number data type, you must use StringValue.
You can also append custom labels. For more information, see Message Attribute Data Types in the Amazon SQS Developer Guide.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.