@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.
|
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)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAbsoluteTime(String absoluteTime)
The time when the message or event was 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 |
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 |
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 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.