AWS SDK for C++  1.9.19
AWS SDK for C++
HadoopJarStepConfig.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace EMR
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
48  inline const Aws::Vector<KeyValue>& GetProperties() const{ return m_properties; }
49 
54  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
55 
60  inline void SetProperties(const Aws::Vector<KeyValue>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
61 
66  inline void SetProperties(Aws::Vector<KeyValue>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
67 
72  inline HadoopJarStepConfig& WithProperties(const Aws::Vector<KeyValue>& value) { SetProperties(value); return *this;}
73 
78  inline HadoopJarStepConfig& WithProperties(Aws::Vector<KeyValue>&& value) { SetProperties(std::move(value)); return *this;}
79 
84  inline HadoopJarStepConfig& AddProperties(const KeyValue& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
85 
90  inline HadoopJarStepConfig& AddProperties(KeyValue&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
91 
92 
96  inline const Aws::String& GetJar() const{ return m_jar; }
97 
101  inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
102 
106  inline void SetJar(const Aws::String& value) { m_jarHasBeenSet = true; m_jar = value; }
107 
111  inline void SetJar(Aws::String&& value) { m_jarHasBeenSet = true; m_jar = std::move(value); }
112 
116  inline void SetJar(const char* value) { m_jarHasBeenSet = true; m_jar.assign(value); }
117 
121  inline HadoopJarStepConfig& WithJar(const Aws::String& value) { SetJar(value); return *this;}
122 
126  inline HadoopJarStepConfig& WithJar(Aws::String&& value) { SetJar(std::move(value)); return *this;}
127 
131  inline HadoopJarStepConfig& WithJar(const char* value) { SetJar(value); return *this;}
132 
133 
138  inline const Aws::String& GetMainClass() const{ return m_mainClass; }
139 
144  inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; }
145 
150  inline void SetMainClass(const Aws::String& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
151 
156  inline void SetMainClass(Aws::String&& value) { m_mainClassHasBeenSet = true; m_mainClass = std::move(value); }
157 
162  inline void SetMainClass(const char* value) { m_mainClassHasBeenSet = true; m_mainClass.assign(value); }
163 
168  inline HadoopJarStepConfig& WithMainClass(const Aws::String& value) { SetMainClass(value); return *this;}
169 
174  inline HadoopJarStepConfig& WithMainClass(Aws::String&& value) { SetMainClass(std::move(value)); return *this;}
175 
180  inline HadoopJarStepConfig& WithMainClass(const char* value) { SetMainClass(value); return *this;}
181 
182 
187  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
188 
193  inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
194 
199  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
200 
205  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
206 
211  inline HadoopJarStepConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
212 
217  inline HadoopJarStepConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
218 
223  inline HadoopJarStepConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
224 
229  inline HadoopJarStepConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
230 
235  inline HadoopJarStepConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
236 
237  private:
238 
239  Aws::Vector<KeyValue> m_properties;
240  bool m_propertiesHasBeenSet;
241 
242  Aws::String m_jar;
243  bool m_jarHasBeenSet;
244 
245  Aws::String m_mainClass;
246  bool m_mainClassHasBeenSet;
247 
249  bool m_argsHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace EMR
254 } // namespace Aws
Aws::EMR::Model::HadoopJarStepConfig::AddArgs
HadoopJarStepConfig & AddArgs(Aws::String &&value)
Definition: HadoopJarStepConfig.h:229
Aws::EMR::Model::HadoopJarStepConfig::SetArgs
void SetArgs(Aws::Vector< Aws::String > &&value)
Definition: HadoopJarStepConfig.h:205
Aws::EMR::Model::HadoopJarStepConfig::AddArgs
HadoopJarStepConfig & AddArgs(const Aws::String &value)
Definition: HadoopJarStepConfig.h:223
Aws::EMR::Model::HadoopJarStepConfig::AddProperties
HadoopJarStepConfig & AddProperties(const KeyValue &value)
Definition: HadoopJarStepConfig.h:84
Aws::EMR::Model::HadoopJarStepConfig::GetJar
const Aws::String & GetJar() const
Definition: HadoopJarStepConfig.h:96
Aws::EMR::Model::HadoopJarStepConfig::WithProperties
HadoopJarStepConfig & WithProperties(Aws::Vector< KeyValue > &&value)
Definition: HadoopJarStepConfig.h:78
Aws::EMR::Model::HadoopJarStepConfig::GetProperties
const Aws::Vector< KeyValue > & GetProperties() const
Definition: HadoopJarStepConfig.h:48
EMR_EXPORTS.h
Aws::EMR::Model::HadoopJarStepConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::HadoopJarStepConfig::SetMainClass
void SetMainClass(const Aws::String &value)
Definition: HadoopJarStepConfig.h:150
Aws::EMR::Model::HadoopJarStepConfig::MainClassHasBeenSet
bool MainClassHasBeenSet() const
Definition: HadoopJarStepConfig.h:144
Aws::EMR::Model::HadoopJarStepConfig::ArgsHasBeenSet
bool ArgsHasBeenSet() const
Definition: HadoopJarStepConfig.h:193
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::HadoopJarStepConfig::JarHasBeenSet
bool JarHasBeenSet() const
Definition: HadoopJarStepConfig.h:101
Aws::EMR::Model::HadoopJarStepConfig::SetJar
void SetJar(const char *value)
Definition: HadoopJarStepConfig.h:116
AWSVector.h
Aws::EMR::Model::HadoopJarStepConfig::WithJar
HadoopJarStepConfig & WithJar(Aws::String &&value)
Definition: HadoopJarStepConfig.h:126
Aws::EMR::Model::HadoopJarStepConfig::WithJar
HadoopJarStepConfig & WithJar(const char *value)
Definition: HadoopJarStepConfig.h:131
Aws::EMR::Model::HadoopJarStepConfig::WithJar
HadoopJarStepConfig & WithJar(const Aws::String &value)
Definition: HadoopJarStepConfig.h:121
Aws::EMR::Model::HadoopJarStepConfig::WithMainClass
HadoopJarStepConfig & WithMainClass(Aws::String &&value)
Definition: HadoopJarStepConfig.h:174
Aws::EMR::Model::HadoopJarStepConfig
Definition: HadoopJarStepConfig.h:36
Aws::EMR::Model::HadoopJarStepConfig::WithArgs
HadoopJarStepConfig & WithArgs(Aws::Vector< Aws::String > &&value)
Definition: HadoopJarStepConfig.h:217
Aws::EMR::Model::HadoopJarStepConfig::GetMainClass
const Aws::String & GetMainClass() const
Definition: HadoopJarStepConfig.h:138
Aws::EMR::Model::HadoopJarStepConfig::SetJar
void SetJar(Aws::String &&value)
Definition: HadoopJarStepConfig.h:111
Aws::EMR::Model::HadoopJarStepConfig::AddProperties
HadoopJarStepConfig & AddProperties(KeyValue &&value)
Definition: HadoopJarStepConfig.h:90
Aws::EMR::Model::HadoopJarStepConfig::SetJar
void SetJar(const Aws::String &value)
Definition: HadoopJarStepConfig.h:106
Aws::EMR::Model::HadoopJarStepConfig::GetArgs
const Aws::Vector< Aws::String > & GetArgs() const
Definition: HadoopJarStepConfig.h:187
Aws::EMR::Model::HadoopJarStepConfig::SetMainClass
void SetMainClass(const char *value)
Definition: HadoopJarStepConfig.h:162
Aws::EMR::Model::HadoopJarStepConfig::WithMainClass
HadoopJarStepConfig & WithMainClass(const Aws::String &value)
Definition: HadoopJarStepConfig.h:168
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::EMR::Model::HadoopJarStepConfig::SetMainClass
void SetMainClass(Aws::String &&value)
Definition: HadoopJarStepConfig.h:156
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::HadoopJarStepConfig::HadoopJarStepConfig
HadoopJarStepConfig()
Aws::EMR::Model::HadoopJarStepConfig::WithArgs
HadoopJarStepConfig & WithArgs(const Aws::Vector< Aws::String > &value)
Definition: HadoopJarStepConfig.h:211
Aws::EMR::Model::HadoopJarStepConfig::WithMainClass
HadoopJarStepConfig & WithMainClass(const char *value)
Definition: HadoopJarStepConfig.h:180
Aws::EMR::Model::HadoopJarStepConfig::HadoopJarStepConfig
HadoopJarStepConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::HadoopJarStepConfig::operator=
HadoopJarStepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::HadoopJarStepConfig::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: HadoopJarStepConfig.h:54
Aws::EMR::Model::KeyValue
Definition: KeyValue.h:32
KeyValue.h
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::HadoopJarStepConfig::SetProperties
void SetProperties(Aws::Vector< KeyValue > &&value)
Definition: HadoopJarStepConfig.h:66
Aws::EMR::Model::HadoopJarStepConfig::SetArgs
void SetArgs(const Aws::Vector< Aws::String > &value)
Definition: HadoopJarStepConfig.h:199
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::HadoopJarStepConfig::SetProperties
void SetProperties(const Aws::Vector< KeyValue > &value)
Definition: HadoopJarStepConfig.h:60
Aws::EMR::Model::HadoopJarStepConfig::WithProperties
HadoopJarStepConfig & WithProperties(const Aws::Vector< KeyValue > &value)
Definition: HadoopJarStepConfig.h:72
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::HadoopJarStepConfig::AddArgs
HadoopJarStepConfig & AddArgs(const char *value)
Definition: HadoopJarStepConfig.h:235