Class Note.Builder

  • Enclosing class:
    Note

    public static final class Note.Builder
    extends java.lang.Object
    • Method Detail

      • 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.

      • 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.

      • author

        public Note.Builder author​(java.util.Optional<Admin> author)

        Optional. Represents the Admin that created the note.

      • 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()