public function update($appId, $scanId, $input, array $queryParams = [])
    {
        if ($input instanceof ScanBuilder) {
            $inputArray = $input->toArray();
            $defaultInput = true;
        } else {
            $inputArray = [];
            foreach ($input as $key => $value) {
                if ($value instanceof BaseBuilder) {
                    $inputArray[$key] = $value->toArray();
                }
            }
            $defaultInput = false;
        }

        $response = $this->api->applications()->scans()->update($appId, $scanId, $inputArray, $queryParams, $defaultInput);

        return new ScanResponse($response);
    }