AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HadoopStepConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR {
22namespace Model {
23
32 public:
33 AWS_EMR_API HadoopStepConfig() = default;
37
39
42 inline const Aws::String& GetJar() const { return m_jar; }
43 inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
44 template <typename JarT = Aws::String>
45 void SetJar(JarT&& value) {
46 m_jarHasBeenSet = true;
47 m_jar = std::forward<JarT>(value);
48 }
49 template <typename JarT = Aws::String>
50 HadoopStepConfig& WithJar(JarT&& value) {
51 SetJar(std::forward<JarT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
62 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
63 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
64 void SetProperties(PropertiesT&& value) {
65 m_propertiesHasBeenSet = true;
66 m_properties = std::forward<PropertiesT>(value);
67 }
68 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
69 HadoopStepConfig& WithProperties(PropertiesT&& value) {
70 SetProperties(std::forward<PropertiesT>(value));
71 return *this;
72 }
73 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
74 HadoopStepConfig& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
75 m_propertiesHasBeenSet = true;
76 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetMainClass() const { return m_mainClass; }
87 inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; }
88 template <typename MainClassT = Aws::String>
89 void SetMainClass(MainClassT&& value) {
90 m_mainClassHasBeenSet = true;
91 m_mainClass = std::forward<MainClassT>(value);
92 }
93 template <typename MainClassT = Aws::String>
94 HadoopStepConfig& WithMainClass(MainClassT&& value) {
95 SetMainClass(std::forward<MainClassT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
106 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
107 template <typename ArgsT = Aws::Vector<Aws::String>>
108 void SetArgs(ArgsT&& value) {
109 m_argsHasBeenSet = true;
110 m_args = std::forward<ArgsT>(value);
111 }
112 template <typename ArgsT = Aws::Vector<Aws::String>>
113 HadoopStepConfig& WithArgs(ArgsT&& value) {
114 SetArgs(std::forward<ArgsT>(value));
115 return *this;
116 }
117 template <typename ArgsT = Aws::String>
118 HadoopStepConfig& AddArgs(ArgsT&& value) {
119 m_argsHasBeenSet = true;
120 m_args.emplace_back(std::forward<ArgsT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_jar;
126
128
129 Aws::String m_mainClass;
130
132 bool m_jarHasBeenSet = false;
133 bool m_propertiesHasBeenSet = false;
134 bool m_mainClassHasBeenSet = false;
135 bool m_argsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace EMR
140} // namespace Aws
AWS_EMR_API HadoopStepConfig()=default
HadoopStepConfig & WithJar(JarT &&value)
void SetProperties(PropertiesT &&value)
void SetMainClass(MainClassT &&value)
AWS_EMR_API HadoopStepConfig(Aws::Utils::Json::JsonView jsonValue)
HadoopStepConfig & WithProperties(PropertiesT &&value)
const Aws::String & GetJar() const
AWS_EMR_API HadoopStepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HadoopStepConfig & WithArgs(ArgsT &&value)
const Aws::String & GetMainClass() const
HadoopStepConfig & AddArgs(ArgsT &&value)
HadoopStepConfig & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
const Aws::Vector< Aws::String > & GetArgs() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
HadoopStepConfig & WithMainClass(MainClassT &&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