@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChannelMessage extends Object implements Serializable, Cloneable, StructuredPojo
The details of a message in a channel.
Constructor and Description |
---|
ChannelMessage() |
Modifier and Type | Method and Description |
---|---|
ChannelMessage |
clone() |
boolean |
equals(Object obj) |
String |
getChannelArn()
The ARN of the channel.
|
String |
getContent()
The message content.
|
Date |
getCreatedTimestamp()
The time at which the message was created.
|
Date |
getLastEditedTimestamp()
The time at which a message was edited.
|
Date |
getLastUpdatedTimestamp()
The time at which a message was updated.
|
String |
getMessageId()
The ID of a message.
|
String |
getMetadata()
The message metadata.
|
String |
getPersistence()
The persistence setting for a channel message.
|
Boolean |
getRedacted()
Hides the content of a message.
|
Identity |
getSender()
The message sender.
|
String |
getType()
The message type.
|
int |
hashCode() |
Boolean |
isRedacted()
Hides the content of a message.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setChannelArn(String channelArn)
The ARN of the channel.
|
void |
setContent(String content)
The message content.
|
void |
setCreatedTimestamp(Date createdTimestamp)
The time at which the message was created.
|
void |
setLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was edited.
|
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was updated.
|
void |
setMessageId(String messageId)
The ID of a message.
|
void |
setMetadata(String metadata)
The message metadata.
|
void |
setPersistence(String persistence)
The persistence setting for a channel message.
|
void |
setRedacted(Boolean redacted)
Hides the content of a message.
|
void |
setSender(Identity sender)
The message sender.
|
void |
setType(String type)
The message type.
|
String |
toString()
Returns a string representation of this object.
|
ChannelMessage |
withChannelArn(String channelArn)
The ARN of the channel.
|
ChannelMessage |
withContent(String content)
The message content.
|
ChannelMessage |
withCreatedTimestamp(Date createdTimestamp)
The time at which the message was created.
|
ChannelMessage |
withLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was edited.
|
ChannelMessage |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was updated.
|
ChannelMessage |
withMessageId(String messageId)
The ID of a message.
|
ChannelMessage |
withMetadata(String metadata)
The message metadata.
|
ChannelMessage |
withPersistence(ChannelMessagePersistenceType persistence)
The persistence setting for a channel message.
|
ChannelMessage |
withPersistence(String persistence)
The persistence setting for a channel message.
|
ChannelMessage |
withRedacted(Boolean redacted)
Hides the content of a message.
|
ChannelMessage |
withSender(Identity sender)
The message sender.
|
ChannelMessage |
withType(ChannelMessageType type)
The message type.
|
ChannelMessage |
withType(String type)
The message type.
|
public void setChannelArn(String channelArn)
The ARN of the channel.
channelArn
- The ARN of the channel.public String getChannelArn()
The ARN of the channel.
public ChannelMessage withChannelArn(String channelArn)
The ARN of the channel.
channelArn
- The ARN of the channel.public void setMessageId(String messageId)
The ID of a message.
messageId
- The ID of a message.public String getMessageId()
The ID of a message.
public ChannelMessage withMessageId(String messageId)
The ID of a message.
messageId
- The ID of a message.public void setContent(String content)
The message content.
content
- The message content.public String getContent()
The message content.
public ChannelMessage 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 ChannelMessage withMetadata(String metadata)
The message metadata.
metadata
- The message metadata.public void setType(String type)
The message type.
type
- The message type.ChannelMessageType
public String getType()
The message type.
ChannelMessageType
public ChannelMessage withType(String type)
The message type.
type
- The message type.ChannelMessageType
public ChannelMessage withType(ChannelMessageType type)
The message type.
type
- The message type.ChannelMessageType
public void setCreatedTimestamp(Date createdTimestamp)
The time at which the message was created.
createdTimestamp
- The time at which the message was created.public Date getCreatedTimestamp()
The time at which the message was created.
public ChannelMessage withCreatedTimestamp(Date createdTimestamp)
The time at which the message was created.
createdTimestamp
- The time at which the message was created.public void setLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was edited.
lastEditedTimestamp
- The time at which a message was edited.public Date getLastEditedTimestamp()
The time at which a message was edited.
public ChannelMessage withLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was edited.
lastEditedTimestamp
- The time at which a message was edited.public void setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was updated.
lastUpdatedTimestamp
- The time at which a message was updated.public Date getLastUpdatedTimestamp()
The time at which a message was updated.
public ChannelMessage withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was updated.
lastUpdatedTimestamp
- The time at which a message was updated.public void setSender(Identity sender)
The message sender.
sender
- The message sender.public Identity getSender()
The message sender.
public ChannelMessage withSender(Identity sender)
The message sender.
sender
- The message sender.public void setRedacted(Boolean redacted)
Hides the content of a message.
redacted
- Hides the content of a message.public Boolean getRedacted()
Hides the content of a message.
public ChannelMessage withRedacted(Boolean redacted)
Hides the content of a message.
redacted
- Hides the content of a message.public Boolean isRedacted()
Hides the content of a message.
public void setPersistence(String persistence)
The persistence setting for a channel message.
persistence
- The persistence setting for a channel message.ChannelMessagePersistenceType
public String getPersistence()
The persistence setting for a channel message.
ChannelMessagePersistenceType
public ChannelMessage withPersistence(String persistence)
The persistence setting for a channel message.
persistence
- The persistence setting for a channel message.ChannelMessagePersistenceType
public ChannelMessage withPersistence(ChannelMessagePersistenceType persistence)
The persistence setting for a channel message.
persistence
- The persistence setting for a channel message.ChannelMessagePersistenceType
public String toString()
toString
in class Object
Object.toString()
public ChannelMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.