Class AddCommentRequest.Builder

  • Enclosing class:
    AddCommentRequest

    public static final class AddCommentRequest.Builder
    extends Object
    • Method Detail

      • baseResourceId

        public AddCommentRequest.Builder baseResourceId​(UUID baseResourceId)
        (required) Sets the ID of the resource which the new comment should be attached to. This is a convenience method for setting base resource ID.
        Parameters:
        baseResourceId - the ID of the resource which the new comment should be attached to
      • baseResourceType

        public AddCommentRequest.Builder baseResourceType​(ResourceType baseResourceType)
        (required) Sets the type of the resource which the new comment should be attached to. This is a convenience method for setting base resource type.
        Parameters:
        baseResourceType - the type of the resource which the new comment should be attached to
      • content

        public AddCommentRequest.Builder content​(@NotNull
                                                 @NotNull String content)
        Required. The actual HTML content of the comment to be added. Can contain user mentions using syntax [@User:$userId] where $userId is the ID of mentioned user. For example: [@User:00000000-0000-0000-0000-000000900002].
        Returns:
        this.
      • parentId

        public AddCommentRequest.Builder parentId​(UUID parentId)
        The ID of the parent comment. If not null - the comment is the reply for the parent comment.
        Returns:
        this.
      • toString

        public String toString()
        Overrides:
        toString in class Object