code: public Response setSafetyLevel(String photoId, JinxConstants.SafetyLevel safetyLevel, boolean hidden) throws JinxException {
      JinxUtils.validateParams(photoId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.photos.setSafetyLevel");
      params.put("photo_id", photoId);
      if (safetyLevel != null) {
        params.put("safety_level", Integer.toString(JinxUtils.safetyLevelToFlickrSafteyLevelId(safetyLevel)));
      }
      params.put("hidden", hidden ? "1" : "0");
      return jinx.flickrPost(params, Response.class);
    }
docs: Set the safety level of a photo.
  <br>
  This method requires authentication with 'write' permission.
  
  @param photoId     Required. The id of the photo to set the adultness of.
  @param safetyLevel Optional. Safely level of the photo.
  @param hidden      Whether or not to additionally hide the photo from public searches.
  @return object with the result of the requested operation.
  @throws JinxException if required parameters are null or empty, or if there are errors.
  @see <a href="https://www.flickr.com/services/api/flickr.photos.setSafetyLevel.html">flickr.photos.setSafetyLevel</a>