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