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 java.lang.Object implements ConversationPart.IdStage, ConversationPart.PartTypeStage, ConversationPart.CreatedAtStage, ConversationPart.NotifiedAtStage, ConversationPart.AuthorStage, ConversationPart.RedactedStage, ConversationPart._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationPart._FinalStageassignedTo(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.)ConversationPart._FinalStageassignedTo(java.util.Optional<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.)ConversationPart._FinalStageattachments(java.util.List<PartAttachment> attachments)A list of attachments for the part.ConversationPart._FinalStageattachments(java.util.Optional<java.util.List<PartAttachment>> attachments)A list of attachments for the part.ConversationPart.RedactedStageauthor(ConversationPartAuthor author)ConversationPart._FinalStagebody(java.lang.String body)The message body, which may contain HTML.ConversationPart._FinalStagebody(java.util.Optional<java.lang.String> body)The message body, which may contain HTML.ConversationPartbuild()ConversationPart.NotifiedAtStagecreatedAt(int createdAt)The time the conversation part was created.ConversationPart._FinalStageexternalId(java.lang.String externalId)The external id of the conversation partConversationPart._FinalStageexternalId(java.util.Optional<java.lang.String> externalId)The external id of the conversation partConversationPart.Builderfrom(ConversationPart other)ConversationPart.PartTypeStageid(java.lang.String id)The id representing the conversation part.ConversationPart.AuthorStagenotifiedAt(int notifiedAt)The time the user was notified with the conversation part.ConversationPart.CreatedAtStagepartType(java.lang.String partType)The type of conversation part.ConversationPart._FinalStageredacted(boolean redacted)Whether or not the conversation part has been redacted.ConversationPart._FinalStageupdatedAt(java.lang.Integer updatedAt)The last time the conversation part was updated.ConversationPart._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The last time the conversation part was updated.
-
-
-
Method Detail
-
from
public ConversationPart.Builder from(ConversationPart other)
- Specified by:
fromin interfaceConversationPart.IdStage
-
id
public ConversationPart.PartTypeStage id(@NotNull java.lang.String id)
The id representing the conversation part.The id representing the conversation part.
- Specified by:
idin interfaceConversationPart.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
partType
public ConversationPart.CreatedAtStage partType(@NotNull java.lang.String partType)
The type of conversation part.The type of conversation part.
- Specified by:
partTypein interfaceConversationPart.PartTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ConversationPart.NotifiedAtStage createdAt(int createdAt)
The time the conversation part was created.The time the conversation part was created.
- Specified by:
createdAtin interfaceConversationPart.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
notifiedAt
public ConversationPart.AuthorStage notifiedAt(int notifiedAt)
The time the user was notified with the conversation part.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
public ConversationPart.RedactedStage author(@NotNull ConversationPartAuthor author)
- Specified by:
authorin interfaceConversationPart.AuthorStage
-
redacted
public ConversationPart._FinalStage redacted(boolean redacted)
Whether or not the conversation part has been 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
public ConversationPart._FinalStage externalId(java.lang.String 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
public ConversationPart._FinalStage externalId(java.util.Optional<java.lang.String> externalId)
The external id of the conversation part
- Specified by:
externalIdin interfaceConversationPart._FinalStage
-
attachments
public ConversationPart._FinalStage attachments(java.util.List<PartAttachment> 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
public ConversationPart._FinalStage attachments(java.util.Optional<java.util.List<PartAttachment>> attachments)
A list of attachments for the part.
- Specified by:
attachmentsin interfaceConversationPart._FinalStage
-
assignedTo
public ConversationPart._FinalStage assignedTo(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.)
- Specified by:
assignedToin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assignedTo
public ConversationPart._FinalStage assignedTo(java.util.Optional<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.)
- Specified by:
assignedToin interfaceConversationPart._FinalStage
-
updatedAt
public ConversationPart._FinalStage updatedAt(java.lang.Integer 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
public ConversationPart._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The last time the conversation part was updated.
- Specified by:
updatedAtin interfaceConversationPart._FinalStage
-
body
public ConversationPart._FinalStage body(java.lang.String 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
public ConversationPart._FinalStage body(java.util.Optional<java.lang.String> 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
-
build
public ConversationPart build()
- Specified by:
buildin interfaceConversationPart._FinalStage
-
-