code: public JSONObject getObject(String objectID, List<String> attributesToRetrieve, RequestOptions requestOptions) throws AlgoliaException {
      try {
        String params = encodeAttributes(attributesToRetrieve, true);
        return client.getRequest("/1/indexes/" + encodedIndexName + "/" + URLEncoder.encode(objectID, "UTF-8") + params.toString(), false, requestOptions);
      } catch (UnsupportedEncodingException e) {
        throw new RuntimeException(e);
      }
    }
docs: Get an object from this index
  
  @param objectID             the unique identifier of the object to retrieve
  @param attributesToRetrieve contains the list of attributes to retrieve.
  @param requestOptions       Options to pass to this request