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