Struct aws_sdk_glue::model::job_command::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for JobCommand.
Implementations§
source§impl Builder
impl Builder
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.
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.
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 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 build(self) -> JobCommand
pub fn build(self) -> JobCommand
Consumes the builder and constructs a JobCommand.