code: public function setResource(string $type, string $id = null): ClientDispatch
      {
          $this->resourceType = $type;
          $this->resourceId = $id;
  
          return $this;
      }
docs: Set the resource type and id that will be created/updated by the job.
  
  @param string $type
  @param string|null $id
  @return ClientDispatch