Class ScriptBootstrapActionConfig
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.ScriptBootstrapActionConfig
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ScriptBootstrapActionConfig extends Object implements Serializable, Cloneable
Configuration of the script to run during a bootstrap action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScriptBootstrapActionConfig()
Default constructor for ScriptBootstrapActionConfig object.ScriptBootstrapActionConfig(String path, List<String> args)
Constructs a new ScriptBootstrapActionConfig object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String... args)
A list of command line arguments to pass to the bootstrap action script.ScriptBootstrapActionConfig
withArgs(Collection<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.
-
-
-
Constructor Detail
-
ScriptBootstrapActionConfig
public ScriptBootstrapActionConfig()
Default constructor for ScriptBootstrapActionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
ScriptBootstrapActionConfig
public ScriptBootstrapActionConfig(String path, List<String> args)
Constructs a new ScriptBootstrapActionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Detail
-
setPath
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.
- Parameters:
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.
-
getPath
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.
- Returns:
- Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
-
withPath
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getArgs
public List<String> getArgs()
A list of command line arguments to pass to the bootstrap action script.
- Returns:
- A list of command line arguments to pass to the bootstrap action script.
-
setArgs
public void setArgs(Collection<String> args)
A list of command line arguments to pass to the bootstrap action script.
- Parameters:
args
- A list of command line arguments to pass to the bootstrap action script.
-
withArgs
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)
orwithArgs(java.util.Collection)
if you want to override the existing values.- Parameters:
args
- A list of command line arguments to pass to the bootstrap action script.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withArgs
public ScriptBootstrapActionConfig withArgs(Collection<String> args)
A list of command line arguments to pass to the bootstrap action script.
- Parameters:
args
- A list of command line arguments to pass to the bootstrap action script.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScriptBootstrapActionConfig clone()
-
-