Class ContactReplyEmailRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.ContactReplyEmailRequest.Builder
-
- All Implemented Interfaces:
ContactReplyEmailRequest._FinalStage,ContactReplyEmailRequest.BodyStage,ContactReplyEmailRequest.EmailStage
- Enclosing class:
- ContactReplyEmailRequest
public static final class ContactReplyEmailRequest.Builder extends java.lang.Object implements ContactReplyEmailRequest.BodyStage, ContactReplyEmailRequest.EmailStage, ContactReplyEmailRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactReplyEmailRequest._FinalStageattachmentFiles(java.util.List<ConversationAttachmentFiles> attachmentFiles)A list of files that will be added as attachments.ContactReplyEmailRequest._FinalStageattachmentFiles(java.util.Optional<java.util.List<ConversationAttachmentFiles>> attachmentFiles)A list of files that will be added as attachments.ContactReplyEmailRequest._FinalStageattachmentUrls(java.util.List<java.lang.String> attachmentUrls)A list of image URLs that will be added as attachments.ContactReplyEmailRequest._FinalStageattachmentUrls(java.util.Optional<java.util.List<java.lang.String>> attachmentUrls)A list of image URLs that will be added as attachments.ContactReplyEmailRequest.EmailStagebody(java.lang.String body)The text body of the comment.ContactReplyEmailRequestbuild()ContactReplyEmailRequest._FinalStagecreatedAt(java.lang.Integer createdAt)The time the reply was created.ContactReplyEmailRequest._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the reply was created.ContactReplyEmailRequest._FinalStageemail(java.lang.String email)The email you have defined for the user.ContactReplyEmailRequest.Builderfrom(ContactReplyEmailRequest other)ContactReplyEmailRequest._FinalStagereplyOptions(java.util.List<ContactReplyEmailRequest.ReplyOptionsItem> replyOptions)The quick reply selection the contact wishes to respond with.ContactReplyEmailRequest._FinalStagereplyOptions(java.util.Optional<java.util.List<ContactReplyEmailRequest.ReplyOptionsItem>> replyOptions)The quick reply selection the contact wishes to respond with.
-
-
-
Method Detail
-
from
public ContactReplyEmailRequest.Builder from(ContactReplyEmailRequest other)
- Specified by:
fromin interfaceContactReplyEmailRequest.BodyStage
-
body
public ContactReplyEmailRequest.EmailStage body(@NotNull java.lang.String body)
The text body of the comment.
The text body of the comment.
- Specified by:
bodyin interfaceContactReplyEmailRequest.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public ContactReplyEmailRequest._FinalStage email(@NotNull java.lang.String email)
The email you have defined for the user.
The email you have defined for the user.
- Specified by:
emailin interfaceContactReplyEmailRequest.EmailStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentFiles
public ContactReplyEmailRequest._FinalStage attachmentFiles(java.util.List<ConversationAttachmentFiles> attachmentFiles)
A list of files that will be added as attachments.
- Specified by:
attachmentFilesin interfaceContactReplyEmailRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentFiles
public ContactReplyEmailRequest._FinalStage attachmentFiles(java.util.Optional<java.util.List<ConversationAttachmentFiles>> attachmentFiles)
A list of files that will be added as attachments.
- Specified by:
attachmentFilesin interfaceContactReplyEmailRequest._FinalStage
-
replyOptions
public ContactReplyEmailRequest._FinalStage replyOptions(java.util.List<ContactReplyEmailRequest.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 interfaceContactReplyEmailRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
replyOptions
public ContactReplyEmailRequest._FinalStage replyOptions(java.util.Optional<java.util.List<ContactReplyEmailRequest.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 interfaceContactReplyEmailRequest._FinalStage
-
attachmentUrls
public ContactReplyEmailRequest._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 interfaceContactReplyEmailRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachmentUrls
public ContactReplyEmailRequest._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 interfaceContactReplyEmailRequest._FinalStage
-
createdAt
public ContactReplyEmailRequest._FinalStage createdAt(java.lang.Integer createdAt)
The time the reply was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceContactReplyEmailRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ContactReplyEmailRequest._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 interfaceContactReplyEmailRequest._FinalStage
-
build
public ContactReplyEmailRequest build()
- Specified by:
buildin interfaceContactReplyEmailRequest._FinalStage
-
-