gt:     List<Pair> localVarQueryParams = new ArrayList<Pair>();
context: package ch.cyberduck.core.brick.io.swagger.client.api;
  
  import ch.cyberduck.core.brick.io.swagger.client.ApiException;
  import ch.cyberduck.core.brick.io.swagger.client.ApiClient;
  import ch.cyberduck.core.brick.io.swagger.client.Configuration;
  import ch.cyberduck.core.brick.io.swagger.client.Pair;
  
  import javax.ws.rs.core.GenericType;
  
  import ch.cyberduck.core.brick.io.swagger.client.model.FormFieldSetEntity;
  import ch.cyberduck.core.brick.io.swagger.client.model.PatchFormFieldSets;
  import ch.cyberduck.core.brick.io.swagger.client.model.PostFormFieldSets;
  
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
  @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2021-07-25T22:25:43.390877+02:00[Europe/Paris]")public class FormFieldSetsApi {
    private ApiClient apiClient;
  
    public FormFieldSetsApi() {
      this(Configuration.getDefaultApiClient());
    }
  
    public FormFieldSetsApi(ApiClient apiClient) {
      this.apiClient = apiClient;
    }
  
    public ApiClient getApiClient() {
      return apiClient;
    }
  
    public void setApiClient(ApiClient apiClient) {
      this.apiClient = apiClient;
    }
  
    /**
     * Delete Form Field Set
     * Delete Form Field Set
     * @param id Form Field Set ID. (required)
     * @throws ApiException if fails to make API call
     */
    public void deleteFormFieldSetsId(Integer id) throws ApiException {
      Object localVarPostBody = null;
      // verify the required parameter 'id' is set
      if (id == null) {
        throw new ApiException(400, "Missing the required parameter 'id' when calling deleteFormFieldSetsId");
      }
      // create path and map variables
      String localVarPath = "/form_field_sets/{id}"
        .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
  
      // query params
      List<Pair> localVarQueryParams = new ArrayList<Pair>();
      Map<String, String> localVarHeaderParams = new HashMap<String, String>();
      Map<String, Object> localVarFormParams = new HashMap<String, Object>();
  
  
  
      final String[] localVarAccepts = {
        
      };
      final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
  
      final String[] localVarContentTypes = {
        
      };
      final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
  
      String[] localVarAuthNames = new String[] {  };
  
      apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
    }
    /**
     * List Form Field Sets
     * List Form Field Sets
     * @param userId User ID.  Provide a value of &#x60;0&#x60; to operate the current session&#x27;s user. (optional)
     * @param cursor Used for pagination.  Send a cursor value to resume an existing list from the point at which you left off.  Get a cursor from an existing list via the X-Files-Cursor-Next header. (optional)
     * @param perPage Number of records to show per page.  (Max: 10,000, 1,000 or less is recommended). (optional)
     * @return List&lt;FormFieldSetEntity&gt;
     * @throws ApiException if fails to make API call
     */
    public List<FormFieldSetEntity> getFormFieldSets(Integer userId, String cursor, Integer perPage) throws ApiException {
      Object localVarPostBody = null;
      // create path and map variables
      String localVarPath = "/form_field_sets";
  
      // query params
      List<Pair> localVarQueryParams = new ArrayList<Pair>();
      Map<String, String> localVarHeaderParams = new HashMap<String, String>();
      Map<String, Object> localVarFormParams = new HashMap<String, Object>();
  
      localVarQueryParams.addAll(apiClient.parameterToPairs("", "user_id", userId));
      localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
      localVarQueryParams.addAll(apiClient.parameterToPairs("", "per_page", perPage));
  
  
      final String[] localVarAccepts = {
        "application/json"
      };
      final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
  
      final String[] localVarContentTypes = {
        
      };
      final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
  
      String[] localVarAuthNames = new String[] {  };
  
      GenericType<List<FormFieldSetEntity>> localVarReturnType = new GenericType<List<FormFieldSetEntity>>() {};
      return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }
    /**
     * Show Form Field Set
     * Show Form Field Set
     * @param id Form Field Set ID. (required)
     * @return FormFieldSetEntity
     * @throws ApiException if fails to make API call
     */
    public FormFieldSetEntity getFormFieldSetsId(Integer id) throws ApiException {
      Object localVarPostBody = null;
      // verify the required parameter 'id' is set
      if (id == null) {
        throw new ApiException(400, "Missing the required parameter 'id' when calling getFormFieldSetsId");
      }
      // create path and map variables
      String localVarPath = "/form_field_sets/{id}"
        .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
  
      // query params
      List<Pair> localVarQueryParams = new ArrayList<Pair>();
      Map<String, String> localVarHeaderParams = new HashMap<String, String>();
      Map<String, Object> localVarFormParams = new HashMap<String, Object>();
  
  
  
      final String[] localVarAccepts = {
        "application/json"
      };
      final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
  
      final String[] localVarContentTypes = {
        
      };
      final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
  
      String[] localVarAuthNames = new String[] {  };
  
      GenericType<FormFieldSetEntity> localVarReturnType = new GenericType<FormFieldSetEntity>() {};
      return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }
    /**
     * Update Form Field Set
     * Update Form Field Set
     * @param body  (required)
     * @param id Form Field Set ID. (required)
     * @return FormFieldSetEntity
     * @throws ApiException if fails to make API call
     */
    public FormFieldSetEntity patchFormFieldSetsId(PatchFormFieldSets body, Integer id) throws ApiException {
      Object localVarPostBody = body;
      // verify the required parameter 'body' is set
      if (body == null) {
        throw new ApiException(400, "Missing the required parameter 'body' when calling patchFormFieldSetsId");
      }
      // verify the required parameter 'id' is set
      if (id == null) {
        throw new ApiException(400, "Missing the required parameter 'id' when calling patchFormFieldSetsId");
      }
      // create path and map variables
      String localVarPath = "/form_field_sets/{id}"
        .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
  
      // query params
      List<Pair> localVarQueryParams = new ArrayList<Pair>();
      Map<String, String> localVarHeaderParams = new HashMap<String, String>();
      Map<String, Object> localVarFormParams = new HashMap<String, Object>();
  
  
  
      final String[] localVarAccepts = {
        "application/json"
      };
      final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
  
      final String[] localVarContentTypes = {
        "application/json"
      };
      final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
  
      String[] localVarAuthNames = new String[] {  };
  
      GenericType<FormFieldSetEntity> localVarReturnType = new GenericType<FormFieldSetEntity>() {};
      return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }
    /**
     * Create Form Field Set
     * Create Form Field Set
     * @param body  (required)
     * @return FormFieldSetEntity
     * @throws ApiException if fails to make API call
     */
    public FormFieldSetEntity postFormFieldSets(PostFormFieldSets body) throws ApiException {
      Object localVarPostBody = body;
      // verify the required parameter 'body' is set
      if (body == null) {
        throw new ApiException(400, "Missing the required parameter 'body' when calling postFormFieldSets");
      }
      // create path and map variables
      String localVarPath = "/form_field_sets";
  
      // query params
  