Class TicketPart.Builder
- java.lang.Object
-
- com.intercom.api.resources.tickets.types.TicketPart.Builder
-
- All Implemented Interfaces:
TicketPart._FinalStage,TicketPart.AuthorStage,TicketPart.CreatedAtStage,TicketPart.IdStage,TicketPart.PartTypeStage,TicketPart.RedactedStage,TicketPart.TypeStage,TicketPart.UpdatedAtStage
- Enclosing class:
- TicketPart
public static final class TicketPart.Builder extends java.lang.Object implements TicketPart.TypeStage, TicketPart.IdStage, TicketPart.PartTypeStage, TicketPart.CreatedAtStage, TicketPart.UpdatedAtStage, TicketPart.AuthorStage, TicketPart.RedactedStage, TicketPart._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketPart._FinalStageappPackageCode(java.lang.String appPackageCode)The app package code if this part was created via API.TicketPart._FinalStageappPackageCode(java.util.Optional<java.lang.String> appPackageCode)The app package code if this part was created via API.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.RedactedStageauthor(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.UpdatedAtStagecreatedAt(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.CreatedAtStagepartType(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(boolean redacted)Whether or not the ticket part has been redacted.TicketPart._FinalStageticketState(TicketPart.TicketState ticketState)The state of the ticket.TicketPart._FinalStageticketState(java.util.Optional<TicketPart.TicketState> ticketState)The state of the ticket.TicketPart.IdStagetype(java.lang.String type)Always ticket_partTicketPart.AuthorStageupdatedAt(int updatedAt)The last time the ticket part was updated.TicketPart._FinalStageupdatedAttributeData(TicketPart.UpdatedAttributeData updatedAttributeData)The updated attribute data of the ticket part.TicketPart._FinalStageupdatedAttributeData(java.util.Optional<TicketPart.UpdatedAttributeData> updatedAttributeData)The updated attribute data of the ticket part.
-
-
-
Method Detail
-
from
public TicketPart.Builder from(TicketPart other)
- Specified by:
fromin interfaceTicketPart.TypeStage
-
type
public TicketPart.IdStage type(@NotNull java.lang.String type)
Always ticket_part
Always ticket_part
- Specified by:
typein interfaceTicketPart.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
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.CreatedAtStage 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.
-
createdAt
public TicketPart.UpdatedAtStage 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.
-
updatedAt
public TicketPart.AuthorStage updatedAt(int updatedAt)
The last time the ticket part was updated.
The last time the ticket part was updated.
- Specified by:
updatedAtin interfaceTicketPart.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
author
public TicketPart.RedactedStage author(@NotNull TicketPartAuthor author)
- Specified by:
authorin interfaceTicketPart.AuthorStage
-
redacted
public TicketPart._FinalStage redacted(boolean redacted)
Whether or not the ticket part has been redacted.
Whether or not the ticket part has been redacted.
- Specified by:
redactedin interfaceTicketPart.RedactedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAttributeData
public TicketPart._FinalStage updatedAttributeData(TicketPart.UpdatedAttributeData updatedAttributeData)
The updated attribute data of the ticket part. Only present for attribute update parts.
- Specified by:
updatedAttributeDatain interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAttributeData
public TicketPart._FinalStage updatedAttributeData(java.util.Optional<TicketPart.UpdatedAttributeData> updatedAttributeData)
The updated attribute data of the ticket part. Only present for attribute update parts.
- Specified by:
updatedAttributeDatain interfaceTicketPart._FinalStage
-
appPackageCode
public TicketPart._FinalStage appPackageCode(java.lang.String appPackageCode)
The app package code if this part was created via API. Note this field won't show if the part was not created via API.
- Specified by:
appPackageCodein interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
appPackageCode
public TicketPart._FinalStage appPackageCode(java.util.Optional<java.lang.String> appPackageCode)
The app package code if this part was created via API. Note this field won't show if the part was not created via API.
- Specified by:
appPackageCodein 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
-
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
-
ticketState
public TicketPart._FinalStage ticketState(TicketPart.TicketState ticketState)
The state of the ticket.
- Specified by:
ticketStatein interfaceTicketPart._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketState
public TicketPart._FinalStage ticketState(java.util.Optional<TicketPart.TicketState> ticketState)
The state of the ticket.
- Specified by:
ticketStatein 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
-
-