@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChannelMessageCallback extends Object implements Serializable, Cloneable, StructuredPojo
Stores information about a callback.
| Constructor and Description |
|---|
ChannelMessageCallback() |
| Modifier and Type | Method and Description |
|---|---|
ChannelMessageCallback |
addMessageAttributesEntry(String key,
MessageAttributeValue value)
Add a single MessageAttributes entry
|
ChannelMessageCallback |
clearMessageAttributesEntries()
Removes all the entries added into MessageAttributes.
|
ChannelMessageCallback |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The message content.
|
Map<String,MessageAttributeValue> |
getMessageAttributes()
The attributes for the message, used for message filtering along with a
FilterRule defined in the
PushNotificationPreferences. |
String |
getMessageId()
The message ID.
|
String |
getMetadata()
The message metadata.
|
PushNotificationConfiguration |
getPushNotification()
The push notification configuration of the message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setContent(String content)
The message content.
|
void |
setMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a
FilterRule defined in the
PushNotificationPreferences. |
void |
setMessageId(String messageId)
The message ID.
|
void |
setMetadata(String metadata)
The message metadata.
|
void |
setPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
|
String |
toString()
Returns a string representation of this object.
|
ChannelMessageCallback |
withContent(String content)
The message content.
|
ChannelMessageCallback |
withMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a
FilterRule defined in the
PushNotificationPreferences. |
ChannelMessageCallback |
withMessageId(String messageId)
The message ID.
|
ChannelMessageCallback |
withMetadata(String metadata)
The message metadata.
|
ChannelMessageCallback |
withPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
|
public void setMessageId(String messageId)
The message ID.
messageId - The message ID.public String getMessageId()
The message ID.
public ChannelMessageCallback withMessageId(String messageId)
The message ID.
messageId - The message ID.public void setContent(String content)
The message content.
content - The message content.public String getContent()
The message content.
public ChannelMessageCallback withContent(String content)
The message content.
content - The message content.public void setMetadata(String metadata)
The message metadata.
metadata - The message metadata.public String getMetadata()
The message metadata.
public ChannelMessageCallback withMetadata(String metadata)
The message metadata.
metadata - The message metadata.public void setPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
pushNotification - The push notification configuration of the message.public PushNotificationConfiguration getPushNotification()
The push notification configuration of the message.
public ChannelMessageCallback withPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
pushNotification - The push notification configuration of the message.public Map<String,MessageAttributeValue> getMessageAttributes()
The attributes for the message, used for message filtering along with a FilterRule defined in the
PushNotificationPreferences.
FilterRule defined
in the PushNotificationPreferences.public void setMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a FilterRule defined in the
PushNotificationPreferences.
messageAttributes - The attributes for the message, used for message filtering along with a FilterRule defined in
the PushNotificationPreferences.public ChannelMessageCallback withMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a FilterRule defined in the
PushNotificationPreferences.
messageAttributes - The attributes for the message, used for message filtering along with a FilterRule defined in
the PushNotificationPreferences.public ChannelMessageCallback addMessageAttributesEntry(String key, MessageAttributeValue value)
public ChannelMessageCallback clearMessageAttributesEntries()
public String toString()
toString in class ObjectObject.toString()public ChannelMessageCallback clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.