@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Item extends Object implements Serializable, Cloneable, StructuredPojo
An item - message or event - that has been sent.
Constructor and Description |
---|
Item() |
Modifier and Type | Method and Description |
---|---|
Item |
clone() |
boolean |
equals(Object obj) |
String |
getAbsoluteTime()
The time when the message or event was sent.
|
List<AttachmentItem> |
getAttachments()
Provides information about the attachments.
|
String |
getContactId()
The contactId on which the transcript item was originally sent.
|
String |
getContent()
The content of the message or event.
|
String |
getContentType()
The type of content of the item.
|
String |
getDisplayName()
The chat display name of the sender.
|
String |
getId()
The ID of the item.
|
MessageMetadata |
getMessageMetadata()
The metadata related to the message.
|
String |
getParticipantId()
The ID of the sender in the session.
|
String |
getParticipantRole()
The role of the sender.
|
String |
getRelatedContactId()
The contactId on which the transcript item was originally sent.
|
String |
getType()
Type of the item: message or event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAbsoluteTime(String absoluteTime)
The time when the message or event was sent.
|
void |
setAttachments(Collection<AttachmentItem> attachments)
Provides information about the attachments.
|
void |
setContactId(String contactId)
The contactId on which the transcript item was originally sent.
|
void |
setContent(String content)
The content of the message or event.
|
void |
setContentType(String contentType)
The type of content of the item.
|
void |
setDisplayName(String displayName)
The chat display name of the sender.
|
void |
setId(String id)
The ID of the item.
|
void |
setMessageMetadata(MessageMetadata messageMetadata)
The metadata related to the message.
|
void |
setParticipantId(String participantId)
The ID of the sender in the session.
|
void |
setParticipantRole(String participantRole)
The role of the sender.
|
void |
setRelatedContactId(String relatedContactId)
The contactId on which the transcript item was originally sent.
|
void |
setType(String type)
Type of the item: message or event.
|
String |
toString()
Returns a string representation of this object.
|
Item |
withAbsoluteTime(String absoluteTime)
The time when the message or event was sent.
|
Item |
withAttachments(AttachmentItem... attachments)
Provides information about the attachments.
|
Item |
withAttachments(Collection<AttachmentItem> attachments)
Provides information about the attachments.
|
Item |
withContactId(String contactId)
The contactId on which the transcript item was originally sent.
|
Item |
withContent(String content)
The content of the message or event.
|
Item |
withContentType(String contentType)
The type of content of the item.
|
Item |
withDisplayName(String displayName)
The chat display name of the sender.
|
Item |
withId(String id)
The ID of the item.
|
Item |
withMessageMetadata(MessageMetadata messageMetadata)
The metadata related to the message.
|
Item |
withParticipantId(String participantId)
The ID of the sender in the session.
|
Item |
withParticipantRole(ParticipantRole participantRole)
The role of the sender.
|
Item |
withParticipantRole(String participantRole)
The role of the sender.
|
Item |
withRelatedContactId(String relatedContactId)
The contactId on which the transcript item was originally sent.
|
Item |
withType(ChatItemType type)
Type of the item: message or event.
|
Item |
withType(String type)
Type of the item: message or event.
|
public void setAbsoluteTime(String absoluteTime)
The time when the message or event was sent.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
absoluteTime
- The time when the message or event was sent.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public String getAbsoluteTime()
The time when the message or event was sent.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public Item withAbsoluteTime(String absoluteTime)
The time when the message or event was sent.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
absoluteTime
- The time when the message or event was sent.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public void setContent(String content)
The content of the message or event.
content
- The content of the message or event.public String getContent()
The content of the message or event.
public Item withContent(String content)
The content of the message or event.
content
- The content of the message or event.public void setContentType(String contentType)
The type of content of the item.
contentType
- The type of content of the item.public String getContentType()
The type of content of the item.
public Item withContentType(String contentType)
The type of content of the item.
contentType
- The type of content of the item.public void setId(String id)
The ID of the item.
id
- The ID of the item.public String getId()
The ID of the item.
public Item withId(String id)
The ID of the item.
id
- The ID of the item.public void setType(String type)
Type of the item: message or event.
type
- Type of the item: message or event.ChatItemType
public String getType()
Type of the item: message or event.
ChatItemType
public Item withType(String type)
Type of the item: message or event.
type
- Type of the item: message or event.ChatItemType
public Item withType(ChatItemType type)
Type of the item: message or event.
type
- Type of the item: message or event.ChatItemType
public void setParticipantId(String participantId)
The ID of the sender in the session.
participantId
- The ID of the sender in the session.public String getParticipantId()
The ID of the sender in the session.
public Item withParticipantId(String participantId)
The ID of the sender in the session.
participantId
- The ID of the sender in the session.public void setDisplayName(String displayName)
The chat display name of the sender.
displayName
- The chat display name of the sender.public String getDisplayName()
The chat display name of the sender.
public Item withDisplayName(String displayName)
The chat display name of the sender.
displayName
- The chat display name of the sender.public void setParticipantRole(String participantRole)
The role of the sender. For example, is it a customer, agent, or system.
participantRole
- The role of the sender. For example, is it a customer, agent, or system.ParticipantRole
public String getParticipantRole()
The role of the sender. For example, is it a customer, agent, or system.
ParticipantRole
public Item withParticipantRole(String participantRole)
The role of the sender. For example, is it a customer, agent, or system.
participantRole
- The role of the sender. For example, is it a customer, agent, or system.ParticipantRole
public Item withParticipantRole(ParticipantRole participantRole)
The role of the sender. For example, is it a customer, agent, or system.
participantRole
- The role of the sender. For example, is it a customer, agent, or system.ParticipantRole
public List<AttachmentItem> getAttachments()
Provides information about the attachments.
public void setAttachments(Collection<AttachmentItem> attachments)
Provides information about the attachments.
attachments
- Provides information about the attachments.public Item withAttachments(AttachmentItem... attachments)
Provides information about the attachments.
NOTE: This method appends the values to the existing list (if any). Use
setAttachments(java.util.Collection)
or withAttachments(java.util.Collection)
if you want to
override the existing values.
attachments
- Provides information about the attachments.public Item withAttachments(Collection<AttachmentItem> attachments)
Provides information about the attachments.
attachments
- Provides information about the attachments.public void setMessageMetadata(MessageMetadata messageMetadata)
The metadata related to the message. Currently this supports only information related to message receipts.
messageMetadata
- The metadata related to the message. Currently this supports only information related to message receipts.public MessageMetadata getMessageMetadata()
The metadata related to the message. Currently this supports only information related to message receipts.
public Item withMessageMetadata(MessageMetadata messageMetadata)
The metadata related to the message. Currently this supports only information related to message receipts.
messageMetadata
- The metadata related to the message. Currently this supports only information related to message receipts.public void setRelatedContactId(String relatedContactId)
The contactId on which the transcript item was originally sent. This field is only populated for persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent chat.
relatedContactId
- The contactId on which the transcript item was originally sent. This field is only populated for
persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent
chat.public String getRelatedContactId()
The contactId on which the transcript item was originally sent. This field is only populated for persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent chat.
public Item withRelatedContactId(String relatedContactId)
The contactId on which the transcript item was originally sent. This field is only populated for persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent chat.
relatedContactId
- The contactId on which the transcript item was originally sent. This field is only populated for
persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent
chat.public void setContactId(String contactId)
The contactId on which the transcript item was originally sent. This field is populated only when the transcript item is from the current chat session.
contactId
- The contactId on which the transcript item was originally sent. This field is populated only when the
transcript item is from the current chat session.public String getContactId()
The contactId on which the transcript item was originally sent. This field is populated only when the transcript item is from the current chat session.
public Item withContactId(String contactId)
The contactId on which the transcript item was originally sent. This field is populated only when the transcript item is from the current chat session.
contactId
- The contactId on which the transcript item was originally sent. This field is populated only when the
transcript item is from the current chat session.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.