task_id ?? null; if (isset($task_id)) { return "/_delete_by_query/$task_id/_rethrottle"; } throw new RuntimeException('Missing parameter for the endpoint delete_by_query_rethrottle'); } public function getParamWhitelist(): array { return [ 'requests_per_second' ]; } public function getMethod(): string { return 'POST'; } public function setTaskId($task_id): DeleteByQueryRethrottle { if (isset($task_id) !== true) { return $this; } $this->task_id = $task_id; return $this; } }