Class NotifyNewMessageRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.customchannelevents.requests.NotifyNewMessageRequest.Builder
-
- All Implemented Interfaces:
NotifyNewMessageRequest._FinalStage,NotifyNewMessageRequest.BodyStage,NotifyNewMessageRequest.ContactStage,NotifyNewMessageRequest.EventIdStage,NotifyNewMessageRequest.ExternalConversationIdStage
- Enclosing class:
- NotifyNewMessageRequest
public static final class NotifyNewMessageRequest.Builder extends java.lang.Object implements NotifyNewMessageRequest.EventIdStage, NotifyNewMessageRequest.ExternalConversationIdStage, NotifyNewMessageRequest.ContactStage, NotifyNewMessageRequest.BodyStage, NotifyNewMessageRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotifyNewMessageRequest._FinalStagebody(java.lang.String body)The message content sent by the user.NotifyNewMessageRequestbuild()NotifyNewMessageRequest.BodyStagecontact(CustomChannelContact contact)NotifyNewMessageRequest.ExternalConversationIdStageeventId(java.lang.String eventId)Unique identifier for the event.NotifyNewMessageRequest.ContactStageexternalConversationId(java.lang.String externalConversationId)Identifier for the conversation in your application.NotifyNewMessageRequest.Builderfrom(NotifyNewMessageRequest other)
-
-
-
Method Detail
-
from
public NotifyNewMessageRequest.Builder from(NotifyNewMessageRequest other)
- Specified by:
fromin interfaceNotifyNewMessageRequest.EventIdStage
-
eventId
public NotifyNewMessageRequest.ExternalConversationIdStage eventId(@NotNull java.lang.String eventId)
Unique identifier for the event.
Unique identifier for the event.
- Specified by:
eventIdin interfaceNotifyNewMessageRequest.EventIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalConversationId
public NotifyNewMessageRequest.ContactStage externalConversationId(@NotNull java.lang.String externalConversationId)
Identifier for the conversation in your application.
Identifier for the conversation in your application.
- Specified by:
externalConversationIdin interfaceNotifyNewMessageRequest.ExternalConversationIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contact
public NotifyNewMessageRequest.BodyStage contact(@NotNull CustomChannelContact contact)
- Specified by:
contactin interfaceNotifyNewMessageRequest.ContactStage
-
body
public NotifyNewMessageRequest._FinalStage body(@NotNull java.lang.String body)
The message content sent by the user.
The message content sent by the user.
- Specified by:
bodyin interfaceNotifyNewMessageRequest.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public NotifyNewMessageRequest build()
- Specified by:
buildin interfaceNotifyNewMessageRequest._FinalStage
-
-