Class ConversationPart.Builder
- java.lang.Object
-
- com.intercom.api.types.ConversationPart.Builder
-
- All Implemented Interfaces:
ConversationPart._FinalStage,ConversationPart.AuthorStage,ConversationPart.CreatedAtStage,ConversationPart.IdStage,ConversationPart.PartTypeStage,ConversationPart.RedactedStage,ConversationPart.TypeStage,ConversationPart.UpdatedAtStage
- Enclosing class:
- ConversationPart
public static final class ConversationPart.Builder extends java.lang.Object implements ConversationPart.TypeStage, ConversationPart.IdStage, ConversationPart.PartTypeStage, ConversationPart.CreatedAtStage, ConversationPart.UpdatedAtStage, ConversationPart.AuthorStage, ConversationPart.RedactedStage, ConversationPart._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationPart._FinalStageappPackageCode(java.lang.String appPackageCode)The app package code if this part was created via API.ConversationPart._FinalStageappPackageCode(java.util.Optional<java.lang.String> appPackageCode)The app package code if this part was created via API.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.UpdatedAtStagecreatedAt(int createdAt)The time the conversation part was created.ConversationPart._FinalStageemailMessageMetadata(EmailMessageMetadata emailMessageMetadata)ConversationPart._FinalStageemailMessageMetadata(java.util.Optional<EmailMessageMetadata> emailMessageMetadata)ConversationPart._FinalStageeventDetails(EventDetails eventDetails)ConversationPart._FinalStageeventDetails(java.util.Optional<EventDetails> eventDetails)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._FinalStagemetadata(ConversationPartMetadata metadata)ConversationPart._FinalStagemetadata(java.util.Optional<ConversationPartMetadata> metadata)ConversationPart._FinalStagenotifiedAt(java.lang.Integer notifiedAt)The time the user was notified with the conversation part.ConversationPart._FinalStagenotifiedAt(java.util.Optional<java.lang.Integer> 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._FinalStagestate(ConversationPart.State state)Indicates the current state of conversation when the conversation part was created.ConversationPart._FinalStagestate(java.util.Optional<ConversationPart.State> state)Indicates the current state of conversation when the conversation part was created.ConversationPart._FinalStagetags(java.util.List<TagBasic> tags)A list of tags objects associated with the conversation part.ConversationPart._FinalStagetags(java.util.Optional<java.util.List<TagBasic>> tags)A list of tags objects associated with the conversation part.ConversationPart.IdStagetype(java.lang.String type)Always conversation_partConversationPart.AuthorStageupdatedAt(int updatedAt)The last time the conversation part was updated.
-
-
-
Method Detail
-
from
public ConversationPart.Builder from(ConversationPart other)
- Specified by:
fromin interfaceConversationPart.TypeStage
-
type
public ConversationPart.IdStage type(@NotNull java.lang.String type)
Always conversation_part
Always conversation_part
- Specified by:
typein interfaceConversationPart.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
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.UpdatedAtStage 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.
-
updatedAt
public ConversationPart.AuthorStage updatedAt(int updatedAt)
The last time the conversation part was updated.
The last time the conversation part was updated.
- Specified by:
updatedAtin interfaceConversationPart.UpdatedAtStage- 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.
-
appPackageCode
public ConversationPart._FinalStage appPackageCode(java.lang.String appPackageCode)
The app package code if this part was created via API. null if the part was not created via API.
- Specified by:
appPackageCodein interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
appPackageCode
public ConversationPart._FinalStage appPackageCode(java.util.Optional<java.lang.String> appPackageCode)
The app package code if this part was created via API. null if the part was not created via API.
- Specified by:
appPackageCodein interfaceConversationPart._FinalStage
-
eventDetails
public ConversationPart._FinalStage eventDetails(EventDetails eventDetails)
- Specified by:
eventDetailsin interfaceConversationPart._FinalStage
-
eventDetails
public ConversationPart._FinalStage eventDetails(java.util.Optional<EventDetails> eventDetails)
- Specified by:
eventDetailsin interfaceConversationPart._FinalStage
-
tags
public ConversationPart._FinalStage tags(java.util.List<TagBasic> tags)
A list of tags objects associated with the conversation part.
- Specified by:
tagsin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
public ConversationPart._FinalStage tags(java.util.Optional<java.util.List<TagBasic>> tags)
A list of tags objects associated with the conversation part.
- Specified by:
tagsin interfaceConversationPart._FinalStage
-
state
public ConversationPart._FinalStage state(ConversationPart.State state)
Indicates the current state of conversation when the conversation part was created.
- Specified by:
statein interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public ConversationPart._FinalStage state(java.util.Optional<ConversationPart.State> state)
Indicates the current state of conversation when the conversation part was created.
- Specified by:
statein interfaceConversationPart._FinalStage
-
metadata
public ConversationPart._FinalStage metadata(ConversationPartMetadata metadata)
- Specified by:
metadatain interfaceConversationPart._FinalStage
-
metadata
public ConversationPart._FinalStage metadata(java.util.Optional<ConversationPartMetadata> metadata)
- Specified by:
metadatain interfaceConversationPart._FinalStage
-
emailMessageMetadata
public ConversationPart._FinalStage emailMessageMetadata(EmailMessageMetadata emailMessageMetadata)
- Specified by:
emailMessageMetadatain interfaceConversationPart._FinalStage
-
emailMessageMetadata
public ConversationPart._FinalStage emailMessageMetadata(java.util.Optional<EmailMessageMetadata> emailMessageMetadata)
- Specified by:
emailMessageMetadatain interfaceConversationPart._FinalStage
-
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
-
notifiedAt
public ConversationPart._FinalStage notifiedAt(java.lang.Integer notifiedAt)
The time the user was notified with the conversation part.
- Specified by:
notifiedAtin interfaceConversationPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
notifiedAt
public ConversationPart._FinalStage notifiedAt(java.util.Optional<java.lang.Integer> notifiedAt)
The time the user was notified with the conversation part.
- Specified by:
notifiedAtin 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
-
-