public class ScriptBootstrapActionConfig extends Object implements Serializable, Cloneable
Configuration of the script to run during a bootstrap action.
Constructor and Description |
---|
ScriptBootstrapActionConfig()
Default constructor for ScriptBootstrapActionConfig object.
|
ScriptBootstrapActionConfig(String path,
List<String> args)
Constructs a new ScriptBootstrapActionConfig object.
|
Modifier and Type | Method and Description |
---|---|
ScriptBootstrapActionConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getArgs()
A list of command line arguments to pass to the bootstrap action script.
|
String |
getPath()
Location of the script to run during a bootstrap action.
|
int |
hashCode() |
void |
setArgs(Collection<String> args)
A list of command line arguments to pass to the bootstrap action script.
|
void |
setPath(String path)
Location of the script to run during a bootstrap action.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScriptBootstrapActionConfig |
withArgs(Collection<String> args)
A list of command line arguments to pass to the bootstrap action script.
|
ScriptBootstrapActionConfig |
withArgs(String... args)
A list of command line arguments to pass to the bootstrap action script.
|
ScriptBootstrapActionConfig |
withPath(String path)
Location of the script to run during a bootstrap action.
|
public ScriptBootstrapActionConfig()
public ScriptBootstrapActionConfig(String path, List<String> args)
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.args
- A list of command line arguments to pass to the bootstrap action
script.public void setPath(String 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.
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.public String getPath()
Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
public ScriptBootstrapActionConfig withPath(String 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.
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.public List<String> getArgs()
A list of command line arguments to pass to the bootstrap action script.
public void setArgs(Collection<String> args)
A list of command line arguments to pass to the bootstrap action script.
args
- A list of command line arguments to pass to the bootstrap action
script.public ScriptBootstrapActionConfig withArgs(String... args)
A list of command line arguments to pass to the bootstrap action script.
NOTE: This method appends the values to the existing list (if
any). Use setArgs(java.util.Collection)
or
withArgs(java.util.Collection)
if you want to override the
existing values.
args
- A list of command line arguments to pass to the bootstrap action
script.public ScriptBootstrapActionConfig withArgs(Collection<String> args)
A list of command line arguments to pass to the bootstrap action script.
args
- A list of command line arguments to pass to the bootstrap action
script.public String toString()
toString
in class Object
Object.toString()
public ScriptBootstrapActionConfig clone()
Copyright © 2017. All rights reserved.