Class Note.Builder
- java.lang.Object
-
- com.intercom.api.resources.notes.types.Note.Builder
-
- All Implemented Interfaces:
Note._FinalStage,Note.AuthorStage,Note.BodyStage,Note.CreatedAtStage,Note.IdStage
- Enclosing class:
- Note
public static final class Note.Builder extends java.lang.Object implements Note.IdStage, Note.CreatedAtStage, Note.AuthorStage, Note.BodyStage, Note._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Note.BodyStageauthor(Admin author)Optional.Note._FinalStagebody(java.lang.String body)The body text of the note.Notebuild()Note._FinalStagecontact(Note.Contact contact)Represents the contact that the note was created about.Note._FinalStagecontact(java.util.Optional<Note.Contact> contact)Represents the contact that the note was created about.Note.AuthorStagecreatedAt(int createdAt)The time the note was created.Note.Builderfrom(Note other)Note.CreatedAtStageid(java.lang.String id)The id of the note.
-
-
-
Method Detail
-
from
public Note.Builder from(Note other)
- Specified by:
fromin interfaceNote.IdStage
-
id
public Note.CreatedAtStage id(@NotNull java.lang.String id)
The id of the note.The id of the note.
- Specified by:
idin interfaceNote.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Note.AuthorStage createdAt(int createdAt)
The time the note was created.The time the note was created.
- Specified by:
createdAtin interfaceNote.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
author
public Note.BodyStage author(@NotNull Admin author)
Optional. Represents the Admin that created the note.Optional. Represents the Admin that created the note.
- Specified by:
authorin interfaceNote.AuthorStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public Note._FinalStage body(@NotNull java.lang.String body)
The body text of the note.The body text of the note.
- Specified by:
bodyin interfaceNote.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contact
public Note._FinalStage contact(Note.Contact contact)
Represents the contact that the note was created about.
- Specified by:
contactin interfaceNote._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contact
public Note._FinalStage contact(java.util.Optional<Note.Contact> contact)
Represents the contact that the note was created about.
- Specified by:
contactin interfaceNote._FinalStage
-
build
public Note build()
- Specified by:
buildin interfaceNote._FinalStage
-
-