@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.
|
String |
getSubChannelId()
The ID of the SubChannel.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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.
|
void |
setSubChannelId(String subChannelId)
The ID of the SubChannel.
|
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.
|
ChannelMessageCallback |
withSubChannelId(String subChannelId)
The ID of the SubChannel.
|
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 void setSubChannelId(String subChannelId)
The ID of the SubChannel.
subChannelId
- The ID of the SubChannel.public String getSubChannelId()
The ID of the SubChannel.
public ChannelMessageCallback withSubChannelId(String subChannelId)
The ID of the SubChannel.
subChannelId
- The ID of the SubChannel.public String toString()
toString
in class Object
Object.toString()
public ChannelMessageCallback clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.