public class AppClone implements Request<App> {
private final RequestConfig config;
public AppClone(String templateAppName, App targetApp) {
RequestConfig builder = new RequestConfig();
builder = builder.with(Heroku.RequestKey.AppName, templateAppName);
builder = (targetApp.getName() != null) ? builder.with(Heroku.RequestKey.CreateAppName, targetApp.getName()) : builder;
config = builder;
}