index) !== true) { throw new RuntimeException( 'index is required for put_alias' ); } $index = $this->index; if (isset($this->name) !== true) { throw new RuntimeException( 'name is required for put_alias' ); } $name = $this->name; return "/$index/_alias/$name"; } public function getParamWhitelist(): array { return [ 'timeout', 'master_timeout' ]; } public function getMethod(): string { return 'PUT'; } public function setBody($body): PutAlias { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setName($name): PutAlias { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } }