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()
boolean
getArgs()
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.int
hashCode()
void
setArgs
(Collection<String> args) Arguments for Amazon EMR to pass to the command for execution.void
The name of the command.void
setScriptPath
(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
The name of the command.
- Returns:
- The name of the command.
-
withName
The name of the command.
- Parameters:
name
- The name of the command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The Amazon S3 location of the command script.
- Parameters:
scriptPath
- The Amazon S3 location of the command script.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getArgs
Arguments for Amazon EMR to pass to the command for execution.
- Returns:
- Arguments for Amazon EMR to pass to the command for execution.
-
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-