@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobCommand extends Object implements Serializable, Cloneable, StructuredPojo
Specifies code executed when a job is run.
Constructor and Description |
---|
JobCommand() |
Modifier and Type | Method and Description |
---|---|
JobCommand |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the job command.
|
String |
getPythonVersion()
The Python version being used to execute a Python shell job.
|
String |
getScriptLocation()
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the job command.
|
void |
setPythonVersion(String pythonVersion)
The Python version being used to execute a Python shell job.
|
void |
setScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.
|
String |
toString()
Returns a string representation of this object.
|
JobCommand |
withName(String name)
The name of the job command.
|
JobCommand |
withPythonVersion(String pythonVersion)
The Python version being used to execute a Python shell job.
|
JobCommand |
withScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.
|
public void setName(String name)
The name of the job command. For an Apache Spark ETL job, this must be glueetl
. For a Python shell
job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be
gluestreaming
.
name
- The name of the job command. For an Apache Spark ETL job, this must be glueetl
. For a Python
shell job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be
gluestreaming
.public String getName()
The name of the job command. For an Apache Spark ETL job, this must be glueetl
. For a Python shell
job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be
gluestreaming
.
glueetl
. For a Python
shell job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be
gluestreaming
.public JobCommand withName(String name)
The name of the job command. For an Apache Spark ETL job, this must be glueetl
. For a Python shell
job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be
gluestreaming
.
name
- The name of the job command. For an Apache Spark ETL job, this must be glueetl
. For a Python
shell job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be
gluestreaming
.public void setScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.
scriptLocation
- Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.public String getScriptLocation()
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.
public JobCommand withScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.
scriptLocation
- Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job.public void setPythonVersion(String pythonVersion)
The Python version being used to execute a Python shell job. Allowed values are 2 or 3.
pythonVersion
- The Python version being used to execute a Python shell job. Allowed values are 2 or 3.public String getPythonVersion()
The Python version being used to execute a Python shell job. Allowed values are 2 or 3.
public JobCommand withPythonVersion(String pythonVersion)
The Python version being used to execute a Python shell job. Allowed values are 2 or 3.
pythonVersion
- The Python version being used to execute a Python shell job. Allowed values are 2 or 3.public String toString()
toString
in class Object
Object.toString()
public JobCommand clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.