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 java.lang.Object implements Message.TypeStage, Message.IdStage, Message.CreatedAtStage, Message.SubjectStage, Message.BodyStage, Message.MessageTypeStage, Message.ConversationIdStage, Message._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message.MessageTypeStagebody(java.lang.String body)The message body, which may contain HTML.Messagebuild()Message._FinalStageconversationId(java.lang.String conversationId)The associated conversation_idMessage.SubjectStagecreatedAt(int createdAt)The time the conversation was created.Message.Builderfrom(Message other)Message.CreatedAtStageid(java.lang.String id)The id representing the message.Message.ConversationIdStagemessageType(Message.MessageType messageType)The type of message that was sent.Message.BodyStagesubject(java.lang.String subject)The subject of the message.Message.IdStagetype(java.lang.String type)The type of the message
-
-
-
Method Detail
-
from
public Message.Builder from(Message other)
- Specified by:
fromin interfaceMessage.TypeStage
-
type
public Message.IdStage type(@NotNull java.lang.String type)
The type of the messageThe type of the message
- Specified by:
typein interfaceMessage.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public Message.CreatedAtStage id(@NotNull java.lang.String id)
The id representing the message.The id representing the message.
- Specified by:
idin interfaceMessage.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Message.SubjectStage createdAt(int createdAt)
The time the conversation was created.The time the conversation was created.
- Specified by:
createdAtin interfaceMessage.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
subject
public Message.BodyStage subject(@NotNull java.lang.String subject)
The subject of the message. Only present if message_type: email.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
public Message.MessageTypeStage body(@NotNull java.lang.String body)
The message body, which may contain HTML.The message body, which may contain HTML.
- Specified by:
bodyin interfaceMessage.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messageType
public Message.ConversationIdStage messageType(@NotNull Message.MessageType messageType)
The type of message that was sent. Can be email, inapp, facebook or twitter.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
public Message._FinalStage conversationId(@NotNull java.lang.String conversationId)
The associated conversation_idThe associated conversation_id
- Specified by:
conversationIdin interfaceMessage.ConversationIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Message build()
- Specified by:
buildin interfaceMessage._FinalStage
-
-