Struct aws_sdk_glue::types::builders::JobCommandBuilder
source · #[non_exhaustive]pub struct JobCommandBuilder { /* private fields */ }Expand description
A builder for JobCommand.
Implementations§
source§impl JobCommandBuilder
impl JobCommandBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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.
sourcepub fn script_location(self, input: impl Into<String>) -> Self
pub fn script_location(self, input: impl Into<String>) -> Self
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.
sourcepub fn set_script_location(self, input: Option<String>) -> Self
pub fn set_script_location(self, input: Option<String>) -> Self
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.
sourcepub fn get_script_location(&self) -> &Option<String>
pub fn get_script_location(&self) -> &Option<String>
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.
sourcepub fn python_version(self, input: impl Into<String>) -> Self
pub fn python_version(self, input: impl Into<String>) -> Self
The Python version being used to run a Python shell job. Allowed values are 2 or 3.
sourcepub fn set_python_version(self, input: Option<String>) -> Self
pub fn set_python_version(self, input: Option<String>) -> Self
The Python version being used to run a Python shell job. Allowed values are 2 or 3.
sourcepub fn get_python_version(&self) -> &Option<String>
pub fn get_python_version(&self) -> &Option<String>
The Python version being used to run a Python shell job. Allowed values are 2 or 3.
sourcepub fn runtime(self, input: impl Into<String>) -> Self
pub fn runtime(self, input: impl Into<String>) -> Self
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 Working with Ray jobs in the Glue Developer Guide.
sourcepub fn set_runtime(self, input: Option<String>) -> Self
pub fn set_runtime(self, input: Option<String>) -> Self
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 Working with Ray jobs in the Glue Developer Guide.
sourcepub fn get_runtime(&self) -> &Option<String>
pub fn get_runtime(&self) -> &Option<String>
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 Working with Ray jobs in the Glue Developer Guide.
sourcepub fn build(self) -> JobCommand
pub fn build(self) -> JobCommand
Consumes the builder and constructs a JobCommand.
Trait Implementations§
source§impl Clone for JobCommandBuilder
impl Clone for JobCommandBuilder
source§fn clone(&self) -> JobCommandBuilder
fn clone(&self) -> JobCommandBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JobCommandBuilder
impl Debug for JobCommandBuilder
source§impl Default for JobCommandBuilder
impl Default for JobCommandBuilder
source§fn default() -> JobCommandBuilder
fn default() -> JobCommandBuilder
source§impl PartialEq for JobCommandBuilder
impl PartialEq for JobCommandBuilder
source§fn eq(&self, other: &JobCommandBuilder) -> bool
fn eq(&self, other: &JobCommandBuilder) -> bool
self and other values to be equal, and is used
by ==.