Class TicketPart

java.lang.Object
com.intercom.api.resources.tickets.types.TicketPart

public final class TicketPart extends Object
  • Method Details

    • getType

      public String getType()
      Returns:
      Always ticket_part
    • getId

      public String getId()
      Returns:
      The id representing the ticket part.
    • getPartType

      public String getPartType()
      Returns:
      The type of ticket part.
    • getBody

      public Optional<String> getBody()
      Returns:
      The message body, which may contain HTML.
    • getPreviousTicketState

      public Optional<TicketPart.PreviousTicketState> getPreviousTicketState()
      Returns:
      The previous state of the ticket.
    • getTicketState

      public TicketPart.TicketState getTicketState()
      Returns:
      The state of the ticket.
    • getCreatedAt

      public int getCreatedAt()
      Returns:
      The time the ticket part was created.
    • getUpdatedAt

      public Optional<Integer> getUpdatedAt()
      Returns:
      The last time the ticket part was updated.
    • getAssignedTo

      public Optional<Reference> getAssignedTo()
      Returns:
      The id of the admin that was assigned the ticket by this ticket_part (null if there has been no change in assignment.)
    • getAuthor

      public Optional<TicketPartAuthor> getAuthor()
    • getAttachments

      public Optional<List<PartAttachment>> getAttachments()
      Returns:
      A list of attachments for the part.
    • getExternalId

      public Optional<String> getExternalId()
      Returns:
      The external id of the ticket part
    • getRedacted

      public Optional<Boolean> getRedacted()
      Returns:
      Whether or not the ticket part has been redacted.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static TicketPart.IdStage builder()