/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies code that runs when a job is run.See Also:
AWS API
* Reference
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline const Aws::String& GetScriptLocation() const{ return m_scriptLocation; } /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline bool ScriptLocationHasBeenSet() const { return m_scriptLocationHasBeenSet; } /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline void SetScriptLocation(const Aws::String& value) { m_scriptLocationHasBeenSet = true; m_scriptLocation = value; } /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline void SetScriptLocation(Aws::String&& value) { m_scriptLocationHasBeenSet = true; m_scriptLocation = std::move(value); } /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline void SetScriptLocation(const char* value) { m_scriptLocationHasBeenSet = true; m_scriptLocation.assign(value); } /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline JobCommand& WithScriptLocation(const Aws::String& value) { SetScriptLocation(value); return *this;} /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline JobCommand& WithScriptLocation(Aws::String&& value) { SetScriptLocation(std::move(value)); return *this;} /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * runs a job.
*/ inline JobCommand& WithScriptLocation(const char* value) { SetScriptLocation(value); return *this;} /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline const Aws::String& GetPythonVersion() const{ return m_pythonVersion; } /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline bool PythonVersionHasBeenSet() const { return m_pythonVersionHasBeenSet; } /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline void SetPythonVersion(const Aws::String& value) { m_pythonVersionHasBeenSet = true; m_pythonVersion = value; } /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline void SetPythonVersion(Aws::String&& value) { m_pythonVersionHasBeenSet = true; m_pythonVersion = std::move(value); } /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline void SetPythonVersion(const char* value) { m_pythonVersionHasBeenSet = true; m_pythonVersion.assign(value); } /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline JobCommand& WithPythonVersion(const Aws::String& value) { SetPythonVersion(value); return *this;} /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline JobCommand& WithPythonVersion(Aws::String&& value) { SetPythonVersion(std::move(value)); return *this;} /** *The Python version being used to run a Python shell job. Allowed values are 2 * or 3.
*/ inline JobCommand& WithPythonVersion(const char* value) { SetPythonVersion(value); return *this;} /** *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.
*/ inline const Aws::String& GetRuntime() const{ return m_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 Working * with Ray jobs in the Glue Developer Guide.
*/ inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; } /** *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.
*/ inline void SetRuntime(const Aws::String& value) { m_runtimeHasBeenSet = true; m_runtime = value; } /** *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.
*/ inline void SetRuntime(Aws::String&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); } /** *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.
*/ inline void SetRuntime(const char* value) { m_runtimeHasBeenSet = true; m_runtime.assign(value); } /** *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.
*/ inline JobCommand& WithRuntime(const Aws::String& value) { SetRuntime(value); return *this;} /** *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.
*/ inline JobCommand& WithRuntime(Aws::String&& value) { SetRuntime(std::move(value)); return *this;} /** *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.
*/ inline JobCommand& WithRuntime(const char* value) { SetRuntime(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_scriptLocation; bool m_scriptLocationHasBeenSet = false; Aws::String m_pythonVersion; bool m_pythonVersionHasBeenSet = false; Aws::String m_runtime; bool m_runtimeHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws