/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies code executed 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.
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.
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.
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.
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.
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.
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.
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.
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * executes a job.
*/ inline const Aws::String& GetScriptLocation() const{ return m_scriptLocation; } /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * executes a job.
*/ inline bool ScriptLocationHasBeenSet() const { return m_scriptLocationHasBeenSet; } /** *Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that * executes 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 * executes 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 * executes 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 * executes 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 * executes 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 * executes a job.
*/ inline JobCommand& WithScriptLocation(const char* value) { SetScriptLocation(value); return *this;} /** *The Python version being used to execute 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 execute a Python shell job. Allowed values * are 2 or 3.
*/ inline bool PythonVersionHasBeenSet() const { return m_pythonVersionHasBeenSet; } /** *The Python version being used to execute 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 execute 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 execute 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 execute 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 execute 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 execute a Python shell job. Allowed values * are 2 or 3.
*/ inline JobCommand& WithPythonVersion(const char* value) { SetPythonVersion(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_scriptLocation; bool m_scriptLocationHasBeenSet; Aws::String m_pythonVersion; bool m_pythonVersionHasBeenSet; }; } // namespace Model } // namespace Glue } // namespace Aws