Class TicketPart.Builder
java.lang.Object
com.intercom.api.resources.tickets.types.TicketPart.Builder
- All Implemented Interfaces:
TicketPart._FinalStage,TicketPart.CreatedAtStage,TicketPart.IdStage,TicketPart.PartTypeStage,TicketPart.TicketStateStage
- Enclosing class:
TicketPart
public static final class TicketPart.Builder
extends Object
implements TicketPart.IdStage, TicketPart.PartTypeStage, TicketPart.TicketStateStage, TicketPart.CreatedAtStage, TicketPart._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionassignedTo(Reference assignedTo) The id of the admin that was assigned the ticket by this ticket_part (null if there has been no change in assignment.)assignedTo(Optional<Reference> assignedTo) attachments(List<PartAttachment> attachments) A list of attachments for the part.attachments(Optional<List<PartAttachment>> attachments) author(TicketPartAuthor author) author(Optional<TicketPartAuthor> author) The message body, which may contain HTML.build()createdAt(int createdAt) The time the ticket part was created.externalId(String externalId) The external id of the ticket partexternalId(Optional<String> externalId) from(TicketPart other) The id representing the ticket part.The type of ticket part.previousTicketState(TicketPart.PreviousTicketState previousTicketState) The previous state of the ticket.previousTicketState(Optional<TicketPart.PreviousTicketState> previousTicketState) Whether or not the ticket part has been redacted.ticketState(TicketPart.TicketState ticketState) The state of the ticket.The last time the ticket part was updated.
-
Method Details
-
from
- Specified by:
fromin interfaceTicketPart.IdStage
-
id
The id representing the ticket part.
- Specified by:
idin interfaceTicketPart.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
partType
The type of ticket part.
- Specified by:
partTypein interfaceTicketPart.PartTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketState
The state of the ticket.
- Specified by:
ticketStatein interfaceTicketPart.TicketStateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The time the ticket part was created.
- Specified by:
createdAtin interfaceTicketPart.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redacted
Whether or not the ticket part has been redacted.
- Specified by:
redactedin interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redacted
- Specified by:
redactedin interfaceTicketPart._FinalStage
-
externalId
The external id of the ticket part
- Specified by:
externalIdin interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
- Specified by:
externalIdin interfaceTicketPart._FinalStage
-
attachments
A list of attachments for the part.
- Specified by:
attachmentsin interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachments
- Specified by:
attachmentsin interfaceTicketPart._FinalStage
-
author
- Specified by:
authorin interfaceTicketPart._FinalStage
-
author
- Specified by:
authorin interfaceTicketPart._FinalStage
-
assignedTo
The id of the admin that was assigned the ticket by this ticket_part (null if there has been no change in assignment.)
- Specified by:
assignedToin interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assignedTo
- Specified by:
assignedToin interfaceTicketPart._FinalStage
-
updatedAt
The last time the ticket part was updated.
- Specified by:
updatedAtin interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
- Specified by:
updatedAtin interfaceTicketPart._FinalStage
-
previousTicketState
public TicketPart._FinalStage previousTicketState(TicketPart.PreviousTicketState previousTicketState) The previous state of the ticket.
- Specified by:
previousTicketStatein interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
previousTicketState
public TicketPart._FinalStage previousTicketState(Optional<TicketPart.PreviousTicketState> previousTicketState) - Specified by:
previousTicketStatein interfaceTicketPart._FinalStage
-
body
The message body, which may contain HTML.
- Specified by:
bodyin interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
- Specified by:
bodyin interfaceTicketPart._FinalStage
-
build
- Specified by:
buildin interfaceTicketPart._FinalStage
-