AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
42
43
45
48 inline const Aws::String& GetJar() const { return m_jar; }
49 inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
50 template<typename JarT = Aws::String>
51 void SetJar(JarT&& value) { m_jarHasBeenSet = true; m_jar = std::forward<JarT>(value); }
52 template<typename JarT = Aws::String>
53 HadoopStepConfig& WithJar(JarT&& value) { SetJar(std::forward<JarT>(value)); return *this;}
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) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
65 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
66 HadoopStepConfig& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
67 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
68 HadoopStepConfig& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
69 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
70 }
72
74
78 inline const Aws::String& GetMainClass() const { return m_mainClass; }
79 inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; }
80 template<typename MainClassT = Aws::String>
81 void SetMainClass(MainClassT&& value) { m_mainClassHasBeenSet = true; m_mainClass = std::forward<MainClassT>(value); }
82 template<typename MainClassT = Aws::String>
83 HadoopStepConfig& WithMainClass(MainClassT&& value) { SetMainClass(std::forward<MainClassT>(value)); return *this;}
85
87
91 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
92 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
93 template<typename ArgsT = Aws::Vector<Aws::String>>
94 void SetArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args = std::forward<ArgsT>(value); }
95 template<typename ArgsT = Aws::Vector<Aws::String>>
96 HadoopStepConfig& WithArgs(ArgsT&& value) { SetArgs(std::forward<ArgsT>(value)); return *this;}
97 template<typename ArgsT = Aws::String>
98 HadoopStepConfig& AddArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args.emplace_back(std::forward<ArgsT>(value)); return *this; }
100 private:
101
102 Aws::String m_jar;
103 bool m_jarHasBeenSet = false;
104
106 bool m_propertiesHasBeenSet = false;
107
108 Aws::String m_mainClass;
109 bool m_mainClassHasBeenSet = false;
110
112 bool m_argsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace EMR
117} // 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