Interface Comment.Builder

    • Method Detail

      • commentId

        Comment.Builder commentId​(String commentId)

        The ID of the comment.

        Parameters:
        commentId - The ID of the comment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parentId

        Comment.Builder parentId​(String parentId)

        The ID of the parent comment.

        Parameters:
        parentId - The ID of the parent comment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • threadId

        Comment.Builder threadId​(String threadId)

        The ID of the root comment in the thread.

        Parameters:
        threadId - The ID of the root comment in the thread.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • text

        Comment.Builder text​(String text)

        The text of the comment.

        Parameters:
        text - The text of the comment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contributor

        Comment.Builder contributor​(User contributor)

        The details of the user who made the comment.

        Parameters:
        contributor - The details of the user who made the comment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createdTimestamp

        Comment.Builder createdTimestamp​(Instant createdTimestamp)

        The time that the comment was created.

        Parameters:
        createdTimestamp - The time that the comment was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • visibility

        Comment.Builder visibility​(String visibility)

        The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.

        Parameters:
        visibility - The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CommentVisibilityType, CommentVisibilityType
      • visibility

        Comment.Builder visibility​(CommentVisibilityType visibility)

        The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.

        Parameters:
        visibility - The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CommentVisibilityType, CommentVisibilityType
      • recipientId

        Comment.Builder recipientId​(String recipientId)

        If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.

        Parameters:
        recipientId - If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.