role)) { throw new RuntimeException('Missing parameter for the endpoint security.create_role_mapping'); } return "/_plugins/_security/api/rolesmapping/$this->role"; } public function getMethod(): string { return 'PUT'; } /** * @param string|null $role * @return CreateRoleMapping */ public function setRole(?string $role): CreateRoleMapping { $this->role = $role; return $this; } }