Class ContactReplyUserIdRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.ContactReplyUserIdRequest.Builder
-
- All Implemented Interfaces:
ContactReplyUserIdRequest._FinalStage,ContactReplyUserIdRequest.BodyStage,ContactReplyUserIdRequest.UserIdStage
- Enclosing class:
- ContactReplyUserIdRequest
public static final class ContactReplyUserIdRequest.Builder extends java.lang.Object implements ContactReplyUserIdRequest.BodyStage, ContactReplyUserIdRequest.UserIdStage, ContactReplyUserIdRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactReplyUserIdRequest._FinalStageattachmentFiles(java.util.List<ConversationAttachmentFiles> attachmentFiles)A list of files that will be added as attachments.ContactReplyUserIdRequest._FinalStageattachmentFiles(java.util.Optional<java.util.List<ConversationAttachmentFiles>> attachmentFiles)A list of files that will be added as attachments.ContactReplyUserIdRequest._FinalStageattachmentUrls(java.util.List<java.lang.String> attachmentUrls)A list of image URLs that will be added as attachments.ContactReplyUserIdRequest._FinalStageattachmentUrls(java.util.Optional<java.util.List<java.lang.String>> attachmentUrls)A list of image URLs that will be added as attachments.ContactReplyUserIdRequest.UserIdStagebody(java.lang.String body)The text body of the comment.ContactReplyUserIdRequestbuild()ContactReplyUserIdRequest._FinalStagecreatedAt(java.lang.Integer createdAt)The time the reply was created.ContactReplyUserIdRequest._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the reply was created.ContactReplyUserIdRequest.Builderfrom(ContactReplyUserIdRequest other)ContactReplyUserIdRequest._FinalStagereplyOptions(java.util.List<ContactReplyUserIdRequest.ReplyOptionsItem> replyOptions)The quick reply selection the contact wishes to respond with.ContactReplyUserIdRequest._FinalStagereplyOptions(java.util.Optional<java.util.List<ContactReplyUserIdRequest.ReplyOptionsItem>> replyOptions)The quick reply selection the contact wishes to respond with.ContactReplyUserIdRequest._FinalStageuserId(java.lang.String userId)The external_id you have defined for the contact.
-
-
-
Method Detail
-
from
public ContactReplyUserIdRequest.Builder from(ContactReplyUserIdRequest other)
- Specified by:
fromin interfaceContactReplyUserIdRequest.BodyStage
-
body
public ContactReplyUserIdRequest.UserIdStage body(@NotNull java.lang.String body)
The text body of the comment.
The text body of the comment.
- Specified by:
bodyin interfaceContactReplyUserIdRequest.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
public ContactReplyUserIdRequest._FinalStage userId(@NotNull java.lang.String userId)
The external_id you have defined for the contact.
The external_id you have defined for the contact.
- Specified by:
userIdin interfaceContactReplyUserIdRequest.UserIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentFiles
public ContactReplyUserIdRequest._FinalStage attachmentFiles(java.util.List<ConversationAttachmentFiles> attachmentFiles)
A list of files that will be added as attachments. You can include up to 10 files.
- Specified by:
attachmentFilesin interfaceContactReplyUserIdRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentFiles
public ContactReplyUserIdRequest._FinalStage attachmentFiles(java.util.Optional<java.util.List<ConversationAttachmentFiles>> attachmentFiles)
A list of files that will be added as attachments. You can include up to 10 files.
- Specified by:
attachmentFilesin interfaceContactReplyUserIdRequest._FinalStage
-
replyOptions
public ContactReplyUserIdRequest._FinalStage replyOptions(java.util.List<ContactReplyUserIdRequest.ReplyOptionsItem> replyOptions)
The quick reply selection the contact wishes to respond with. These map to buttons displayed in the Messenger UI if sent by a bot, or the reply options sent by an Admin via the API.
- Specified by:
replyOptionsin interfaceContactReplyUserIdRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
replyOptions
public ContactReplyUserIdRequest._FinalStage replyOptions(java.util.Optional<java.util.List<ContactReplyUserIdRequest.ReplyOptionsItem>> replyOptions)
The quick reply selection the contact wishes to respond with. These map to buttons displayed in the Messenger UI if sent by a bot, or the reply options sent by an Admin via the API.
- Specified by:
replyOptionsin interfaceContactReplyUserIdRequest._FinalStage
-
attachmentUrls
public ContactReplyUserIdRequest._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 interfaceContactReplyUserIdRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentUrls
public ContactReplyUserIdRequest._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 interfaceContactReplyUserIdRequest._FinalStage
-
createdAt
public ContactReplyUserIdRequest._FinalStage createdAt(java.lang.Integer createdAt)
The time the reply was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceContactReplyUserIdRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ContactReplyUserIdRequest._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 interfaceContactReplyUserIdRequest._FinalStage
-
build
public ContactReplyUserIdRequest build()
- Specified by:
buildin interfaceContactReplyUserIdRequest._FinalStage
-
-