src/Queue/ClientDispatch.php
public function setResource(string $type, string $id = null): ClientDispatch
    {
        $this->resourceType = $type;
        $this->resourceId = $id;

        return $this;
    }
public function setResource(string $type, string $id = null): ClientDispatch
    {
        $this->resourceType = $type;
        $this->resourceId = $id;

        return $this;
    }
Set the resource type and id that will be created/updated by the job.

@param string $type
@param string|null $id
@return ClientDispatch