Class CreateConversationRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.conversations.requests.CreateConversationRequest.Builder
-
- All Implemented Interfaces:
CreateConversationRequest._FinalStage,CreateConversationRequest.BodyStage,CreateConversationRequest.FromStage
- Enclosing class:
- CreateConversationRequest
public static final class CreateConversationRequest.Builder extends java.lang.Object implements CreateConversationRequest.FromStage, CreateConversationRequest.BodyStage, CreateConversationRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateConversationRequest._FinalStagebody(java.lang.String body)The content of the message.CreateConversationRequestbuild()CreateConversationRequest._FinalStagecreatedAt(java.lang.Integer createdAt)The time the conversation was created as a UTC Unix timestamp.CreateConversationRequest._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the conversation was created as a UTC Unix timestamp.CreateConversationRequest.Builderfrom(CreateConversationRequest other)CreateConversationRequest.BodyStagefrom(CreateConversationRequest.From from)
-
-
-
Method Detail
-
from
public CreateConversationRequest.Builder from(CreateConversationRequest other)
- Specified by:
fromin interfaceCreateConversationRequest.FromStage
-
from
public CreateConversationRequest.BodyStage from(@NotNull CreateConversationRequest.From from)
- Specified by:
fromin interfaceCreateConversationRequest.FromStage
-
body
public CreateConversationRequest._FinalStage body(@NotNull java.lang.String body)
The content of the message. HTML is not supported.
The content of the message. HTML is not supported.
- Specified by:
bodyin interfaceCreateConversationRequest.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public CreateConversationRequest._FinalStage createdAt(java.lang.Integer createdAt)
The time the conversation was created as a UTC Unix timestamp. If not provided, the current time will be used. This field is only recommneded for migrating past conversations from another source into Intercom.
- Specified by:
createdAtin interfaceCreateConversationRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public CreateConversationRequest._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the conversation was created as a UTC Unix timestamp. If not provided, the current time will be used. This field is only recommneded for migrating past conversations from another source into Intercom.
- Specified by:
createdAtin interfaceCreateConversationRequest._FinalStage
-
build
public CreateConversationRequest build()
- Specified by:
buildin interfaceCreateConversationRequest._FinalStage
-
-