Class MessageAttributeValue
- All Implemented Interfaces:
Serializable,SdkPojo,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 Amazon SNS message attributes and Publishing to a mobile phone in the Amazon SNS Developer Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal SdkBytesBinary type attributes can store any binary data, for example, compressed data, encrypted data, or images.builder()final StringdataType()Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends MessageAttributeValue.Builder>final StringStrings are Unicode with UTF8 binary encoding.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
dataType
Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.
- Returns:
- Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.
-
stringValue
Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
- Returns:
- Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
-
binaryValue
Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
- Returns:
- Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MessageAttributeValue.Builder,MessageAttributeValue>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-