public class Command extends Object implements Serializable, Cloneable
An entity describing an executable that runs on a cluster.
| Constructor and Description | 
|---|
| Command() | 
| Modifier and Type | Method and Description | 
|---|---|
| Command | clone() | 
| boolean | equals(Object obj) | 
| List<String> | getArgs()Arguments for Amazon EMR to pass to the command for execution. | 
| String | getName()The name of the command. | 
| String | getScriptPath()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 | setName(String name)The name of the command. | 
| void | setScriptPath(String scriptPath)The Amazon S3 location of the command script. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| Command | withArgs(Collection<String> args)Arguments for Amazon EMR to pass to the command for execution. | 
| Command | withArgs(String... args)Arguments for Amazon EMR to pass to the command for execution. | 
| Command | withName(String name)The name of the command. | 
| Command | withScriptPath(String scriptPath)The Amazon S3 location of the command script. | 
public String getName()
public void setName(String name)
name - The name of the command.public Command withName(String name)
Returns a reference to this object so that method calls can be chained together.
name - The name of the command.public String getScriptPath()
public void setScriptPath(String scriptPath)
scriptPath - The Amazon S3 location of the command script.public Command withScriptPath(String scriptPath)
Returns a reference to this object so that method calls can be chained together.
scriptPath - The Amazon S3 location of the command script.public List<String> getArgs()
public void setArgs(Collection<String> args)
args - Arguments for Amazon EMR to pass to the command for execution.public Command withArgs(String... args)
 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.
 
Returns a reference to this object so that method calls can be chained together.
args - Arguments for Amazon EMR to pass to the command for execution.public Command withArgs(Collection<String> args)
Returns a reference to this object so that method calls can be chained together.
args - Arguments for Amazon EMR to pass to the command for execution.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.