AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HadoopJarStepConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10#include <aws/elasticmapreduce/model/KeyValue.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 HadoopJarStepConfig() = default;
37
39
43 inline const Aws::Vector<KeyValue>& GetProperties() const { return m_properties; }
44 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
45 template <typename PropertiesT = Aws::Vector<KeyValue>>
46 void SetProperties(PropertiesT&& value) {
47 m_propertiesHasBeenSet = true;
48 m_properties = std::forward<PropertiesT>(value);
49 }
50 template <typename PropertiesT = Aws::Vector<KeyValue>>
51 HadoopJarStepConfig& WithProperties(PropertiesT&& value) {
52 SetProperties(std::forward<PropertiesT>(value));
53 return *this;
54 }
55 template <typename PropertiesT = KeyValue>
56 HadoopJarStepConfig& AddProperties(PropertiesT&& value) {
57 m_propertiesHasBeenSet = true;
58 m_properties.emplace_back(std::forward<PropertiesT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetJar() const { return m_jar; }
68 inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
69 template <typename JarT = Aws::String>
70 void SetJar(JarT&& value) {
71 m_jarHasBeenSet = true;
72 m_jar = std::forward<JarT>(value);
73 }
74 template <typename JarT = Aws::String>
76 SetJar(std::forward<JarT>(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 HadoopJarStepConfig& 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>>
114 SetArgs(std::forward<ArgsT>(value));
115 return *this;
116 }
117 template <typename ArgsT = Aws::String>
118 HadoopJarStepConfig& AddArgs(ArgsT&& value) {
119 m_argsHasBeenSet = true;
120 m_args.emplace_back(std::forward<ArgsT>(value));
121 return *this;
122 }
124 private:
125 Aws::Vector<KeyValue> m_properties;
126
127 Aws::String m_jar;
128
129 Aws::String m_mainClass;
130
132 bool m_propertiesHasBeenSet = false;
133 bool m_jarHasBeenSet = false;
134 bool m_mainClassHasBeenSet = false;
135 bool m_argsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace EMR
140} // namespace Aws
void SetProperties(PropertiesT &&value)
AWS_EMR_API HadoopJarStepConfig(Aws::Utils::Json::JsonView jsonValue)
HadoopJarStepConfig & WithArgs(ArgsT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
HadoopJarStepConfig & WithJar(JarT &&value)
AWS_EMR_API HadoopJarStepConfig()=default
const Aws::String & GetMainClass() const
const Aws::Vector< Aws::String > & GetArgs() const
HadoopJarStepConfig & AddArgs(ArgsT &&value)
const Aws::Vector< KeyValue > & GetProperties() const
HadoopJarStepConfig & WithProperties(PropertiesT &&value)
AWS_EMR_API HadoopJarStepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HadoopJarStepConfig & AddProperties(PropertiesT &&value)
HadoopJarStepConfig & WithMainClass(MainClassT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue