@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 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 and Description |
---|---|
static interface |
MessageAttributeValue.Builder |
Modifier and Type | Method and Description |
---|---|
SdkBytes |
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, String.Array, Number, and Binary.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends MessageAttributeValue.Builder> |
serializableBuilderClass() |
String |
stringValue()
Strings are Unicode with UTF8 binary encoding.
|
MessageAttributeValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String dataType()
Amazon SNS supports the following logical data types: String, String.Array, 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 ASCII Printable Characters.
public SdkBytes binaryValue()
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
public MessageAttributeValue.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<MessageAttributeValue.Builder,MessageAttributeValue>
public static MessageAttributeValue.Builder builder()
public static Class<? extends MessageAttributeValue.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.