package com.synopsys.integration.blackduck.api;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.JsonElement;

public class UpdateRequest {
    public String resourceUrl;
    public Map<String, JsonElement> fieldsToUpdate;

    public UpdateRequest(final String resourceUrl) {
        this.resourceUrl = resourceUrl;
        this.fieldsToUpdate = new HashMap<>();
    }

    public void addFieldToUpdate(final String fieldName, final JsonElement newValue) {
        fieldsToUpdate.put(fieldName, newValue);
    }
}

@@ -388,16 +388,224 @@
 %0A    %7D%0A%0A
+    public UpdateRequest(final String resourceUrl, final Map%3CString, JsonElement%3E fieldsToUpdate) %7B%0A        this.resourceUrl = resourceUrl;%0A        this.fieldsToUpdate = new HashMap%3C%3E(fieldsToUpdate);%0A    %7D%0A%0A
     publ

Add alternative constructor for UpdateRequest.