Class Ticket.Builder
- java.lang.Object
-
- com.intercom.api.resources.tickets.types.Ticket.Builder
-
- All Implemented Interfaces:
Ticket._FinalStage,Ticket.CategoryStage,Ticket.ContactsStage,Ticket.IdStage,Ticket.TicketIdStage
- Enclosing class:
- Ticket
public static final class Ticket.Builder extends java.lang.Object implements Ticket.IdStage, Ticket.TicketIdStage, Ticket.CategoryStage, Ticket.ContactsStage, Ticket._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ticket._FinalStageadminAssigneeId(java.lang.String adminAssigneeId)The id representing the admin assigned to the ticket.Ticket._FinalStageadminAssigneeId(java.util.Optional<java.lang.String> adminAssigneeId)The id representing the admin assigned to the ticket.Ticketbuild()Ticket.ContactsStagecategory(Ticket.Category category)Category of the Ticket.Ticket._FinalStagecontacts(TicketContacts contacts)Ticket._FinalStagecreatedAt(java.lang.Integer createdAt)The time the ticket was created as a UTC Unix timestamp.Ticket._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the ticket was created as a UTC Unix timestamp.Ticket.Builderfrom(Ticket other)Ticket.TicketIdStageid(java.lang.String id)The unique identifier for the ticket which is given by Intercom.Ticket._FinalStageisShared(java.lang.Boolean isShared)Whether or not the ticket is shared with the customer.Ticket._FinalStageisShared(java.util.Optional<java.lang.Boolean> isShared)Whether or not the ticket is shared with the customer.Ticket._FinalStagelinkedObjects(LinkedObjectList linkedObjects)Ticket._FinalStagelinkedObjects(java.util.Optional<LinkedObjectList> linkedObjects)Ticket._FinalStageopen(java.lang.Boolean open)Whether or not the ticket is open.Ticket._FinalStageopen(java.util.Optional<java.lang.Boolean> open)Whether or not the ticket is open.Ticket._FinalStageputAllTicketAttributes(java.util.Map<java.lang.String,java.lang.Object> ticketAttributes)Ticket._FinalStagesnoozedUntil(java.lang.Integer snoozedUntil)The time the ticket will be snoozed until as a UTC Unix timestamp.Ticket._FinalStagesnoozedUntil(java.util.Optional<java.lang.Integer> snoozedUntil)The time the ticket will be snoozed until as a UTC Unix timestamp.Ticket._FinalStageteamAssigneeId(java.lang.String teamAssigneeId)The id representing the team assigned to the ticket.Ticket._FinalStageteamAssigneeId(java.util.Optional<java.lang.String> teamAssigneeId)The id representing the team assigned to the ticket.Ticket._FinalStageticketAttributes(java.lang.String key, java.lang.Object value)Ticket._FinalStageticketAttributes(java.util.Map<java.lang.String,java.lang.Object> ticketAttributes)Ticket.CategoryStageticketId(java.lang.String ticketId)The ID of the Ticket used in the Intercom Inbox and Messenger.Ticket._FinalStageticketParts(TicketParts ticketParts)Ticket._FinalStageticketParts(java.util.Optional<TicketParts> ticketParts)Ticket._FinalStageticketState(TicketState ticketState)Ticket._FinalStageticketState(java.util.Optional<TicketState> ticketState)Ticket._FinalStageticketType(TicketType ticketType)Ticket._FinalStageticketType(java.util.Optional<TicketType> ticketType)Ticket._FinalStageupdatedAt(java.lang.Integer updatedAt)The last time the ticket was updated as a UTC Unix timestamp.Ticket._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The last time the ticket was updated as a UTC Unix timestamp.
-
-
-
Method Detail
-
from
public Ticket.Builder from(Ticket other)
- Specified by:
fromin interfaceTicket.IdStage
-
id
public Ticket.TicketIdStage id(@NotNull java.lang.String id)
The unique identifier for the ticket which is given by Intercom.
The unique identifier for the ticket which is given by Intercom.
- Specified by:
idin interfaceTicket.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketId
public Ticket.CategoryStage ticketId(@NotNull java.lang.String ticketId)
The ID of the Ticket used in the Intercom Inbox and Messenger. Do not use ticket_id for API queries.
The ID of the Ticket used in the Intercom Inbox and Messenger. Do not use ticket_id for API queries.
- Specified by:
ticketIdin interfaceTicket.TicketIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
category
public Ticket.ContactsStage category(@NotNull Ticket.Category category)
Category of the Ticket.
Category of the Ticket.
- Specified by:
categoryin interfaceTicket.CategoryStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contacts
public Ticket._FinalStage contacts(@NotNull TicketContacts contacts)
- Specified by:
contactsin interfaceTicket.ContactsStage
-
isShared
public Ticket._FinalStage isShared(java.lang.Boolean isShared)
Whether or not the ticket is shared with the customer.
- Specified by:
isSharedin interfaceTicket._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isShared
public Ticket._FinalStage isShared(java.util.Optional<java.lang.Boolean> isShared)
Whether or not the ticket is shared with the customer.
- Specified by:
isSharedin interfaceTicket._FinalStage
-
ticketParts
public Ticket._FinalStage ticketParts(TicketParts ticketParts)
- Specified by:
ticketPartsin interfaceTicket._FinalStage
-
ticketParts
public Ticket._FinalStage ticketParts(java.util.Optional<TicketParts> ticketParts)
- Specified by:
ticketPartsin interfaceTicket._FinalStage
-
linkedObjects
public Ticket._FinalStage linkedObjects(LinkedObjectList linkedObjects)
- Specified by:
linkedObjectsin interfaceTicket._FinalStage
-
linkedObjects
public Ticket._FinalStage linkedObjects(java.util.Optional<LinkedObjectList> linkedObjects)
- Specified by:
linkedObjectsin interfaceTicket._FinalStage
-
snoozedUntil
public Ticket._FinalStage snoozedUntil(java.lang.Integer snoozedUntil)
The time the ticket will be snoozed until as a UTC Unix timestamp. If null, the ticket is not currently snoozed.
- Specified by:
snoozedUntilin interfaceTicket._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
snoozedUntil
public Ticket._FinalStage snoozedUntil(java.util.Optional<java.lang.Integer> snoozedUntil)
The time the ticket will be snoozed until as a UTC Unix timestamp. If null, the ticket is not currently snoozed.
- Specified by:
snoozedUntilin interfaceTicket._FinalStage
-
open
public Ticket._FinalStage open(java.lang.Boolean open)
Whether or not the ticket is open. If false, the ticket is closed.
- Specified by:
openin interfaceTicket._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
open
public Ticket._FinalStage open(java.util.Optional<java.lang.Boolean> open)
Whether or not the ticket is open. If false, the ticket is closed.
- Specified by:
openin interfaceTicket._FinalStage
-
updatedAt
public Ticket._FinalStage updatedAt(java.lang.Integer updatedAt)
The last time the ticket was updated as a UTC Unix timestamp.
- Specified by:
updatedAtin interfaceTicket._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Ticket._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The last time the ticket was updated as a UTC Unix timestamp.
- Specified by:
updatedAtin interfaceTicket._FinalStage
-
createdAt
public Ticket._FinalStage createdAt(java.lang.Integer createdAt)
The time the ticket was created as a UTC Unix timestamp.
- Specified by:
createdAtin interfaceTicket._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Ticket._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the ticket was created as a UTC Unix timestamp.
- Specified by:
createdAtin interfaceTicket._FinalStage
-
teamAssigneeId
public Ticket._FinalStage teamAssigneeId(java.lang.String teamAssigneeId)
The id representing the team assigned to the ticket.
- Specified by:
teamAssigneeIdin interfaceTicket._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
teamAssigneeId
public Ticket._FinalStage teamAssigneeId(java.util.Optional<java.lang.String> teamAssigneeId)
The id representing the team assigned to the ticket.
- Specified by:
teamAssigneeIdin interfaceTicket._FinalStage
-
adminAssigneeId
public Ticket._FinalStage adminAssigneeId(java.lang.String adminAssigneeId)
The id representing the admin assigned to the ticket.
- Specified by:
adminAssigneeIdin interfaceTicket._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminAssigneeId
public Ticket._FinalStage adminAssigneeId(java.util.Optional<java.lang.String> adminAssigneeId)
The id representing the admin assigned to the ticket.
- Specified by:
adminAssigneeIdin interfaceTicket._FinalStage
-
ticketType
public Ticket._FinalStage ticketType(TicketType ticketType)
- Specified by:
ticketTypein interfaceTicket._FinalStage
-
ticketType
public Ticket._FinalStage ticketType(java.util.Optional<TicketType> ticketType)
- Specified by:
ticketTypein interfaceTicket._FinalStage
-
ticketState
public Ticket._FinalStage ticketState(TicketState ticketState)
- Specified by:
ticketStatein interfaceTicket._FinalStage
-
ticketState
public Ticket._FinalStage ticketState(java.util.Optional<TicketState> ticketState)
- Specified by:
ticketStatein interfaceTicket._FinalStage
-
ticketAttributes
public Ticket._FinalStage ticketAttributes(java.lang.String key, java.lang.Object value)
- Specified by:
ticketAttributesin interfaceTicket._FinalStage
-
putAllTicketAttributes
public Ticket._FinalStage putAllTicketAttributes(java.util.Map<java.lang.String,java.lang.Object> ticketAttributes)
- Specified by:
putAllTicketAttributesin interfaceTicket._FinalStage
-
ticketAttributes
public Ticket._FinalStage ticketAttributes(java.util.Map<java.lang.String,java.lang.Object> ticketAttributes)
- Specified by:
ticketAttributesin interfaceTicket._FinalStage
-
build
public Ticket build()
- Specified by:
buildin interfaceTicket._FinalStage
-
-