code: public JSONObject getSettings(RequestOptions requestOptions) throws AlgoliaException {
      return client.getRequest("/1/indexes/" + encodedIndexName + "/settings?getVersion=2", false, requestOptions);
    }
docs: Get settings of this index
  
  @param requestOptions Options to pass to this request