Class Note.Builder
- java.lang.Object
-
- com.intercom.api.resources.notes.types.Note.Builder
-
- Enclosing class:
- Note
public static final class Note.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Note.Builderauthor(Admin author)Note.Builderauthor(java.util.Optional<Admin> author)Optional.Note.Builderbody(java.lang.String body)Note.Builderbody(java.util.Optional<java.lang.String> body)The body text of the note.Notebuild()Note.Buildercontact(Note.Contact contact)Note.Buildercontact(java.util.Optional<Note.Contact> contact)Represents the contact that the note was created about.Note.BuildercreatedAt(java.lang.Integer createdAt)Note.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the note was created.Note.Builderfrom(Note other)Note.Builderid(java.lang.String id)Note.Builderid(java.util.Optional<java.lang.String> id)The id of the note.Note.Buildertype(java.lang.String type)Note.Buildertype(java.util.Optional<java.lang.String> type)String representing the object's type.
-
-
-
Method Detail
-
from
public Note.Builder from(Note other)
-
type
public Note.Builder type(java.util.Optional<java.lang.String> type)
String representing the object's type. Always has the value
note.
-
type
public Note.Builder type(java.lang.String type)
-
id
public Note.Builder id(java.util.Optional<java.lang.String> id)
The id of the note.
-
id
public Note.Builder id(java.lang.String id)
-
createdAt
public Note.Builder createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the note was created.
-
createdAt
public Note.Builder createdAt(java.lang.Integer createdAt)
-
contact
public Note.Builder contact(java.util.Optional<Note.Contact> contact)
Represents the contact that the note was created about.
-
contact
public Note.Builder contact(Note.Contact contact)
-
author
public Note.Builder author(java.util.Optional<Admin> author)
Optional. Represents the Admin that created the note.
-
author
public Note.Builder author(Admin author)
-
body
public Note.Builder body(java.util.Optional<java.lang.String> body)
The body text of the note.
-
body
public Note.Builder body(java.lang.String body)
-
build
public Note build()
-
-