Class Note.Builder
- java.lang.Object
-
- com.intercom.api.resources.notes.types.Note.Builder
-
- All Implemented Interfaces:
Note._FinalStage,Note.BodyStage,Note.CreatedAtStage,Note.IdStage,Note.TypeStage
- Enclosing class:
- Note
public static final class Note.Builder extends java.lang.Object implements Note.TypeStage, Note.IdStage, Note.CreatedAtStage, Note.BodyStage, Note._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Note._FinalStageauthor(Admin author)Optional.Note._FinalStageauthor(java.util.Optional<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.BodyStagecreatedAt(int createdAt)The time the note was created.Note.Builderfrom(Note other)Note.CreatedAtStageid(java.lang.String id)The id of the note.Note.IdStagetype(java.lang.String type)String representing the object's type.
-
-
-
Method Detail
-
from
public Note.Builder from(Note other)
- Specified by:
fromin interfaceNote.TypeStage
-
type
public Note.IdStage type(@NotNull java.lang.String type)
String representing the object's type. Always has the value
note.String representing the object's type. Always has the value
note.- Specified by:
typein interfaceNote.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
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.BodyStage 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.
-
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.
-
author
public Note._FinalStage author(Admin author)
Optional. Represents the Admin that created the note.
- Specified by:
authorin interfaceNote._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
author
public Note._FinalStage author(java.util.Optional<Admin> author)
Optional. Represents the Admin that created the note.
- Specified by:
authorin interfaceNote._FinalStage
-
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
-
-