public static interface Item.Builder extends SdkPojo, CopyableBuilder<Item.Builder,Item>
| Modifier and Type | Method and Description |
|---|---|
Item.Builder |
absoluteTime(String absoluteTime)
The time when the message or event was sent.
|
Item.Builder |
attachments(AttachmentItem... attachments)
Provides information about the attachments.
|
Item.Builder |
attachments(Collection<AttachmentItem> attachments)
Provides information about the attachments.
|
Item.Builder |
attachments(Consumer<AttachmentItem.Builder>... attachments)
Provides information about the attachments.
|
Item.Builder |
contactId(String contactId)
The contactId on which the transcript item was originally sent.
|
Item.Builder |
content(String content)
The content of the message or event.
|
Item.Builder |
contentType(String contentType)
The type of content of the item.
|
Item.Builder |
displayName(String displayName)
The chat display name of the sender.
|
Item.Builder |
id(String id)
The ID of the item.
|
default Item.Builder |
messageMetadata(Consumer<MessageMetadata.Builder> messageMetadata)
The metadata related to the message.
|
Item.Builder |
messageMetadata(MessageMetadata messageMetadata)
The metadata related to the message.
|
Item.Builder |
participantId(String participantId)
The ID of the sender in the session.
|
Item.Builder |
participantRole(ParticipantRole participantRole)
The role of the sender.
|
Item.Builder |
participantRole(String participantRole)
The role of the sender.
|
Item.Builder |
relatedContactId(String relatedContactId)
The contactId on which the transcript item was originally sent.
|
Item.Builder |
type(ChatItemType type)
Type of the item: message or event.
|
Item.Builder |
type(String type)
Type of the item: message or event.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildItem.Builder absoluteTime(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.
Item.Builder content(String content)
The content of the message or event.
content - The content of the message or event.Item.Builder contentType(String contentType)
The type of content of the item.
contentType - The type of content of the item.Item.Builder id(String id)
The ID of the item.
id - The ID of the item.Item.Builder type(String type)
Type of the item: message or event.
type - Type of the item: message or event.ChatItemType,
ChatItemTypeItem.Builder type(ChatItemType type)
Type of the item: message or event.
type - Type of the item: message or event.ChatItemType,
ChatItemTypeItem.Builder participantId(String participantId)
The ID of the sender in the session.
participantId - The ID of the sender in the session.Item.Builder displayName(String displayName)
The chat display name of the sender.
displayName - The chat display name of the sender.Item.Builder participantRole(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,
ParticipantRoleItem.Builder participantRole(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,
ParticipantRoleItem.Builder attachments(Collection<AttachmentItem> attachments)
Provides information about the attachments.
attachments - Provides information about the attachments.Item.Builder attachments(AttachmentItem... attachments)
Provides information about the attachments.
attachments - Provides information about the attachments.Item.Builder attachments(Consumer<AttachmentItem.Builder>... attachments)
Provides information about the attachments.
This is a convenience method that creates an instance of theAttachmentItem.Builder avoiding the need to
create one manually via
AttachmentItem.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #attachments(List.
attachments - a consumer that will call methods on
AttachmentItem.Builder#attachments(java.util.Collection) Item.Builder messageMetadata(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.default Item.Builder messageMetadata(Consumer<MessageMetadata.Builder> messageMetadata)
The metadata related to the message. Currently this supports only information related to message receipts.
This is a convenience method that creates an instance of theMessageMetadata.Builder avoiding the
need to create one manually via MessageMetadata.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to messageMetadata(MessageMetadata).
messageMetadata - a consumer that will call methods on MessageMetadata.BuildermessageMetadata(MessageMetadata)Item.Builder relatedContactId(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.Item.Builder contactId(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.Copyright © 2023. All rights reserved.