Class EnqueueCreateTicketRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.tickets.requests.EnqueueCreateTicketRequest.Builder
-
- All Implemented Interfaces:
EnqueueCreateTicketRequest._FinalStage,EnqueueCreateTicketRequest.TicketTypeIdStage
- Enclosing class:
- EnqueueCreateTicketRequest
public static final class EnqueueCreateTicketRequest.Builder extends java.lang.Object implements EnqueueCreateTicketRequest.TicketTypeIdStage, EnqueueCreateTicketRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnqueueCreateTicketRequest._FinalStageaddAllContacts(java.util.List<EnqueueCreateTicketRequest.ContactsItem> contacts)The list of contacts (users or leads) affected by this ticket.EnqueueCreateTicketRequest._FinalStageaddContacts(EnqueueCreateTicketRequest.ContactsItem contacts)The list of contacts (users or leads) affected by this ticket.EnqueueCreateTicketRequest._FinalStageassignment(EnqueueCreateTicketRequest.Assignment assignment)EnqueueCreateTicketRequest._FinalStageassignment(java.util.Optional<EnqueueCreateTicketRequest.Assignment> assignment)EnqueueCreateTicketRequestbuild()EnqueueCreateTicketRequest._FinalStagecompanyId(java.lang.String companyId)The ID of the company that the ticket is associated with.EnqueueCreateTicketRequest._FinalStagecompanyId(java.util.Optional<java.lang.String> companyId)The ID of the company that the ticket is associated with.EnqueueCreateTicketRequest._FinalStagecontacts(java.util.List<EnqueueCreateTicketRequest.ContactsItem> contacts)The list of contacts (users or leads) affected by this ticket.EnqueueCreateTicketRequest._FinalStageconversationToLinkId(java.lang.String conversationToLinkId)The ID of the conversation you want to link to the ticket.EnqueueCreateTicketRequest._FinalStageconversationToLinkId(java.util.Optional<java.lang.String> conversationToLinkId)The ID of the conversation you want to link to the ticket.EnqueueCreateTicketRequest._FinalStagecreatedAt(java.lang.Integer createdAt)The time the ticket was created.EnqueueCreateTicketRequest._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the ticket was created.EnqueueCreateTicketRequest.Builderfrom(EnqueueCreateTicketRequest other)EnqueueCreateTicketRequest._FinalStageskipNotifications(java.lang.Boolean skipNotifications)Option to disable notifications when a Ticket is created.EnqueueCreateTicketRequest._FinalStageskipNotifications(java.util.Optional<java.lang.Boolean> skipNotifications)Option to disable notifications when a Ticket is created.EnqueueCreateTicketRequest._FinalStageticketTypeId(java.lang.String ticketTypeId)The ID of the type of ticket you want to create
-
-
-
Method Detail
-
from
public EnqueueCreateTicketRequest.Builder from(EnqueueCreateTicketRequest other)
- Specified by:
fromin interfaceEnqueueCreateTicketRequest.TicketTypeIdStage
-
ticketTypeId
public EnqueueCreateTicketRequest._FinalStage ticketTypeId(@NotNull java.lang.String ticketTypeId)
The ID of the type of ticket you want to create
The ID of the type of ticket you want to create
- Specified by:
ticketTypeIdin interfaceEnqueueCreateTicketRequest.TicketTypeIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
skipNotifications
public EnqueueCreateTicketRequest._FinalStage skipNotifications(java.lang.Boolean skipNotifications)
Option to disable notifications when a Ticket is created.
- Specified by:
skipNotificationsin interfaceEnqueueCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
skipNotifications
public EnqueueCreateTicketRequest._FinalStage skipNotifications(java.util.Optional<java.lang.Boolean> skipNotifications)
Option to disable notifications when a Ticket is created.
- Specified by:
skipNotificationsin interfaceEnqueueCreateTicketRequest._FinalStage
-
assignment
public EnqueueCreateTicketRequest._FinalStage assignment(EnqueueCreateTicketRequest.Assignment assignment)
- Specified by:
assignmentin interfaceEnqueueCreateTicketRequest._FinalStage
-
assignment
public EnqueueCreateTicketRequest._FinalStage assignment(java.util.Optional<EnqueueCreateTicketRequest.Assignment> assignment)
- Specified by:
assignmentin interfaceEnqueueCreateTicketRequest._FinalStage
-
createdAt
public EnqueueCreateTicketRequest._FinalStage createdAt(java.lang.Integer createdAt)
The time the ticket was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceEnqueueCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public EnqueueCreateTicketRequest._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the ticket was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceEnqueueCreateTicketRequest._FinalStage
-
companyId
public EnqueueCreateTicketRequest._FinalStage companyId(java.lang.String companyId)
The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom
- Specified by:
companyIdin interfaceEnqueueCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
public EnqueueCreateTicketRequest._FinalStage companyId(java.util.Optional<java.lang.String> companyId)
The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom
- Specified by:
companyIdin interfaceEnqueueCreateTicketRequest._FinalStage
-
conversationToLinkId
public EnqueueCreateTicketRequest._FinalStage conversationToLinkId(java.lang.String conversationToLinkId)
The ID of the conversation you want to link to the ticket. Here are the valid ways of linking two tickets:
- conversation | back-office ticket
- customer tickets | non-shared back-office ticket
- conversation | tracker ticket
- customer ticket | tracker ticket
- Specified by:
conversationToLinkIdin interfaceEnqueueCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
conversationToLinkId
public EnqueueCreateTicketRequest._FinalStage conversationToLinkId(java.util.Optional<java.lang.String> conversationToLinkId)
The ID of the conversation you want to link to the ticket. Here are the valid ways of linking two tickets:
- conversation | back-office ticket
- customer tickets | non-shared back-office ticket
- conversation | tracker ticket
- customer ticket | tracker ticket
- Specified by:
conversationToLinkIdin interfaceEnqueueCreateTicketRequest._FinalStage
-
addAllContacts
public EnqueueCreateTicketRequest._FinalStage addAllContacts(java.util.List<EnqueueCreateTicketRequest.ContactsItem> contacts)
The list of contacts (users or leads) affected by this ticket. Currently only one is allowed
- Specified by:
addAllContactsin interfaceEnqueueCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addContacts
public EnqueueCreateTicketRequest._FinalStage addContacts(EnqueueCreateTicketRequest.ContactsItem contacts)
The list of contacts (users or leads) affected by this ticket. Currently only one is allowed
- Specified by:
addContactsin interfaceEnqueueCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contacts
public EnqueueCreateTicketRequest._FinalStage contacts(java.util.List<EnqueueCreateTicketRequest.ContactsItem> contacts)
The list of contacts (users or leads) affected by this ticket. Currently only one is allowed
- Specified by:
contactsin interfaceEnqueueCreateTicketRequest._FinalStage
-
build
public EnqueueCreateTicketRequest build()
- Specified by:
buildin interfaceEnqueueCreateTicketRequest._FinalStage
-
-