Class AdminReplyTicketRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.AdminReplyTicketRequest.Builder
-
- All Implemented Interfaces:
AdminReplyTicketRequest._FinalStage,AdminReplyTicketRequest.AdminIdStage,AdminReplyTicketRequest.MessageTypeStage
- Enclosing class:
- AdminReplyTicketRequest
public static final class AdminReplyTicketRequest.Builder extends java.lang.Object implements AdminReplyTicketRequest.MessageTypeStage, AdminReplyTicketRequest.AdminIdStage, AdminReplyTicketRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdminReplyTicketRequest._FinalStageadminId(java.lang.String adminId)The id of the admin who is authoring the comment.AdminReplyTicketRequest._FinalStageattachmentUrls(java.util.List<java.lang.String> attachmentUrls)A list of image URLs that will be added as attachments.AdminReplyTicketRequest._FinalStageattachmentUrls(java.util.Optional<java.util.List<java.lang.String>> attachmentUrls)A list of image URLs that will be added as attachments.AdminReplyTicketRequest._FinalStagebody(java.lang.String body)The text body of the reply.AdminReplyTicketRequest._FinalStagebody(java.util.Optional<java.lang.String> body)The text body of the reply.AdminReplyTicketRequestbuild()AdminReplyTicketRequest._FinalStagecreatedAt(java.lang.Integer createdAt)The time the reply was created.AdminReplyTicketRequest._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the reply was created.AdminReplyTicketRequest.Builderfrom(AdminReplyTicketRequest other)AdminReplyTicketRequest.AdminIdStagemessageType(AdminReplyTicketRequest.MessageType messageType)AdminReplyTicketRequest._FinalStagereplyOptions(java.util.List<AdminReplyTicketRequest.ReplyOptionsItem> replyOptions)The quick reply options to display.AdminReplyTicketRequest._FinalStagereplyOptions(java.util.Optional<java.util.List<AdminReplyTicketRequest.ReplyOptionsItem>> replyOptions)The quick reply options to display.
-
-
-
Method Detail
-
from
public AdminReplyTicketRequest.Builder from(AdminReplyTicketRequest other)
- Specified by:
fromin interfaceAdminReplyTicketRequest.MessageTypeStage
-
messageType
public AdminReplyTicketRequest.AdminIdStage messageType(@NotNull AdminReplyTicketRequest.MessageType messageType)
- Specified by:
messageTypein interfaceAdminReplyTicketRequest.MessageTypeStage
-
adminId
public AdminReplyTicketRequest._FinalStage adminId(@NotNull java.lang.String adminId)
The id of the admin who is authoring the comment.
The id of the admin who is authoring the comment.
- Specified by:
adminIdin interfaceAdminReplyTicketRequest.AdminIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentUrls
public AdminReplyTicketRequest._FinalStage attachmentUrls(java.util.List<java.lang.String> attachmentUrls)
A list of image URLs that will be added as attachments. You can include up to 10 URLs.
- Specified by:
attachmentUrlsin interfaceAdminReplyTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentUrls
public AdminReplyTicketRequest._FinalStage attachmentUrls(java.util.Optional<java.util.List<java.lang.String>> attachmentUrls)
A list of image URLs that will be added as attachments. You can include up to 10 URLs.
- Specified by:
attachmentUrlsin interfaceAdminReplyTicketRequest._FinalStage
-
replyOptions
public AdminReplyTicketRequest._FinalStage replyOptions(java.util.List<AdminReplyTicketRequest.ReplyOptionsItem> replyOptions)
The quick reply options to display. Must be present for quick_reply message types.
- Specified by:
replyOptionsin interfaceAdminReplyTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
replyOptions
public AdminReplyTicketRequest._FinalStage replyOptions(java.util.Optional<java.util.List<AdminReplyTicketRequest.ReplyOptionsItem>> replyOptions)
The quick reply options to display. Must be present for quick_reply message types.
- Specified by:
replyOptionsin interfaceAdminReplyTicketRequest._FinalStage
-
createdAt
public AdminReplyTicketRequest._FinalStage createdAt(java.lang.Integer createdAt)
The time the reply was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceAdminReplyTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public AdminReplyTicketRequest._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the reply was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceAdminReplyTicketRequest._FinalStage
-
body
public AdminReplyTicketRequest._FinalStage body(java.lang.String body)
The text body of the reply. Notes accept some HTML formatting. Must be present for comment and note message types.
- Specified by:
bodyin interfaceAdminReplyTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public AdminReplyTicketRequest._FinalStage body(java.util.Optional<java.lang.String> body)
The text body of the reply. Notes accept some HTML formatting. Must be present for comment and note message types.
- Specified by:
bodyin interfaceAdminReplyTicketRequest._FinalStage
-
build
public AdminReplyTicketRequest build()
- Specified by:
buildin interfaceAdminReplyTicketRequest._FinalStage
-
-