@Generated(value="software.amazon.awssdk:codegen") public final class Message extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Message.Builder,Message>
Information about a message.
Modifier and Type | Class and Description |
---|---|
static interface |
Message.Builder |
Modifier and Type | Method and Description |
---|---|
static Message.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
inputName()
The name of the input into which the message payload is transformed.
|
String |
messageId()
The ID to assign to the message.
|
SdkBytes |
payload()
The payload of the message.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Message.Builder> |
serializableBuilderClass() |
Message.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String messageId()
The ID to assign to the message. Within each batch sent, each "messageId"
must be unique.
"messageId"
must be unique.public final String inputName()
The name of the input into which the message payload is transformed.
public final SdkBytes payload()
The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).
public Message.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Message.Builder,Message>
public static Message.Builder builder()
public static Class<? extends Message.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.