@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Command extends Object implements Serializable, Cloneable, StructuredPojo
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 void setName(String name)
The name of the command.
name
- The name of the command.public String getName()
The name of the command.
public Command withName(String name)
The name of the command.
name
- The name of the command.public void setScriptPath(String scriptPath)
The Amazon S3 location of the command script.
scriptPath
- The Amazon S3 location of the command script.public String getScriptPath()
The Amazon S3 location of the command script.
public Command withScriptPath(String scriptPath)
The Amazon S3 location of the command script.
scriptPath
- The Amazon S3 location of the command script.public List<String> getArgs()
Arguments for Amazon EMR to pass to the command for execution.
public void setArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the command for execution.
args
- Arguments for Amazon EMR to pass to the command for execution.public Command withArgs(String... args)
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)
or withArgs(java.util.Collection)
if you want to override the
existing values.
args
- Arguments for Amazon EMR to pass to the command for execution.public Command withArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the command for execution.
args
- Arguments for Amazon EMR to pass to the command for execution.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.