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 java.lang.Object implements TicketPart.IdStage, TicketPart.PartTypeStage, TicketPart.TicketStateStage, TicketPart.CreatedAtStage, TicketPart._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketPart._FinalStageassignedTo(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.)TicketPart._FinalStageassignedTo(java.util.Optional<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.)TicketPart._FinalStageattachments(java.util.List<PartAttachment> attachments)A list of attachments for the part.TicketPart._FinalStageattachments(java.util.Optional<java.util.List<PartAttachment>> attachments)A list of attachments for the part.TicketPart._FinalStageauthor(TicketPartAuthor author)TicketPart._FinalStageauthor(java.util.Optional<TicketPartAuthor> author)TicketPart._FinalStagebody(java.lang.String body)The message body, which may contain HTML.TicketPart._FinalStagebody(java.util.Optional<java.lang.String> body)The message body, which may contain HTML.TicketPartbuild()TicketPart._FinalStagecreatedAt(int createdAt)The time the ticket part was created.TicketPart._FinalStageexternalId(java.lang.String externalId)The external id of the ticket partTicketPart._FinalStageexternalId(java.util.Optional<java.lang.String> externalId)The external id of the ticket partTicketPart.Builderfrom(TicketPart other)TicketPart.PartTypeStageid(java.lang.String id)The id representing the ticket part.TicketPart.TicketStateStagepartType(java.lang.String partType)The type of ticket part.TicketPart._FinalStagepreviousTicketState(TicketPart.PreviousTicketState previousTicketState)The previous state of the ticket.TicketPart._FinalStagepreviousTicketState(java.util.Optional<TicketPart.PreviousTicketState> previousTicketState)The previous state of the ticket.TicketPart._FinalStageredacted(java.lang.Boolean redacted)Whether or not the ticket part has been redacted.TicketPart._FinalStageredacted(java.util.Optional<java.lang.Boolean> redacted)Whether or not the ticket part has been redacted.TicketPart.CreatedAtStageticketState(TicketPart.TicketState ticketState)The state of the ticket.TicketPart._FinalStageupdatedAt(java.lang.Integer updatedAt)The last time the ticket part was updated.TicketPart._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The last time the ticket part was updated.
-
-
-
Method Detail
-
from
public TicketPart.Builder from(TicketPart other)
- Specified by:
fromin interfaceTicketPart.IdStage
-
id
public TicketPart.PartTypeStage id(@NotNull java.lang.String id)
The id representing the ticket part.The id representing the ticket part.
- Specified by:
idin interfaceTicketPart.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
partType
public TicketPart.TicketStateStage partType(@NotNull java.lang.String partType)
The type of ticket part.The type of ticket part.
- Specified by:
partTypein interfaceTicketPart.PartTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketState
public TicketPart.CreatedAtStage ticketState(@NotNull TicketPart.TicketState ticketState)
The state of the ticket.The state of the ticket.
- Specified by:
ticketStatein interfaceTicketPart.TicketStateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public TicketPart._FinalStage createdAt(int createdAt)
The time the ticket part was created.The time the ticket part was created.
- Specified by:
createdAtin interfaceTicketPart.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redacted
public TicketPart._FinalStage redacted(java.lang.Boolean 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
public TicketPart._FinalStage redacted(java.util.Optional<java.lang.Boolean> redacted)
Whether or not the ticket part has been redacted.
- Specified by:
redactedin interfaceTicketPart._FinalStage
-
externalId
public TicketPart._FinalStage externalId(java.lang.String 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
public TicketPart._FinalStage externalId(java.util.Optional<java.lang.String> externalId)
The external id of the ticket part
- Specified by:
externalIdin interfaceTicketPart._FinalStage
-
attachments
public TicketPart._FinalStage attachments(java.util.List<PartAttachment> 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
public TicketPart._FinalStage attachments(java.util.Optional<java.util.List<PartAttachment>> attachments)
A list of attachments for the part.
- Specified by:
attachmentsin interfaceTicketPart._FinalStage
-
author
public TicketPart._FinalStage author(TicketPartAuthor author)
- Specified by:
authorin interfaceTicketPart._FinalStage
-
author
public TicketPart._FinalStage author(java.util.Optional<TicketPartAuthor> author)
- Specified by:
authorin interfaceTicketPart._FinalStage
-
assignedTo
public TicketPart._FinalStage assignedTo(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.)
- Specified by:
assignedToin interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assignedTo
public TicketPart._FinalStage assignedTo(java.util.Optional<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.)
- Specified by:
assignedToin interfaceTicketPart._FinalStage
-
updatedAt
public TicketPart._FinalStage updatedAt(java.lang.Integer 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
public TicketPart._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The last time the ticket part was updated.
- 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(java.util.Optional<TicketPart.PreviousTicketState> previousTicketState)
The previous state of the ticket.
- Specified by:
previousTicketStatein interfaceTicketPart._FinalStage
-
body
public TicketPart._FinalStage body(java.lang.String 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
public TicketPart._FinalStage body(java.util.Optional<java.lang.String> body)
The message body, which may contain HTML.
- Specified by:
bodyin interfaceTicketPart._FinalStage
-
build
public TicketPart build()
- Specified by:
buildin interfaceTicketPart._FinalStage
-
-