Package com.intercom.api.types
Class CreateMessageRequest.Email.Builder
java.lang.Object
com.intercom.api.types.CreateMessageRequest.Email.Builder
- All Implemented Interfaces:
CreateMessageRequest.Email._FinalStage,CreateMessageRequest.Email.BodyStage,CreateMessageRequest.Email.FromStage,CreateMessageRequest.Email.SubjectStage,CreateMessageRequest.Email.TemplateStage,CreateMessageRequest.Email.ToStage
- Enclosing class:
CreateMessageRequest.Email
public static final class CreateMessageRequest.Email.Builder
extends Object
implements CreateMessageRequest.Email.SubjectStage, CreateMessageRequest.Email.BodyStage, CreateMessageRequest.Email.TemplateStage, CreateMessageRequest.Email.FromStage, CreateMessageRequest.Email.ToStage, CreateMessageRequest.Email._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionThe content of the message.build()createConversationWithoutContactReply(Boolean createConversationWithoutContactReply) Whether a conversation should be opened in the inbox for the message without the contact replying.createConversationWithoutContactReply(Optional<Boolean> createConversationWithoutContactReply) The time the message was created.from(CreateMessageRequest.Email other) The sender of the message.The title of the email.The style of the outgoing message.The sender of the message.
-
Method Details
-
from
- Specified by:
fromin interfaceCreateMessageRequest.Email.SubjectStage
-
subject
The title of the email.
- Specified by:
subjectin interfaceCreateMessageRequest.Email.SubjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
The content of the message. HTML and plaintext are supported.
- Specified by:
bodyin interfaceCreateMessageRequest.Email.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
template
The style of the outgoing message. Possible values
plainorpersonal.- Specified by:
templatein interfaceCreateMessageRequest.Email.TemplateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
from
The sender of the message. If not provided, the default sender will be used.
- Specified by:
fromin interfaceCreateMessageRequest.Email.FromStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
to
The sender of the message. If not provided, the default sender will be used.
- Specified by:
toin interfaceCreateMessageRequest.Email.ToStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createConversationWithoutContactReply
public CreateMessageRequest.Email._FinalStage createConversationWithoutContactReply(Boolean createConversationWithoutContactReply) Whether a conversation should be opened in the inbox for the message without the contact replying. Defaults to false if not provided.
- Specified by:
createConversationWithoutContactReplyin interfaceCreateMessageRequest.Email._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createConversationWithoutContactReply
public CreateMessageRequest.Email._FinalStage createConversationWithoutContactReply(Optional<Boolean> createConversationWithoutContactReply) - Specified by:
createConversationWithoutContactReplyin interfaceCreateMessageRequest.Email._FinalStage
-
createdAt
The time the message was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceCreateMessageRequest.Email._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
- Specified by:
createdAtin interfaceCreateMessageRequest.Email._FinalStage
-
build
- Specified by:
buildin interfaceCreateMessageRequest.Email._FinalStage
-