com.amazonaws.services.elasticmapreduce.model
Class Command

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.Command
All Implemented Interfaces:
Serializable

public class Command
extends Object
implements Serializable

An entity describing an executable that runs on a cluster.

See Also:
Serialized Form

Constructor Summary
Command()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

getName

public String getName()
The name of the command.

Returns:
The name of the command.

setName

public void setName(String name)
The name of the command.

Parameters:
name - The name of the command.

withName

public Command withName(String name)
The name of the command.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The name of the command.
Returns:
A reference to this updated object so that method calls can be chained together.

getScriptPath

public String getScriptPath()
The Amazon S3 location of the command script.

Returns:
The Amazon S3 location of the command script.

setScriptPath

public void setScriptPath(String scriptPath)
The Amazon S3 location of the command script.

Parameters:
scriptPath - The Amazon S3 location of the command script.

withScriptPath

public Command withScriptPath(String scriptPath)
The Amazon S3 location of the command script.

Returns a reference to this object so that method calls can be chained together.

Parameters:
scriptPath - The Amazon S3 location of the command script.
Returns:
A reference to this updated object so that method calls can be chained together.

getArgs

public List<String> 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

public void setArgs(Collection<String> args)
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

public Command withArgs(String... args)
Arguments for Amazon EMR to pass to the command for execution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
args - Arguments for Amazon EMR to pass to the command for execution.
Returns:
A reference to this updated object so that method calls can be chained together.

withArgs

public Command withArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the command for execution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
args - Arguments for Amazon EMR to pass to the command for execution.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.