Class Message.Builder
java.lang.Object
com.intercom.api.resources.messages.types.Message.Builder
- All Implemented Interfaces:
Message._FinalStage,Message.BodyStage,Message.ConversationIdStage,Message.CreatedAtStage,Message.IdStage,Message.MessageTypeStage,Message.SubjectStage,Message.TypeStage
- Enclosing class:
Message
public static final class Message.Builder
extends Object
implements Message.TypeStage, Message.IdStage, Message.CreatedAtStage, Message.SubjectStage, Message.BodyStage, Message.MessageTypeStage, Message.ConversationIdStage, Message._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionThe message body, which may contain HTML.build()conversationId(String conversationId) The associated conversation_idcreatedAt(int createdAt) The time the conversation was created.The id representing the message.messageType(Message.MessageType messageType) The type of message that was sent.The subject of the message.The type of the message
-
Method Details
-
from
- Specified by:
fromin interfaceMessage.TypeStage
-
type
The type of the message
- Specified by:
typein interfaceMessage.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
The id representing the message.
- Specified by:
idin interfaceMessage.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The time the conversation was created.
- Specified by:
createdAtin interfaceMessage.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
subject
The subject of the message. Only present if message_type: email.
- Specified by:
subjectin interfaceMessage.SubjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
The message body, which may contain HTML.
- Specified by:
bodyin interfaceMessage.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messageType
The type of message that was sent. Can be email, inapp, facebook or twitter.
- Specified by:
messageTypein interfaceMessage.MessageTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
conversationId
The associated conversation_id
- Specified by:
conversationIdin interfaceMessage.ConversationIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
- Specified by:
buildin interfaceMessage._FinalStage
-