@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChannelMessageSummary extends Object implements Serializable, Cloneable, StructuredPojo
Summary of the messages in a Channel
.
Constructor and Description |
---|
ChannelMessageSummary() |
Modifier and Type | Method and Description |
---|---|
ChannelMessageSummary |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The content of the message.
|
Date |
getCreatedTimestamp()
The time at which the message summary was created.
|
Date |
getLastEditedTimestamp()
The time at which a message was last edited.
|
Date |
getLastUpdatedTimestamp()
The time at which a message was last updated.
|
String |
getMessageId()
The ID of the message.
|
String |
getMetadata()
The metadata of the message.
|
Boolean |
getRedacted()
Indicates whether a message was redacted.
|
Identity |
getSender()
The message sender.
|
String |
getType()
The type of message.
|
int |
hashCode() |
Boolean |
isRedacted()
Indicates whether a message was redacted.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(String content)
The content of the message.
|
void |
setCreatedTimestamp(Date createdTimestamp)
The time at which the message summary was created.
|
void |
setLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was last edited.
|
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was last updated.
|
void |
setMessageId(String messageId)
The ID of the message.
|
void |
setMetadata(String metadata)
The metadata of the message.
|
void |
setRedacted(Boolean redacted)
Indicates whether a message was redacted.
|
void |
setSender(Identity sender)
The message sender.
|
void |
setType(String type)
The type of message.
|
String |
toString()
Returns a string representation of this object.
|
ChannelMessageSummary |
withContent(String content)
The content of the message.
|
ChannelMessageSummary |
withCreatedTimestamp(Date createdTimestamp)
The time at which the message summary was created.
|
ChannelMessageSummary |
withLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was last edited.
|
ChannelMessageSummary |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was last updated.
|
ChannelMessageSummary |
withMessageId(String messageId)
The ID of the message.
|
ChannelMessageSummary |
withMetadata(String metadata)
The metadata of the message.
|
ChannelMessageSummary |
withRedacted(Boolean redacted)
Indicates whether a message was redacted.
|
ChannelMessageSummary |
withSender(Identity sender)
The message sender.
|
ChannelMessageSummary |
withType(ChannelMessageType type)
The type of message.
|
ChannelMessageSummary |
withType(String type)
The type of message.
|
public void setMessageId(String messageId)
The ID of the message.
messageId
- The ID of the message.public String getMessageId()
The ID of the message.
public ChannelMessageSummary withMessageId(String messageId)
The ID of the message.
messageId
- The ID of the message.public void setContent(String content)
The content of the message.
content
- The content of the message.public String getContent()
The content of the message.
public ChannelMessageSummary withContent(String content)
The content of the message.
content
- The content of the message.public void setMetadata(String metadata)
The metadata of the message.
metadata
- The metadata of the message.public String getMetadata()
The metadata of the message.
public ChannelMessageSummary withMetadata(String metadata)
The metadata of the message.
metadata
- The metadata of the message.public void setType(String type)
The type of message.
type
- The type of message.ChannelMessageType
public String getType()
The type of message.
ChannelMessageType
public ChannelMessageSummary withType(String type)
The type of message.
type
- The type of message.ChannelMessageType
public ChannelMessageSummary withType(ChannelMessageType type)
The type of message.
type
- The type of message.ChannelMessageType
public void setCreatedTimestamp(Date createdTimestamp)
The time at which the message summary was created.
createdTimestamp
- The time at which the message summary was created.public Date getCreatedTimestamp()
The time at which the message summary was created.
public ChannelMessageSummary withCreatedTimestamp(Date createdTimestamp)
The time at which the message summary was created.
createdTimestamp
- The time at which the message summary was created.public void setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was last updated.
lastUpdatedTimestamp
- The time at which a message was last updated.public Date getLastUpdatedTimestamp()
The time at which a message was last updated.
public ChannelMessageSummary withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a message was last updated.
lastUpdatedTimestamp
- The time at which a message was last updated.public void setLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was last edited.
lastEditedTimestamp
- The time at which a message was last edited.public Date getLastEditedTimestamp()
The time at which a message was last edited.
public ChannelMessageSummary withLastEditedTimestamp(Date lastEditedTimestamp)
The time at which a message was last edited.
lastEditedTimestamp
- The time at which a message was last edited.public void setSender(Identity sender)
The message sender.
sender
- The message sender.public Identity getSender()
The message sender.
public ChannelMessageSummary withSender(Identity sender)
The message sender.
sender
- The message sender.public void setRedacted(Boolean redacted)
Indicates whether a message was redacted.
redacted
- Indicates whether a message was redacted.public Boolean getRedacted()
Indicates whether a message was redacted.
public ChannelMessageSummary withRedacted(Boolean redacted)
Indicates whether a message was redacted.
redacted
- Indicates whether a message was redacted.public Boolean isRedacted()
Indicates whether a message was redacted.
public String toString()
toString
in class Object
Object.toString()
public ChannelMessageSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.