public class ScriptBootstrapActionConfig
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Configuration of the script to run during a bootstrap action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
args
A list of command line arguments to pass to the bootstrap action script.
|
private java.lang.String |
path
Location of the script to run during a bootstrap action.
|
Constructor and Description |
---|
ScriptBootstrapActionConfig()
Default constructor for ScriptBootstrapActionConfig object.
|
ScriptBootstrapActionConfig(java.lang.String path,
java.util.List<java.lang.String> args)
Constructs a new ScriptBootstrapActionConfig object.
|
Modifier and Type | Method and Description |
---|---|
ScriptBootstrapActionConfig |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getArgs()
A list of command line arguments to pass to the bootstrap action script.
|
java.lang.String |
getPath()
Location of the script to run during a bootstrap action.
|
int |
hashCode() |
void |
setArgs(java.util.Collection<java.lang.String> args)
A list of command line arguments to pass to the bootstrap action script.
|
void |
setPath(java.lang.String path)
Location of the script to run during a bootstrap action.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScriptBootstrapActionConfig |
withArgs(java.util.Collection<java.lang.String> args)
A list of command line arguments to pass to the bootstrap action script.
|
ScriptBootstrapActionConfig |
withArgs(java.lang.String... args)
A list of command line arguments to pass to the bootstrap action script.
|
ScriptBootstrapActionConfig |
withPath(java.lang.String path)
Location of the script to run during a bootstrap action.
|
private java.lang.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.
private SdkInternalList<java.lang.String> args
A list of command line arguments to pass to the bootstrap action script.
public ScriptBootstrapActionConfig()
public ScriptBootstrapActionConfig(java.lang.String path, java.util.List<java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.util.List<java.lang.String> getArgs()
A list of command line arguments to pass to the bootstrap action script.
public void setArgs(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ScriptBootstrapActionConfig clone()
clone
in class java.lang.Object