Class CreateTicketRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.tickets.requests.CreateTicketRequest.Builder
-
- All Implemented Interfaces:
CreateTicketRequest._FinalStage,CreateTicketRequest.TicketTypeIdStage
- Enclosing class:
- CreateTicketRequest
public static final class CreateTicketRequest.Builder extends java.lang.Object implements CreateTicketRequest.TicketTypeIdStage, CreateTicketRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTicketRequest._FinalStageaddAllContacts(java.util.List<CreateTicketRequest.ContactsItem> contacts)The list of contacts (users or leads) affected by this ticket.CreateTicketRequest._FinalStageaddContacts(CreateTicketRequest.ContactsItem contacts)The list of contacts (users or leads) affected by this ticket.CreateTicketRequest._FinalStageassignment(CreateTicketRequest.Assignment assignment)CreateTicketRequest._FinalStageassignment(java.util.Optional<CreateTicketRequest.Assignment> assignment)CreateTicketRequestbuild()CreateTicketRequest._FinalStagecompanyId(java.lang.String companyId)The ID of the company that the ticket is associated with.CreateTicketRequest._FinalStagecompanyId(java.util.Optional<java.lang.String> companyId)The ID of the company that the ticket is associated with.CreateTicketRequest._FinalStagecontacts(java.util.List<CreateTicketRequest.ContactsItem> contacts)The list of contacts (users or leads) affected by this ticket.CreateTicketRequest._FinalStageconversationToLinkId(java.lang.String conversationToLinkId)The ID of the conversation you want to link to the ticket.CreateTicketRequest._FinalStageconversationToLinkId(java.util.Optional<java.lang.String> conversationToLinkId)The ID of the conversation you want to link to the ticket.CreateTicketRequest._FinalStagecreatedAt(java.lang.Integer createdAt)The time the ticket was created.CreateTicketRequest._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the ticket was created.CreateTicketRequest.Builderfrom(CreateTicketRequest other)CreateTicketRequest._FinalStageskipNotifications(java.lang.Boolean skipNotifications)Option to disable notifications when a Ticket is created.CreateTicketRequest._FinalStageskipNotifications(java.util.Optional<java.lang.Boolean> skipNotifications)Option to disable notifications when a Ticket is created.CreateTicketRequest._FinalStageticketTypeId(java.lang.String ticketTypeId)The ID of the type of ticket you want to create
-
-
-
Method Detail
-
from
public CreateTicketRequest.Builder from(CreateTicketRequest other)
- Specified by:
fromin interfaceCreateTicketRequest.TicketTypeIdStage
-
ticketTypeId
public CreateTicketRequest._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 interfaceCreateTicketRequest.TicketTypeIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
skipNotifications
public CreateTicketRequest._FinalStage skipNotifications(java.lang.Boolean skipNotifications)
Option to disable notifications when a Ticket is created.
- Specified by:
skipNotificationsin interfaceCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
skipNotifications
public CreateTicketRequest._FinalStage skipNotifications(java.util.Optional<java.lang.Boolean> skipNotifications)
Option to disable notifications when a Ticket is created.
- Specified by:
skipNotificationsin interfaceCreateTicketRequest._FinalStage
-
assignment
public CreateTicketRequest._FinalStage assignment(CreateTicketRequest.Assignment assignment)
- Specified by:
assignmentin interfaceCreateTicketRequest._FinalStage
-
assignment
public CreateTicketRequest._FinalStage assignment(java.util.Optional<CreateTicketRequest.Assignment> assignment)
- Specified by:
assignmentin interfaceCreateTicketRequest._FinalStage
-
createdAt
public CreateTicketRequest._FinalStage createdAt(java.lang.Integer createdAt)
The time the ticket was created. If not provided, the current time will be used.
- Specified by:
createdAtin interfaceCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public CreateTicketRequest._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 interfaceCreateTicketRequest._FinalStage
-
companyId
public CreateTicketRequest._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 interfaceCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
public CreateTicketRequest._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 interfaceCreateTicketRequest._FinalStage
-
conversationToLinkId
public CreateTicketRequest._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 interfaceCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
conversationToLinkId
public CreateTicketRequest._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 interfaceCreateTicketRequest._FinalStage
-
addAllContacts
public CreateTicketRequest._FinalStage addAllContacts(java.util.List<CreateTicketRequest.ContactsItem> contacts)
The list of contacts (users or leads) affected by this ticket. Currently only one is allowed
- Specified by:
addAllContactsin interfaceCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addContacts
public CreateTicketRequest._FinalStage addContacts(CreateTicketRequest.ContactsItem contacts)
The list of contacts (users or leads) affected by this ticket. Currently only one is allowed
- Specified by:
addContactsin interfaceCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contacts
public CreateTicketRequest._FinalStage contacts(java.util.List<CreateTicketRequest.ContactsItem> contacts)
The list of contacts (users or leads) affected by this ticket. Currently only one is allowed
- Specified by:
contactsin interfaceCreateTicketRequest._FinalStage
-
build
public CreateTicketRequest build()
- Specified by:
buildin interfaceCreateTicketRequest._FinalStage
-
-