@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobCommand extends Object implements Serializable, Cloneable, StructuredPojo
Specifies code that runs 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 run a Python shell job.
|
String |
getRuntime()
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your
environment.
|
String |
getScriptLocation()
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs 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 run a Python shell job.
|
void |
setRuntime(String runtime)
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your
environment.
|
void |
setScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs 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 run a Python shell job.
|
JobCommand |
withRuntime(String runtime)
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your
environment.
|
JobCommand |
withScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs 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
. For a Ray job, this must be glueray
.
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
. For a Ray job, this must be glueray
.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
. For a Ray job, this must be glueray
.
glueetl
. For a Python
shell job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be
gluestreaming
. For a Ray job, this must be glueray
.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
. For a Ray job, this must be glueray
.
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
. For a Ray job, this must be glueray
.public void setScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.
scriptLocation
- Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.public String getScriptLocation()
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.
public JobCommand withScriptLocation(String scriptLocation)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.
scriptLocation
- Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.public void setPythonVersion(String pythonVersion)
The Python version being used to run a Python shell job. Allowed values are 2 or 3.
pythonVersion
- The Python version being used to run a Python shell job. Allowed values are 2 or 3.public String getPythonVersion()
The Python version being used to run a Python shell job. Allowed values are 2 or 3.
public JobCommand withPythonVersion(String pythonVersion)
The Python version being used to run a Python shell job. Allowed values are 2 or 3.
pythonVersion
- The Python version being used to run a Python shell job. Allowed values are 2 or 3.public void setRuntime(String runtime)
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. This field is not used in other job types. For supported runtime environment values, see Supported Ray runtime environments in the Glue Developer Guide.
runtime
- In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in
your environment. This field is not used in other job types. For supported runtime environment values, see
Supported Ray runtime
environments in the Glue Developer Guide.public String getRuntime()
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. This field is not used in other job types. For supported runtime environment values, see Supported Ray runtime environments in the Glue Developer Guide.
public JobCommand withRuntime(String runtime)
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. This field is not used in other job types. For supported runtime environment values, see Supported Ray runtime environments in the Glue Developer Guide.
runtime
- In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in
your environment. This field is not used in other job types. For supported runtime environment values, see
Supported Ray runtime
environments in the Glue Developer Guide.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.