Package com.intercom.api.types
Class ConversationPart.Builder
java.lang.Object
com.intercom.api.types.ConversationPart.Builder
- All Implemented Interfaces:
ConversationPart._FinalStage,ConversationPart.AuthorStage,ConversationPart.CreatedAtStage,ConversationPart.IdStage,ConversationPart.NotifiedAtStage,ConversationPart.PartTypeStage,ConversationPart.RedactedStage
- Enclosing class:
ConversationPart
public static final class ConversationPart.Builder
extends Object
implements ConversationPart.IdStage, ConversationPart.PartTypeStage, ConversationPart.CreatedAtStage, ConversationPart.NotifiedAtStage, ConversationPart.AuthorStage, ConversationPart.RedactedStage, ConversationPart._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionassignedTo(Reference assignedTo) The id of the admin that was assigned the conversation by this conversation_part (null if there has been no change in assignment.)assignedTo(Optional<Reference> assignedTo) attachments(List<PartAttachment> attachments) A list of attachments for the part.attachments(Optional<List<PartAttachment>> attachments) author(ConversationPartAuthor author) The message body, which may contain HTML.build()createdAt(int createdAt) The time the conversation part was created.externalId(String externalId) The external id of the conversation partexternalId(Optional<String> externalId) from(ConversationPart other) The id representing the conversation part.notifiedAt(int notifiedAt) The time the user was notified with the conversation part.The type of conversation part.redacted(boolean redacted) Whether or not the conversation part has been redacted.The last time the conversation part was updated.
-
Method Details
-
from
- Specified by:
fromin interfaceConversationPart.IdStage
-
id
The id representing the conversation part.
- Specified by:
idin interfaceConversationPart.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
partType
The type of conversation part.
- Specified by:
partTypein interfaceConversationPart.PartTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The time the conversation part was created.
- Specified by:
createdAtin interfaceConversationPart.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
notifiedAt
The time the user was notified with the conversation part.
- Specified by:
notifiedAtin interfaceConversationPart.NotifiedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
author
- Specified by:
authorin interfaceConversationPart.AuthorStage
-
redacted
Whether or not the conversation part has been redacted.
- Specified by:
redactedin interfaceConversationPart.RedactedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
The external id of the conversation part
- Specified by:
externalIdin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
- Specified by:
externalIdin interfaceConversationPart._FinalStage
-
attachments
A list of attachments for the part.
- Specified by:
attachmentsin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachments
- Specified by:
attachmentsin interfaceConversationPart._FinalStage
-
assignedTo
The id of the admin that was assigned the conversation by this conversation_part (null if there has been no change in assignment.)
- Specified by:
assignedToin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assignedTo
- Specified by:
assignedToin interfaceConversationPart._FinalStage
-
updatedAt
The last time the conversation part was updated.
- Specified by:
updatedAtin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
- Specified by:
updatedAtin interfaceConversationPart._FinalStage
-
body
The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured.
- Specified by:
bodyin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
- Specified by:
bodyin interfaceConversationPart._FinalStage
-
build
- Specified by:
buildin interfaceConversationPart._FinalStage
-