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 |
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.
|
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 |
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 that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #attachments(List) .attachments - a consumer that will call methods on List.Builder #attachments(List) Copyright © 2021. All rights reserved.