Package com.intercom.api.types
Class TicketReply.Builder
- java.lang.Object
-
- com.intercom.api.types.TicketReply.Builder
-
- All Implemented Interfaces:
TicketReply._FinalStage,TicketReply.CreatedAtStage,TicketReply.IdStage,TicketReply.PartTypeStage
- Enclosing class:
- TicketReply
public static final class TicketReply.Builder extends java.lang.Object implements TicketReply.IdStage, TicketReply.PartTypeStage, TicketReply.CreatedAtStage, TicketReply._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketReply._FinalStageattachments(java.util.List<PartAttachment> attachments)A list of attachments for the part.TicketReply._FinalStageattachments(java.util.Optional<java.util.List<PartAttachment>> attachments)A list of attachments for the part.TicketReply._FinalStageauthor(TicketPartAuthor author)TicketReply._FinalStageauthor(java.util.Optional<TicketPartAuthor> author)TicketReply._FinalStagebody(java.lang.String body)The message body, which may contain HTML.TicketReply._FinalStagebody(java.util.Optional<java.lang.String> body)The message body, which may contain HTML.TicketReplybuild()TicketReply._FinalStagecreatedAt(int createdAt)The time the note was created.TicketReply.Builderfrom(TicketReply other)TicketReply.PartTypeStageid(java.lang.String id)The id representing the part.TicketReply.CreatedAtStagepartType(TicketReply.PartType partType)Type of the partTicketReply._FinalStageredacted(java.lang.Boolean redacted)Whether or not the ticket part has been redacted.TicketReply._FinalStageredacted(java.util.Optional<java.lang.Boolean> redacted)Whether or not the ticket part has been redacted.TicketReply._FinalStageupdatedAt(java.lang.Integer updatedAt)The last time the note was updated.TicketReply._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The last time the note was updated.
-
-
-
Method Detail
-
from
public TicketReply.Builder from(TicketReply other)
- Specified by:
fromin interfaceTicketReply.IdStage
-
id
public TicketReply.PartTypeStage id(@NotNull java.lang.String id)
The id representing the part.The id representing the part.
- Specified by:
idin interfaceTicketReply.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
partType
public TicketReply.CreatedAtStage partType(@NotNull TicketReply.PartType partType)
Type of the partType of the part
- Specified by:
partTypein interfaceTicketReply.PartTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public TicketReply._FinalStage createdAt(int createdAt)
The time the note was created.The time the note was created.
- Specified by:
createdAtin interfaceTicketReply.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redacted
public TicketReply._FinalStage redacted(java.lang.Boolean redacted)
Whether or not the ticket part has been redacted.
- Specified by:
redactedin interfaceTicketReply._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redacted
public TicketReply._FinalStage redacted(java.util.Optional<java.lang.Boolean> redacted)
Whether or not the ticket part has been redacted.
- Specified by:
redactedin interfaceTicketReply._FinalStage
-
attachments
public TicketReply._FinalStage attachments(java.util.List<PartAttachment> attachments)
A list of attachments for the part.
- Specified by:
attachmentsin interfaceTicketReply._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachments
public TicketReply._FinalStage attachments(java.util.Optional<java.util.List<PartAttachment>> attachments)
A list of attachments for the part.
- Specified by:
attachmentsin interfaceTicketReply._FinalStage
-
author
public TicketReply._FinalStage author(TicketPartAuthor author)
- Specified by:
authorin interfaceTicketReply._FinalStage
-
author
public TicketReply._FinalStage author(java.util.Optional<TicketPartAuthor> author)
- Specified by:
authorin interfaceTicketReply._FinalStage
-
updatedAt
public TicketReply._FinalStage updatedAt(java.lang.Integer updatedAt)
The last time the note was updated.
- Specified by:
updatedAtin interfaceTicketReply._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public TicketReply._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The last time the note was updated.
- Specified by:
updatedAtin interfaceTicketReply._FinalStage
-
body
public TicketReply._FinalStage body(java.lang.String body)
The message body, which may contain HTML.
- Specified by:
bodyin interfaceTicketReply._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public TicketReply._FinalStage body(java.util.Optional<java.lang.String> body)
The message body, which may contain HTML.
- Specified by:
bodyin interfaceTicketReply._FinalStage
-
build
public TicketReply build()
- Specified by:
buildin interfaceTicketReply._FinalStage
-
-