@Generated(value="software.amazon.awssdk:codegen") public final class MessageSystemAttributeValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageSystemAttributeValue.Builder,MessageSystemAttributeValue>
The user-specified message system 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.
Modifier and Type | Class and Description |
---|---|
static interface |
MessageSystemAttributeValue.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 MessageSystemAttributeValue.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()
For responses, this returns true if the service returned a value for the BinaryListValues property.
|
int |
hashCode() |
boolean |
hasStringListValues()
For responses, this returns true if the service returned a value for the StringListValues property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MessageSystemAttributeValue.Builder> |
serializableBuilderClass() |
List<String> |
stringListValues()
Not implemented.
|
String |
stringValue()
Strings are Unicode with UTF-8 binary encoding.
|
MessageSystemAttributeValue.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()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasStringListValues()
method.
public final boolean hasBinaryListValues()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBinaryListValues()
method.
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 SQS 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 SQS Developer Guide.
public MessageSystemAttributeValue.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<MessageSystemAttributeValue.Builder,MessageSystemAttributeValue>
public static MessageSystemAttributeValue.Builder builder()
public static Class<? extends MessageSystemAttributeValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.