AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HadoopJarStepConfig.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticmapreduce/model/KeyValue.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 HadoopJarStepConfig() = default;
42
43
45
49 inline const Aws::Vector<KeyValue>& GetProperties() const { return m_properties; }
50 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
51 template<typename PropertiesT = Aws::Vector<KeyValue>>
52 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
53 template<typename PropertiesT = Aws::Vector<KeyValue>>
54 HadoopJarStepConfig& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
55 template<typename PropertiesT = KeyValue>
56 HadoopJarStepConfig& AddProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties.emplace_back(std::forward<PropertiesT>(value)); return *this; }
58
60
63 inline const Aws::String& GetJar() const { return m_jar; }
64 inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
65 template<typename JarT = Aws::String>
66 void SetJar(JarT&& value) { m_jarHasBeenSet = true; m_jar = std::forward<JarT>(value); }
67 template<typename JarT = Aws::String>
68 HadoopJarStepConfig& WithJar(JarT&& value) { SetJar(std::forward<JarT>(value)); return *this;}
70
72
76 inline const Aws::String& GetMainClass() const { return m_mainClass; }
77 inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; }
78 template<typename MainClassT = Aws::String>
79 void SetMainClass(MainClassT&& value) { m_mainClassHasBeenSet = true; m_mainClass = std::forward<MainClassT>(value); }
80 template<typename MainClassT = Aws::String>
81 HadoopJarStepConfig& WithMainClass(MainClassT&& value) { SetMainClass(std::forward<MainClassT>(value)); return *this;}
83
85
89 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
90 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
91 template<typename ArgsT = Aws::Vector<Aws::String>>
92 void SetArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args = std::forward<ArgsT>(value); }
93 template<typename ArgsT = Aws::Vector<Aws::String>>
94 HadoopJarStepConfig& WithArgs(ArgsT&& value) { SetArgs(std::forward<ArgsT>(value)); return *this;}
95 template<typename ArgsT = Aws::String>
96 HadoopJarStepConfig& AddArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args.emplace_back(std::forward<ArgsT>(value)); return *this; }
98 private:
99
100 Aws::Vector<KeyValue> m_properties;
101 bool m_propertiesHasBeenSet = false;
102
103 Aws::String m_jar;
104 bool m_jarHasBeenSet = false;
105
106 Aws::String m_mainClass;
107 bool m_mainClassHasBeenSet = false;
108
110 bool m_argsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EMR
115} // 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