AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
JobCommand.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glue {
20namespace Model {
21
28 public:
29 AWS_GLUE_API JobCommand() = default;
30 AWS_GLUE_API JobCommand(Aws::Utils::Json::JsonView jsonValue);
33
35
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 JobCommand& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetScriptLocation() const { return m_scriptLocation; }
62 inline bool ScriptLocationHasBeenSet() const { return m_scriptLocationHasBeenSet; }
63 template <typename ScriptLocationT = Aws::String>
64 void SetScriptLocation(ScriptLocationT&& value) {
65 m_scriptLocationHasBeenSet = true;
66 m_scriptLocation = std::forward<ScriptLocationT>(value);
67 }
68 template <typename ScriptLocationT = Aws::String>
69 JobCommand& WithScriptLocation(ScriptLocationT&& value) {
70 SetScriptLocation(std::forward<ScriptLocationT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetPythonVersion() const { return m_pythonVersion; }
81 inline bool PythonVersionHasBeenSet() const { return m_pythonVersionHasBeenSet; }
82 template <typename PythonVersionT = Aws::String>
83 void SetPythonVersion(PythonVersionT&& value) {
84 m_pythonVersionHasBeenSet = true;
85 m_pythonVersion = std::forward<PythonVersionT>(value);
86 }
87 template <typename PythonVersionT = Aws::String>
88 JobCommand& WithPythonVersion(PythonVersionT&& value) {
89 SetPythonVersion(std::forward<PythonVersionT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::String& GetRuntime() const { return m_runtime; }
103 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
104 template <typename RuntimeT = Aws::String>
105 void SetRuntime(RuntimeT&& value) {
106 m_runtimeHasBeenSet = true;
107 m_runtime = std::forward<RuntimeT>(value);
108 }
109 template <typename RuntimeT = Aws::String>
110 JobCommand& WithRuntime(RuntimeT&& value) {
111 SetRuntime(std::forward<RuntimeT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_name;
117
118 Aws::String m_scriptLocation;
119
120 Aws::String m_pythonVersion;
121
122 Aws::String m_runtime;
123 bool m_nameHasBeenSet = false;
124 bool m_scriptLocationHasBeenSet = false;
125 bool m_pythonVersionHasBeenSet = false;
126 bool m_runtimeHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Glue
131} // namespace Aws
void SetRuntime(RuntimeT &&value)
Definition JobCommand.h:105
JobCommand & WithPythonVersion(PythonVersionT &&value)
Definition JobCommand.h:88
const Aws::String & GetScriptLocation() const
Definition JobCommand.h:61
void SetPythonVersion(PythonVersionT &&value)
Definition JobCommand.h:83
void SetScriptLocation(ScriptLocationT &&value)
Definition JobCommand.h:64
const Aws::String & GetPythonVersion() const
Definition JobCommand.h:80
AWS_GLUE_API JobCommand(Aws::Utils::Json::JsonView jsonValue)
JobCommand & WithRuntime(RuntimeT &&value)
Definition JobCommand.h:110
const Aws::String & GetRuntime() const
Definition JobCommand.h:102
AWS_GLUE_API JobCommand & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition JobCommand.h:42
JobCommand & WithName(NameT &&value)
Definition JobCommand.h:50
void SetName(NameT &&value)
Definition JobCommand.h:45
AWS_GLUE_API JobCommand()=default
bool ScriptLocationHasBeenSet() const
Definition JobCommand.h:62
JobCommand & WithScriptLocation(ScriptLocationT &&value)
Definition JobCommand.h:69
bool PythonVersionHasBeenSet() const
Definition JobCommand.h:81
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue