Class ConversationPart.Builder
- java.lang.Object
-
- com.intercom.api.types.ConversationPart.Builder
-
- Enclosing class:
- ConversationPart
public static final class ConversationPart.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationPart.BuilderappPackageCode(java.lang.String appPackageCode)ConversationPart.BuilderappPackageCode(java.util.Optional<java.lang.String> appPackageCode)The app package code if this part was created via API.ConversationPart.BuilderassignedTo(Reference assignedTo)ConversationPart.BuilderassignedTo(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.Builderattachments(java.util.List<PartAttachment> attachments)ConversationPart.Builderattachments(java.util.Optional<java.util.List<PartAttachment>> attachments)A list of attachments for the part.ConversationPart.Builderauthor(ConversationPartAuthor author)ConversationPart.Builderauthor(java.util.Optional<ConversationPartAuthor> author)ConversationPart.Builderbody(java.lang.String body)ConversationPart.Builderbody(java.util.Optional<java.lang.String> body)The message body, which may contain HTML.ConversationPartbuild()ConversationPart.BuildercreatedAt(java.lang.Integer createdAt)ConversationPart.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the conversation part was created.ConversationPart.BuilderemailMessageMetadata(EmailMessageMetadata emailMessageMetadata)ConversationPart.BuilderemailMessageMetadata(java.util.Optional<EmailMessageMetadata> emailMessageMetadata)ConversationPart.BuildereventDetails(EventDetails eventDetails)ConversationPart.BuildereventDetails(java.util.Optional<EventDetails> eventDetails)ConversationPart.BuilderexternalId(java.lang.String externalId)ConversationPart.BuilderexternalId(java.util.Optional<java.lang.String> externalId)The external id of the conversation partConversationPart.Builderfrom(ConversationPart other)ConversationPart.Builderid(java.lang.String id)ConversationPart.Builderid(java.util.Optional<java.lang.String> id)The id representing the conversation part.ConversationPart.Buildermetadata(ConversationPartMetadata metadata)ConversationPart.Buildermetadata(java.util.Optional<ConversationPartMetadata> metadata)ConversationPart.BuildernotifiedAt(java.lang.Integer notifiedAt)ConversationPart.BuildernotifiedAt(java.util.Optional<java.lang.Integer> notifiedAt)The time the user was notified with the conversation part.ConversationPart.BuilderpartType(java.lang.String partType)ConversationPart.BuilderpartType(java.util.Optional<java.lang.String> partType)The type of conversation part.ConversationPart.Builderredacted(java.lang.Boolean redacted)ConversationPart.Builderredacted(java.util.Optional<java.lang.Boolean> redacted)Whether or not the conversation part has been redacted.ConversationPart.Builderstate(ConversationPart.State state)ConversationPart.Builderstate(java.util.Optional<ConversationPart.State> state)Indicates the current state of conversation when the conversation part was created.ConversationPart.Buildertags(java.util.List<TagBasic> tags)ConversationPart.Buildertags(java.util.Optional<java.util.List<TagBasic>> tags)A list of tags objects associated with the conversation part.ConversationPart.Buildertype(java.lang.String type)ConversationPart.Buildertype(java.util.Optional<java.lang.String> type)Always conversation_partConversationPart.BuilderupdatedAt(java.lang.Integer updatedAt)ConversationPart.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The last time the conversation part was updated.
-
-
-
Method Detail
-
from
public ConversationPart.Builder from(ConversationPart other)
-
type
public ConversationPart.Builder type(java.util.Optional<java.lang.String> type)
Always conversation_part
-
type
public ConversationPart.Builder type(java.lang.String type)
-
id
public ConversationPart.Builder id(java.util.Optional<java.lang.String> id)
The id representing the conversation part.
-
id
public ConversationPart.Builder id(java.lang.String id)
-
partType
public ConversationPart.Builder partType(java.util.Optional<java.lang.String> partType)
The type of conversation part.
-
partType
public ConversationPart.Builder partType(java.lang.String partType)
-
body
public ConversationPart.Builder 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.
-
body
public ConversationPart.Builder body(java.lang.String body)
-
createdAt
public ConversationPart.Builder createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the conversation part was created.
-
createdAt
public ConversationPart.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public ConversationPart.Builder updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The last time the conversation part was updated.
-
updatedAt
public ConversationPart.Builder updatedAt(java.lang.Integer updatedAt)
-
notifiedAt
public ConversationPart.Builder notifiedAt(java.util.Optional<java.lang.Integer> notifiedAt)
The time the user was notified with the conversation part.
-
notifiedAt
public ConversationPart.Builder notifiedAt(java.lang.Integer notifiedAt)
-
assignedTo
public ConversationPart.Builder 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.)
-
assignedTo
public ConversationPart.Builder assignedTo(Reference assignedTo)
-
author
public ConversationPart.Builder author(java.util.Optional<ConversationPartAuthor> author)
-
author
public ConversationPart.Builder author(ConversationPartAuthor author)
-
attachments
public ConversationPart.Builder attachments(java.util.Optional<java.util.List<PartAttachment>> attachments)
A list of attachments for the part.
-
attachments
public ConversationPart.Builder attachments(java.util.List<PartAttachment> attachments)
-
externalId
public ConversationPart.Builder externalId(java.util.Optional<java.lang.String> externalId)
The external id of the conversation part
-
externalId
public ConversationPart.Builder externalId(java.lang.String externalId)
-
redacted
public ConversationPart.Builder redacted(java.util.Optional<java.lang.Boolean> redacted)
Whether or not the conversation part has been redacted.
-
redacted
public ConversationPart.Builder redacted(java.lang.Boolean redacted)
-
emailMessageMetadata
public ConversationPart.Builder emailMessageMetadata(java.util.Optional<EmailMessageMetadata> emailMessageMetadata)
-
emailMessageMetadata
public ConversationPart.Builder emailMessageMetadata(EmailMessageMetadata emailMessageMetadata)
-
metadata
public ConversationPart.Builder metadata(java.util.Optional<ConversationPartMetadata> metadata)
-
metadata
public ConversationPart.Builder metadata(ConversationPartMetadata metadata)
-
state
public ConversationPart.Builder state(java.util.Optional<ConversationPart.State> state)
Indicates the current state of conversation when the conversation part was created.
-
state
public ConversationPart.Builder state(ConversationPart.State state)
-
tags
public ConversationPart.Builder tags(java.util.Optional<java.util.List<TagBasic>> tags)
A list of tags objects associated with the conversation part.
-
tags
public ConversationPart.Builder tags(java.util.List<TagBasic> tags)
-
eventDetails
public ConversationPart.Builder eventDetails(java.util.Optional<EventDetails> eventDetails)
-
eventDetails
public ConversationPart.Builder eventDetails(EventDetails eventDetails)
-
appPackageCode
public ConversationPart.Builder 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.
-
appPackageCode
public ConversationPart.Builder appPackageCode(java.lang.String appPackageCode)
-
build
public ConversationPart build()
-
-