/** * <p> * Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file * system. * </p> * * @param path * Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a * local file system. * @return Returns a reference to this object so that method calls can be chained together. */ public ScriptBootstrapActionConfig withPath(String path) { setPath(path); return this; }
/** * Constructs a new ScriptBootstrapActionConfig object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param path * Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a * local file system. * @param args * A list of command line arguments to pass to the bootstrap action script. */ public ScriptBootstrapActionConfig(String path, java.util.List<String> args) { setPath(path); setArgs(args); }
if (context.testExpression("Path", targetDepth)) { context.nextToken(); scriptBootstrapActionConfig.setPath(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file * system. * </p> * * @param path * Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a * local file system. * @return Returns a reference to this object so that method calls can be chained together. */ public ScriptBootstrapActionConfig withPath(String path) { setPath(path); return this; }
/** * Constructs a new ScriptBootstrapActionConfig object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param path * Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a * local file system. * @param args * A list of command line arguments to pass to the bootstrap action script. */ public ScriptBootstrapActionConfig(String path, java.util.List<String> args) { setPath(path); setArgs(args); }
/** * 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; }
bootstrapScriptConfig.setPath(bootstrapPath);
if (context.testExpression("Path", targetDepth)) { context.nextToken(); scriptBootstrapActionConfig.setPath(context.getUnmarshaller(String.class).unmarshall(context));