@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 |
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.
|
String |
getParticipantId()
The ID of the sender in the session.
|
String |
getParticipantRole()
The role of the sender.
|
String |
getType()
Type of the item: message or event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller 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 |
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 |
setParticipantId(String participantId)
The ID of the sender in the session.
|
void |
setParticipantRole(String participantRole)
The role of the sender.
|
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 |
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 |
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 |
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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.