/** * <p> * The script run by the bootstrap action. * </p> * * @param scriptBootstrapAction * The script run by the bootstrap action. * @return Returns a reference to this object so that method calls can be chained together. */ public BootstrapActionConfig withScriptBootstrapAction(ScriptBootstrapActionConfig scriptBootstrapAction) { setScriptBootstrapAction(scriptBootstrapAction); return this; }
/** * Constructs a new BootstrapActionConfig object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param name * The name of the bootstrap action. * @param scriptBootstrapAction * The script run by the bootstrap action. */ public BootstrapActionConfig(String name, ScriptBootstrapActionConfig scriptBootstrapAction) { setName(name); setScriptBootstrapAction(scriptBootstrapAction); }
bootstrapActionConfig.setScriptBootstrapAction(ScriptBootstrapActionConfigJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * The script run by the bootstrap action. * </p> * * @param scriptBootstrapAction * The script run by the bootstrap action. * @return Returns a reference to this object so that method calls can be chained together. */ public BootstrapActionConfig withScriptBootstrapAction(ScriptBootstrapActionConfig scriptBootstrapAction) { setScriptBootstrapAction(scriptBootstrapAction); return this; }
/** * Constructs a new BootstrapActionConfig object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param name * The name of the bootstrap action. * @param scriptBootstrapAction * The script run by the bootstrap action. */ public BootstrapActionConfig(String name, ScriptBootstrapActionConfig scriptBootstrapAction) { setName(name); setScriptBootstrapAction(scriptBootstrapAction); }
/** * Configure a bootstrap action object, given its name, path and arguments. * * @param path - path for the bootstrap action program in S3 * @param name - name of the bootstrap action * @param args - arguments for the bootstrap action * @return configuration data object for one bootstrap action */ private static BootstrapActionConfig createBootstrapAction( String path, String name, List<String> args ) { ScriptBootstrapActionConfig scriptBootstrapActionConfig = new ScriptBootstrapActionConfig(); BootstrapActionConfig bootstrapActionConfig = new BootstrapActionConfig(); if ( !path.isEmpty() ) { scriptBootstrapActionConfig.setPath( path ); scriptBootstrapActionConfig.setArgs( args ); } bootstrapActionConfig.setName( name ); bootstrapActionConfig.setScriptBootstrapAction( scriptBootstrapActionConfig ); return bootstrapActionConfig; }
/** * Create the BootstrapActionConfig object from the bootstrap script. * * @param scriptDescription bootstrap script name to be displayed. * @param bootstrapScript location of the bootstrap script. * * @return bootstrap action configuration that contains all the bootstrap actions for the given configuration. */ private BootstrapActionConfig getBootstrapActionConfig(String scriptDescription, String bootstrapScript) { // Create the BootstrapActionConfig object BootstrapActionConfig bootstrapConfig = new BootstrapActionConfig(); ScriptBootstrapActionConfig bootstrapConfigScript = new ScriptBootstrapActionConfig(); // Set the bootstrapScript bootstrapConfig.setName(scriptDescription); bootstrapConfigScript.setPath(bootstrapScript); bootstrapConfig.setScriptBootstrapAction(bootstrapConfigScript); // Return the object return bootstrapConfig; }
/** * Create the BootstrapActionConfig object from the bootstrap script. * * @param scriptDescription bootstrap script name to be displayed. * @param bootstrapScript location of the bootstrap script. * * @return bootstrap action configuration that contains all the bootstrap actions for the given configuration. */ private BootstrapActionConfig getBootstrapActionConfig(String scriptDescription, String bootstrapScript) { // Create the BootstrapActionConfig object BootstrapActionConfig bootstrapConfig = new BootstrapActionConfig(); ScriptBootstrapActionConfig bootstrapConfigScript = new ScriptBootstrapActionConfig(); // Set the bootstrapScript bootstrapConfig.setName(scriptDescription); bootstrapConfigScript.setPath(bootstrapScript); bootstrapConfig.setScriptBootstrapAction(bootstrapConfigScript); // Return the object return bootstrapConfig; }
/** * Configure a bootstrap action object, given its name, path and arguments. * * @param path - path for the bootstrap action program in S3 * @param name - name of the bootstrap action * @param args - arguments for the bootstrap action * @return configuration data object for one bootstrap action */ private static BootstrapActionConfig configureBootstrapAction( String path, String name, List<String> args ) { ScriptBootstrapActionConfig scriptBootstrapActionConfig = new ScriptBootstrapActionConfig(); BootstrapActionConfig bootstrapActionConfig = new BootstrapActionConfig(); scriptBootstrapActionConfig.setPath( path ); scriptBootstrapActionConfig.setArgs( args ); bootstrapActionConfig.setName( name ); bootstrapActionConfig.setScriptBootstrapAction( scriptBootstrapActionConfig ); return bootstrapActionConfig; }
bootstrapConfig.setScriptBootstrapAction(bootstrapScriptConfig);
bootstrapActionConfig.setScriptBootstrapAction(ScriptBootstrapActionConfigJsonUnmarshaller.getInstance().unmarshall(context));