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 java.lang.Object implements CreateMessageRequest.Email.SubjectStage, CreateMessageRequest.Email.BodyStage, CreateMessageRequest.Email.TemplateStage, CreateMessageRequest.Email.FromStage, CreateMessageRequest.Email.ToStage, CreateMessageRequest.Email._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMessageRequest.Email.TemplateStagebody(java.lang.String body)The content of the message.CreateMessageRequest.Emailbuild()CreateMessageRequest.Email._FinalStagecreateConversationWithoutContactReply(java.lang.Boolean createConversationWithoutContactReply)Whether a conversation should be opened in the inbox for the message without the contact replying.CreateMessageRequest.Email._FinalStagecreateConversationWithoutContactReply(java.util.Optional<java.lang.Boolean> createConversationWithoutContactReply)Whether a conversation should be opened in the inbox for the message without the contact replying.CreateMessageRequest.Email._FinalStagecreatedAt(java.lang.Integer createdAt)The time the message was created.CreateMessageRequest.Email._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the message was created.CreateMessageRequest.Email.Builderfrom(CreateMessageRequest.Email other)CreateMessageRequest.Email.ToStagefrom(CreateMessageRequest.Email.From from)The sender of the message.CreateMessageRequest.Email.BodyStagesubject(java.lang.String subject)The title of the email.CreateMessageRequest.Email.FromStagetemplate(java.lang.String template)The style of the outgoing message.CreateMessageRequest.Email._FinalStageto(CreateMessageRequest.Email.To to)The sender of the message.
-
-
-
Method Detail
-
from
public CreateMessageRequest.Email.Builder from(CreateMessageRequest.Email other)
- Specified by:
fromin interfaceCreateMessageRequest.Email.SubjectStage
-
subject
public CreateMessageRequest.Email.BodyStage subject(@NotNull java.lang.String subject)
The title of the email.The title of the email.
- Specified by:
subjectin interfaceCreateMessageRequest.Email.SubjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public CreateMessageRequest.Email.TemplateStage body(@NotNull java.lang.String body)
The content of the message. HTML and plaintext are supported.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
public CreateMessageRequest.Email.FromStage template(@NotNull java.lang.String template)
The style of the outgoing message. Possible values `plain` or `personal`.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
public CreateMessageRequest.Email.ToStage from(@NotNull CreateMessageRequest.Email.From from)
The sender of the message. If not provided, the default sender will be used.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
public CreateMessageRequest.Email._FinalStage to(@NotNull CreateMessageRequest.Email.To to)
The sender of the message. If not provided, the default sender will be used.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(java.lang.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(java.util.Optional<java.lang.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
-
createdAt
public CreateMessageRequest.Email._FinalStage createdAt(java.lang.Integer 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
public CreateMessageRequest.Email._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the message was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceCreateMessageRequest.Email._FinalStage
-
build
public CreateMessageRequest.Email build()
- Specified by:
buildin interfaceCreateMessageRequest.Email._FinalStage
-
-