Class Command
java.lang.Object
com.amazonaws.services.elasticmapreduce.model.Command
- All Implemented Interfaces:
Serializable, Cloneable
An entity describing an executable that runs on a cluster.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetArgs()Arguments for Amazon EMR to pass to the command for execution.getName()The name of the command.The Amazon S3 location of the command script.inthashCode()voidsetArgs(Collection<String> args) Arguments for Amazon EMR to pass to the command for execution.voidThe name of the command.voidsetScriptPath(String scriptPath) The Amazon S3 location of the command script.toString()Returns a string representation of this object; useful for testing and debugging.Arguments for Amazon EMR to pass to the command for execution.withArgs(Collection<String> args) Arguments for Amazon EMR to pass to the command for execution.The name of the command.withScriptPath(String scriptPath) The Amazon S3 location of the command script.
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
setName
The name of the command.
- Parameters:
name- The name of the command.
-
getName
-
withName
-
setScriptPath
The Amazon S3 location of the command script.
- Parameters:
scriptPath- The Amazon S3 location of the command script.
-
getScriptPath
The Amazon S3 location of the command script.
- Returns:
- The Amazon S3 location of the command script.
-
withScriptPath
-
getArgs
-
setArgs
Arguments for Amazon EMR to pass to the command for execution.
- Parameters:
args- Arguments for Amazon EMR to pass to the command for execution.
-
withArgs
Arguments for Amazon EMR to pass to the command for execution.
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- Arguments for Amazon EMR to pass to the command for execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withArgs
Arguments for Amazon EMR to pass to the command for execution.
- Parameters:
args- Arguments for Amazon EMR to pass to the command for execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-