Interface Item.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Item.Builder,
,Item> SdkBuilder<Item.Builder,
,Item> SdkPojo
- Enclosing class:
Item
-
Method Summary
Modifier and TypeMethodDescriptionabsoluteTime
(String absoluteTime) The time when the message or event was sent.attachments
(Collection<AttachmentItem> attachments) Provides information about the attachments.attachments
(Consumer<AttachmentItem.Builder>... attachments) Provides information about the attachments.attachments
(AttachmentItem... attachments) Provides information about the attachments.The contactId on which the transcript item was originally sent.The content of the message or event.contentType
(String contentType) The type of content of the item.displayName
(String displayName) The chat display name of the sender.The ID of the item.default Item.Builder
messageMetadata
(Consumer<MessageMetadata.Builder> messageMetadata) The metadata related to the message.messageMetadata
(MessageMetadata messageMetadata) The metadata related to the message.participantId
(String participantId) The ID of the sender in the session.participantRole
(String participantRole) The role of the sender.participantRole
(ParticipantRole participantRole) The role of the sender.relatedContactId
(String relatedContactId) The contactId on which the transcript item was originally sent.Type of the item: message or event.type
(ChatItemType type) Type of the item: message or event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the message or event.
- Parameters:
content
- The content of the message or event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
The type of content of the item.
- Parameters:
contentType
- The type of content of the item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The ID of the item.
- Parameters:
id
- The ID of the item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Type of the item: message or event.
- Parameters:
type
- Type of the item: message or event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Type of the item: message or event.
- Parameters:
type
- Type of the item: message or event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
participantId
The ID of the sender in the session.
- Parameters:
participantId
- The ID of the sender in the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
The chat display name of the sender.
- Parameters:
displayName
- The chat display name of the sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participantRole
The role of the sender. For example, is it a customer, agent, or system.
- Parameters:
participantRole
- The role of the sender. For example, is it a customer, agent, or system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
participantRole
The role of the sender. For example, is it a customer, agent, or system.
- Parameters:
participantRole
- The role of the sender. For example, is it a customer, agent, or system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attachments
Provides information about the attachments.
- Parameters:
attachments
- Provides information about the attachments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Provides information about the attachments.
- Parameters:
attachments
- Provides information about the attachments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaAttachmentItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(List<AttachmentItem>)
.- Parameters:
attachments
- a consumer that will call methods onAttachmentItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
messageMetadata
The metadata related to the message. Currently this supports only information related to message receipts.
- Parameters:
messageMetadata
- The metadata related to the message. Currently this supports only information related to message receipts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaMessageMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessageMetadata(MessageMetadata)
.- Parameters:
messageMetadata
- a consumer that will call methods onMessageMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-