Class Note.Builder

    • Method Detail

      • 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:
        type in interface Note.TypeStage
        Returns:
        Reference to this so 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:
        id in interface Note.IdStage
        Returns:
        Reference to this so 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:
        createdAt in interface Note.CreatedAtStage
        Returns:
        Reference to this so 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:
        body in interface Note.BodyStage
        Returns:
        Reference to this so that method calls can be chained together.
      • author

        public Note._FinalStage author​(Admin author)

        Optional. Represents the Admin that created the note.

        Specified by:
        author in interface Note._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.