AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HadoopStepConfig.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_EMR_API HadoopStepConfig();
42
43
45
48 inline const Aws::String& GetJar() const{ return m_jar; }
49 inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
50 inline void SetJar(const Aws::String& value) { m_jarHasBeenSet = true; m_jar = value; }
51 inline void SetJar(Aws::String&& value) { m_jarHasBeenSet = true; m_jar = std::move(value); }
52 inline void SetJar(const char* value) { m_jarHasBeenSet = true; m_jar.assign(value); }
53 inline HadoopStepConfig& WithJar(const Aws::String& value) { SetJar(value); return *this;}
54 inline HadoopStepConfig& WithJar(Aws::String&& value) { SetJar(std::move(value)); return *this;}
55 inline HadoopStepConfig& WithJar(const char* value) { SetJar(value); return *this;}
57
59
63 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
64 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
65 inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
66 inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
68 inline HadoopStepConfig& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
69 inline HadoopStepConfig& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
70 inline HadoopStepConfig& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
71 inline HadoopStepConfig& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
72 inline HadoopStepConfig& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
73 inline HadoopStepConfig& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
74 inline HadoopStepConfig& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
75 inline HadoopStepConfig& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
77
79
83 inline const Aws::String& GetMainClass() const{ return m_mainClass; }
84 inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; }
85 inline void SetMainClass(const Aws::String& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
86 inline void SetMainClass(Aws::String&& value) { m_mainClassHasBeenSet = true; m_mainClass = std::move(value); }
87 inline void SetMainClass(const char* value) { m_mainClassHasBeenSet = true; m_mainClass.assign(value); }
88 inline HadoopStepConfig& WithMainClass(const Aws::String& value) { SetMainClass(value); return *this;}
89 inline HadoopStepConfig& WithMainClass(Aws::String&& value) { SetMainClass(std::move(value)); return *this;}
90 inline HadoopStepConfig& WithMainClass(const char* value) { SetMainClass(value); return *this;}
92
94
98 inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
99 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
100 inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
101 inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
102 inline HadoopStepConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
103 inline HadoopStepConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
104 inline HadoopStepConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
105 inline HadoopStepConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
106 inline HadoopStepConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
108 private:
109
110 Aws::String m_jar;
111 bool m_jarHasBeenSet = false;
112
114 bool m_propertiesHasBeenSet = false;
115
116 Aws::String m_mainClass;
117 bool m_mainClassHasBeenSet = false;
118
120 bool m_argsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace EMR
125} // namespace Aws
HadoopStepConfig & WithJar(Aws::String &&value)
void SetJar(Aws::String &&value)
HadoopStepConfig & WithJar(const Aws::String &value)
AWS_EMR_API HadoopStepConfig(Aws::Utils::Json::JsonView jsonValue)
void SetMainClass(const Aws::String &value)
HadoopStepConfig & AddProperties(Aws::String &&key, Aws::String &&value)
void SetMainClass(Aws::String &&value)
const Aws::String & GetJar() const
void SetMainClass(const char *value)
HadoopStepConfig & AddProperties(Aws::String &&key, const Aws::String &value)
HadoopStepConfig & AddProperties(const Aws::String &key, Aws::String &&value)
AWS_EMR_API HadoopStepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HadoopStepConfig & WithArgs(Aws::Vector< Aws::String > &&value)
const Aws::String & GetMainClass() const
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
HadoopStepConfig & AddArgs(Aws::String &&value)
HadoopStepConfig & WithMainClass(const Aws::String &value)
HadoopStepConfig & AddProperties(const Aws::String &key, const Aws::String &value)
HadoopStepConfig & AddProperties(const char *key, const char *value)
HadoopStepConfig & AddProperties(Aws::String &&key, const char *value)
HadoopStepConfig & AddArgs(const Aws::String &value)
HadoopStepConfig & AddArgs(const char *value)
HadoopStepConfig & WithMainClass(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
HadoopStepConfig & WithArgs(const Aws::Vector< Aws::String > &value)
HadoopStepConfig & WithJar(const char *value)
void SetArgs(Aws::Vector< Aws::String > &&value)
HadoopStepConfig & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Aws::String > & GetArgs() const
HadoopStepConfig & WithMainClass(const char *value)
void SetJar(const Aws::String &value)
HadoopStepConfig & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
HadoopStepConfig & AddProperties(const char *key, Aws::String &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
void SetArgs(const Aws::Vector< Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue