Class CreateMessageRequest.Inapp.Builder
- java.lang.Object
-
- com.intercom.api.types.CreateMessageRequest.Inapp.Builder
-
- All Implemented Interfaces:
CreateMessageRequest.Inapp._FinalStage,CreateMessageRequest.Inapp.BodyStage,CreateMessageRequest.Inapp.FromStage,CreateMessageRequest.Inapp.ToStage
- Enclosing class:
- CreateMessageRequest.Inapp
public static final class CreateMessageRequest.Inapp.Builder extends java.lang.Object implements CreateMessageRequest.Inapp.BodyStage, CreateMessageRequest.Inapp.FromStage, CreateMessageRequest.Inapp.ToStage, CreateMessageRequest.Inapp._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMessageRequest.Inapp.FromStagebody(java.lang.String body)The content of the message.CreateMessageRequest.Inappbuild()CreateMessageRequest.Inapp._FinalStagecreateConversationWithoutContactReply(java.lang.Boolean createConversationWithoutContactReply)Whether a conversation should be opened in the inbox for the message without the contact replying.CreateMessageRequest.Inapp._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.Inapp._FinalStagecreatedAt(java.lang.Integer createdAt)The time the message was created.CreateMessageRequest.Inapp._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the message was created.CreateMessageRequest.Inapp.Builderfrom(CreateMessageRequest.Inapp other)CreateMessageRequest.Inapp.ToStagefrom(CreateMessageRequest.Inapp.From from)The sender of the message.CreateMessageRequest.Inapp._FinalStagesubject(java.lang.String subject)The title of the email.CreateMessageRequest.Inapp._FinalStagesubject(java.util.Optional<java.lang.String> subject)The title of the email.CreateMessageRequest.Inapp._FinalStagetemplate(java.lang.String template)The style of the outgoing message.CreateMessageRequest.Inapp._FinalStagetemplate(java.util.Optional<java.lang.String> template)The style of the outgoing message.CreateMessageRequest.Inapp._FinalStageto(CreateMessageRequest.Inapp.To to)The sender of the message.
-
-
-
Method Detail
-
from
public CreateMessageRequest.Inapp.Builder from(CreateMessageRequest.Inapp other)
- Specified by:
fromin interfaceCreateMessageRequest.Inapp.BodyStage
-
body
public CreateMessageRequest.Inapp.FromStage 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.Inapp.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
from
public CreateMessageRequest.Inapp.ToStage from(@NotNull CreateMessageRequest.Inapp.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.Inapp.FromStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
to
public CreateMessageRequest.Inapp._FinalStage to(@NotNull CreateMessageRequest.Inapp.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.Inapp.ToStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createConversationWithoutContactReply
public CreateMessageRequest.Inapp._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.Inapp._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createConversationWithoutContactReply
public CreateMessageRequest.Inapp._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.Inapp._FinalStage
-
createdAt
public CreateMessageRequest.Inapp._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.Inapp._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public CreateMessageRequest.Inapp._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.Inapp._FinalStage
-
template
public CreateMessageRequest.Inapp._FinalStage template(java.lang.String template)
The style of the outgoing message. Possible values
plainorpersonal.- Specified by:
templatein interfaceCreateMessageRequest.Inapp._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
template
public CreateMessageRequest.Inapp._FinalStage template(java.util.Optional<java.lang.String> template)
The style of the outgoing message. Possible values
plainorpersonal.- Specified by:
templatein interfaceCreateMessageRequest.Inapp._FinalStage
-
subject
public CreateMessageRequest.Inapp._FinalStage subject(java.lang.String subject)
The title of the email.
- Specified by:
subjectin interfaceCreateMessageRequest.Inapp._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
subject
public CreateMessageRequest.Inapp._FinalStage subject(java.util.Optional<java.lang.String> subject)
The title of the email.
- Specified by:
subjectin interfaceCreateMessageRequest.Inapp._FinalStage
-
build
public CreateMessageRequest.Inapp build()
- Specified by:
buildin interfaceCreateMessageRequest.Inapp._FinalStage
-
-