@Generated(value="software.amazon.awssdk:codegen") public final class MessageAttributeValue extends Object implements SdkPojo, Serializable, 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 and Description |
---|---|
static interface |
MessageAttributeValue.Builder |
Modifier and Type | Method and Description |
---|---|
List<SdkBytes> |
binaryListValues()
Not implemented.
|
SdkBytes |
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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBinaryListValues()
Returns true if the BinaryListValues property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasStringListValues()
Returns true if the StringListValues property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MessageAttributeValue.Builder> |
serializableBuilderClass() |
List<String> |
stringListValues()
Not implemented.
|
String |
stringValue()
Strings are Unicode with UTF-8 binary encoding.
|
MessageAttributeValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String stringValue()
Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.
public final SdkBytes binaryValue()
Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.
public final boolean hasStringListValues()
public final List<String> stringListValues()
Not implemented. Reserved for future use.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasStringListValues()
to see if a value was sent in this field.
public final boolean hasBinaryListValues()
public final List<SdkBytes> binaryListValues()
Not implemented. Reserved for future use.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasBinaryListValues()
to see if a value was sent in this field.
public final 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 Amazon SQS Message Attributes in the Amazon Simple Queue Service 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 Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.
public MessageAttributeValue.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<MessageAttributeValue.Builder,MessageAttributeValue>
public static MessageAttributeValue.Builder builder()
public static Class<? extends MessageAttributeValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.