name ?? null; if (isset($name)) { return "/_component_template/$name"; } throw new RuntimeException('Missing parameter for the endpoint cluster.put_component_template'); } public function getParamWhitelist(): array { return [ 'create', 'timeout', 'master_timeout' ]; } public function getMethod(): string { return 'PUT'; } public function setBody($body): PutComponentTemplate { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setName($name): PutComponentTemplate { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } }