AWS SDK for C++  1.9.20
AWS SDK for C++
HadoopStepConfig.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 
47  inline const Aws::String& GetJar() const{ return m_jar; }
48 
52  inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
53 
57  inline void SetJar(const Aws::String& value) { m_jarHasBeenSet = true; m_jar = value; }
58 
62  inline void SetJar(Aws::String&& value) { m_jarHasBeenSet = true; m_jar = std::move(value); }
63 
67  inline void SetJar(const char* value) { m_jarHasBeenSet = true; m_jar.assign(value); }
68 
72  inline HadoopStepConfig& WithJar(const Aws::String& value) { SetJar(value); return *this;}
73 
77  inline HadoopStepConfig& WithJar(Aws::String&& value) { SetJar(std::move(value)); return *this;}
78 
82  inline HadoopStepConfig& WithJar(const char* value) { SetJar(value); return *this;}
83 
84 
89  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
90 
95  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
96 
101  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
102 
107  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
108 
113  inline HadoopStepConfig& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
114 
119  inline HadoopStepConfig& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
120 
125  inline HadoopStepConfig& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
126 
131  inline HadoopStepConfig& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
132 
137  inline HadoopStepConfig& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
138 
143  inline HadoopStepConfig& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
144 
149  inline HadoopStepConfig& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
150 
155  inline HadoopStepConfig& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
156 
161  inline HadoopStepConfig& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
162 
163 
168  inline const Aws::String& GetMainClass() const{ return m_mainClass; }
169 
174  inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; }
175 
180  inline void SetMainClass(const Aws::String& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
181 
186  inline void SetMainClass(Aws::String&& value) { m_mainClassHasBeenSet = true; m_mainClass = std::move(value); }
187 
192  inline void SetMainClass(const char* value) { m_mainClassHasBeenSet = true; m_mainClass.assign(value); }
193 
198  inline HadoopStepConfig& WithMainClass(const Aws::String& value) { SetMainClass(value); return *this;}
199 
204  inline HadoopStepConfig& WithMainClass(Aws::String&& value) { SetMainClass(std::move(value)); return *this;}
205 
210  inline HadoopStepConfig& WithMainClass(const char* value) { SetMainClass(value); return *this;}
211 
212 
217  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
218 
223  inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
224 
229  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
230 
235  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
236 
241  inline HadoopStepConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
242 
247  inline HadoopStepConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
248 
253  inline HadoopStepConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
254 
259  inline HadoopStepConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
260 
265  inline HadoopStepConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
266 
267  private:
268 
269  Aws::String m_jar;
270  bool m_jarHasBeenSet;
271 
273  bool m_propertiesHasBeenSet;
274 
275  Aws::String m_mainClass;
276  bool m_mainClassHasBeenSet;
277 
279  bool m_argsHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace EMR
284 } // namespace Aws
Aws::EMR::Model::HadoopStepConfig::SetProperties
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HadoopStepConfig.h:101
Aws::EMR::Model::HadoopStepConfig::SetArgs
void SetArgs(const Aws::Vector< Aws::String > &value)
Definition: HadoopStepConfig.h:229
Aws::EMR::Model::HadoopStepConfig::WithProperties
HadoopStepConfig & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HadoopStepConfig.h:119
Aws::EMR::Model::HadoopStepConfig::AddArgs
HadoopStepConfig & AddArgs(Aws::String &&value)
Definition: HadoopStepConfig.h:259
Aws::EMR::Model::HadoopStepConfig::WithMainClass
HadoopStepConfig & WithMainClass(const char *value)
Definition: HadoopStepConfig.h:210
EMR_EXPORTS.h
Aws::EMR::Model::HadoopStepConfig::SetProperties
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HadoopStepConfig.h:107
Aws::EMR::Model::HadoopStepConfig::AddProperties
HadoopStepConfig & AddProperties(Aws::String &&key, Aws::String &&value)
Definition: HadoopStepConfig.h:143
Aws::EMR::Model::HadoopStepConfig::AddProperties
HadoopStepConfig & AddProperties(const char *key, const char *value)
Definition: HadoopStepConfig.h:161
Aws::EMR::Model::HadoopStepConfig::WithJar
HadoopStepConfig & WithJar(const Aws::String &value)
Definition: HadoopStepConfig.h:72
Aws::EMR::Model::HadoopStepConfig::SetMainClass
void SetMainClass(const char *value)
Definition: HadoopStepConfig.h:192
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::HadoopStepConfig::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: HadoopStepConfig.h:95
Aws::EMR::Model::HadoopStepConfig::WithJar
HadoopStepConfig & WithJar(Aws::String &&value)
Definition: HadoopStepConfig.h:77
AWSVector.h
Aws::EMR::Model::HadoopStepConfig::AddProperties
HadoopStepConfig & AddProperties(const Aws::String &key, Aws::String &&value)
Definition: HadoopStepConfig.h:137
Aws::EMR::Model::HadoopStepConfig::SetJar
void SetJar(Aws::String &&value)
Definition: HadoopStepConfig.h:62
Aws::EMR::Model::HadoopStepConfig::WithMainClass
HadoopStepConfig & WithMainClass(const Aws::String &value)
Definition: HadoopStepConfig.h:198
Aws::EMR::Model::HadoopStepConfig::AddProperties
HadoopStepConfig & AddProperties(const Aws::String &key, const Aws::String &value)
Definition: HadoopStepConfig.h:125
Aws::EMR::Model::HadoopStepConfig::SetMainClass
void SetMainClass(Aws::String &&value)
Definition: HadoopStepConfig.h:186
Aws::EMR::Model::HadoopStepConfig::AddProperties
HadoopStepConfig & AddProperties(const char *key, Aws::String &&value)
Definition: HadoopStepConfig.h:149
Aws::EMR::Model::HadoopStepConfig::WithProperties
HadoopStepConfig & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HadoopStepConfig.h:113
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::HadoopStepConfig::GetMainClass
const Aws::String & GetMainClass() const
Definition: HadoopStepConfig.h:168
Aws::EMR::Model::HadoopStepConfig::AddProperties
HadoopStepConfig & AddProperties(Aws::String &&key, const Aws::String &value)
Definition: HadoopStepConfig.h:131
Aws::EMR::Model::HadoopStepConfig::GetArgs
const Aws::Vector< Aws::String > & GetArgs() const
Definition: HadoopStepConfig.h:217
Aws::EMR::Model::HadoopStepConfig::operator=
HadoopStepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::HadoopStepConfig::MainClassHasBeenSet
bool MainClassHasBeenSet() const
Definition: HadoopStepConfig.h:174
Aws::EMR::Model::HadoopStepConfig::WithJar
HadoopStepConfig & WithJar(const char *value)
Definition: HadoopStepConfig.h:82
Aws::EMR::Model::HadoopStepConfig::AddArgs
HadoopStepConfig & AddArgs(const char *value)
Definition: HadoopStepConfig.h:265
Aws::EMR::Model::HadoopStepConfig::ArgsHasBeenSet
bool ArgsHasBeenSet() const
Definition: HadoopStepConfig.h:223
Aws::EMR::Model::HadoopStepConfig::GetJar
const Aws::String & GetJar() const
Definition: HadoopStepConfig.h:47
Aws::EMR::Model::HadoopStepConfig::HadoopStepConfig
HadoopStepConfig()
Aws::EMR::Model::HadoopStepConfig::SetMainClass
void SetMainClass(const Aws::String &value)
Definition: HadoopStepConfig.h:180
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::HadoopStepConfig::SetArgs
void SetArgs(Aws::Vector< Aws::String > &&value)
Definition: HadoopStepConfig.h:235
Aws::EMR::Model::HadoopStepConfig::SetJar
void SetJar(const char *value)
Definition: HadoopStepConfig.h:67
Aws::EMR::Model::HadoopStepConfig::WithArgs
HadoopStepConfig & WithArgs(Aws::Vector< Aws::String > &&value)
Definition: HadoopStepConfig.h:247
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::HadoopStepConfig::SetJar
void SetJar(const Aws::String &value)
Definition: HadoopStepConfig.h:57
Aws::EMR::Model::HadoopStepConfig::AddArgs
HadoopStepConfig & AddArgs(const Aws::String &value)
Definition: HadoopStepConfig.h:253
Aws::EMR::Model::HadoopStepConfig::AddProperties
HadoopStepConfig & AddProperties(Aws::String &&key, const char *value)
Definition: HadoopStepConfig.h:155
Aws::EMR::Model::HadoopStepConfig::GetProperties
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition: HadoopStepConfig.h:89
Aws::EMR::Model::HadoopStepConfig::WithArgs
HadoopStepConfig & WithArgs(const Aws::Vector< Aws::String > &value)
Definition: HadoopStepConfig.h:241
Aws::EMR::Model::HadoopStepConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSMap.h
Aws::EMR::Model::HadoopStepConfig::HadoopStepConfig
HadoopStepConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::HadoopStepConfig::JarHasBeenSet
bool JarHasBeenSet() const
Definition: HadoopStepConfig.h:52
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::EMR::Model::HadoopStepConfig
Definition: HadoopStepConfig.h:36
Aws::EMR::Model::HadoopStepConfig::WithMainClass
HadoopStepConfig & WithMainClass(Aws::String &&value)
Definition: HadoopStepConfig.h:204