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 Object
implements CreateTicketRequest.TicketTypeIdStage, CreateTicketRequest._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllContacts(List<CreateTicketRequest.ContactsItem> contacts) The list of contacts (users or leads) affected by this ticket.addContacts(CreateTicketRequest.ContactsItem contacts) The list of contacts (users or leads) affected by this ticket.build()The ID of the company that the ticket is associated with.contacts(List<CreateTicketRequest.ContactsItem> contacts) The time the ticket was created.from(CreateTicketRequest other) ticketAttributes(Map<String, Object> ticketAttributes) ticketAttributes(Optional<Map<String, Object>> ticketAttributes) ticketTypeId(String ticketTypeId) The ID of the type of ticket you want to create
-
Method Details
-
from
- Specified by:
fromin interfaceCreateTicketRequest.TicketTypeIdStage
-
ticketTypeId
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.
-
ticketAttributes
- Specified by:
ticketAttributesin interfaceCreateTicketRequest._FinalStage
-
ticketAttributes
public CreateTicketRequest._FinalStage ticketAttributes(Optional<Map<String, Object>> ticketAttributes) - Specified by:
ticketAttributesin interfaceCreateTicketRequest._FinalStage
-
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
- Specified by:
createdAtin interfaceCreateTicketRequest._FinalStage
-
companyId
The ID of the company that the ticket is associated with. The ID that you set upon company creation.
- Specified by:
companyIdin interfaceCreateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
- Specified by:
companyIdin interfaceCreateTicketRequest._FinalStage
-
addAllContacts
public CreateTicketRequest._FinalStage addAllContacts(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
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
- Specified by:
contactsin interfaceCreateTicketRequest._FinalStage
-
build
- Specified by:
buildin interfaceCreateTicketRequest._FinalStage
-