@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HadoopJarStepConfig extends Object implements Serializable, Cloneable, StructuredPojo
A job flow step consisting of a JAR file whose main function will be executed. The main function submits a job for Hadoop to execute and waits for the job to finish or fail.
Constructor and Description |
---|
HadoopJarStepConfig()
Default constructor for HadoopJarStepConfig object.
|
HadoopJarStepConfig(String jar)
Constructs a new HadoopJarStepConfig object.
|
Modifier and Type | Method and Description |
---|---|
HadoopJarStepConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getArgs()
A list of command line arguments passed to the JAR file's main function when executed.
|
String |
getJar()
A path to a JAR file run during the step.
|
String |
getMainClass()
The name of the main class in the specified Java file.
|
List<KeyValue> |
getProperties()
A list of Java properties that are set when the step runs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArgs(Collection<String> args)
A list of command line arguments passed to the JAR file's main function when executed.
|
void |
setJar(String jar)
A path to a JAR file run during the step.
|
void |
setMainClass(String mainClass)
The name of the main class in the specified Java file.
|
void |
setProperties(Collection<KeyValue> properties)
A list of Java properties that are set when the step runs.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
HadoopJarStepConfig |
withArgs(Collection<String> args)
A list of command line arguments passed to the JAR file's main function when executed.
|
HadoopJarStepConfig |
withArgs(String... args)
A list of command line arguments passed to the JAR file's main function when executed.
|
HadoopJarStepConfig |
withJar(String jar)
A path to a JAR file run during the step.
|
HadoopJarStepConfig |
withMainClass(String mainClass)
The name of the main class in the specified Java file.
|
HadoopJarStepConfig |
withProperties(Collection<KeyValue> properties)
A list of Java properties that are set when the step runs.
|
HadoopJarStepConfig |
withProperties(KeyValue... properties)
A list of Java properties that are set when the step runs.
|
public HadoopJarStepConfig()
public HadoopJarStepConfig(String jar)
jar
- A path to a JAR file run during the step.public List<KeyValue> getProperties()
A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
public void setProperties(Collection<KeyValue> properties)
A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
properties
- A list of Java properties that are set when the step runs. You can use these properties to pass key value
pairs to your main function.public HadoopJarStepConfig withProperties(KeyValue... properties)
A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
NOTE: This method appends the values to the existing list (if any). Use
setProperties(java.util.Collection)
or withProperties(java.util.Collection)
if you want to
override the existing values.
properties
- A list of Java properties that are set when the step runs. You can use these properties to pass key value
pairs to your main function.public HadoopJarStepConfig withProperties(Collection<KeyValue> properties)
A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
properties
- A list of Java properties that are set when the step runs. You can use these properties to pass key value
pairs to your main function.public void setJar(String jar)
A path to a JAR file run during the step.
jar
- A path to a JAR file run during the step.public String getJar()
A path to a JAR file run during the step.
public HadoopJarStepConfig withJar(String jar)
A path to a JAR file run during the step.
jar
- A path to a JAR file run during the step.public void setMainClass(String mainClass)
The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
mainClass
- The name of the main class in the specified Java file. If not specified, the JAR file should specify a
Main-Class in its manifest file.public String getMainClass()
The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
public HadoopJarStepConfig withMainClass(String mainClass)
The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
mainClass
- The name of the main class in the specified Java file. If not specified, the JAR file should specify a
Main-Class in its manifest file.public List<String> getArgs()
A list of command line arguments passed to the JAR file's main function when executed.
public void setArgs(Collection<String> args)
A list of command line arguments passed to the JAR file's main function when executed.
args
- A list of command line arguments passed to the JAR file's main function when executed.public HadoopJarStepConfig withArgs(String... args)
A list of command line arguments passed to the JAR file's main function when executed.
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
- A list of command line arguments passed to the JAR file's main function when executed.public HadoopJarStepConfig withArgs(Collection<String> args)
A list of command line arguments passed to the JAR file's main function when executed.
args
- A list of command line arguments passed to the JAR file's main function when executed.public String toString()
toString
in class Object
Object.toString()
public HadoopJarStepConfig clone()
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.