public JSONObject setSettings(JSONObject settings, boolean forwardToReplicas, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        Map<String, String> urlParameters = new HashMap<>();
        urlParameters.put("forwardToReplicas", Boolean.toString(forwardToReplicas));
        return client.putRequest("/1/indexes/" + encodedIndexName + "/settings", urlParameters, settings.toString(), requestOptions);
    }
public JSONObject setSettings(JSONObject settings, boolean forwardToReplicas, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        Map<String, String> urlParameters = new HashMap<>();
        urlParameters.put("forwardToReplicas", Boolean.toString(forwardToReplicas));
        return client.putRequest("/1/indexes/" + encodedIndexName + "/settings", urlParameters, settings.toString(), requestOptions);
    }
public JSONObject setSettings ( JSONObject settings , boolean forwardToReplicas , @ Nullable RequestOptions requestOptions ) throws AlgoliaException { Map < String , String > urlParameters = new HashMap <> ( ) ; urlParameters . put ( "forwardToReplicas" , Boolean . toString ( forwardToReplicas ) ) ; return client . putRequest ( "/1/indexes/" + encodedIndexName + "/settings" , urlParameters , settings . toString ( ) , requestOptions ) ; }
Set settings for this index.

@param settings          the settings object.
@param forwardToReplicas if true, the new settings will be forwarded to replica indices.
@param requestOptions    Request-specific options.
@throws AlgoliaException
Set settings for this index .