AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
49 inline const Aws::Vector<KeyValue>& GetProperties() const{ return m_properties; }
50 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
51 inline void SetProperties(const Aws::Vector<KeyValue>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
52 inline void SetProperties(Aws::Vector<KeyValue>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
53 inline HadoopJarStepConfig& WithProperties(const Aws::Vector<KeyValue>& value) { SetProperties(value); return *this;}
54 inline HadoopJarStepConfig& WithProperties(Aws::Vector<KeyValue>&& value) { SetProperties(std::move(value)); return *this;}
55 inline HadoopJarStepConfig& AddProperties(const KeyValue& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
56 inline HadoopJarStepConfig& AddProperties(KeyValue&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::String& GetJar() const{ return m_jar; }
64 inline bool JarHasBeenSet() const { return m_jarHasBeenSet; }
65 inline void SetJar(const Aws::String& value) { m_jarHasBeenSet = true; m_jar = value; }
66 inline void SetJar(Aws::String&& value) { m_jarHasBeenSet = true; m_jar = std::move(value); }
67 inline void SetJar(const char* value) { m_jarHasBeenSet = true; m_jar.assign(value); }
68 inline HadoopJarStepConfig& WithJar(const Aws::String& value) { SetJar(value); return *this;}
69 inline HadoopJarStepConfig& WithJar(Aws::String&& value) { SetJar(std::move(value)); return *this;}
70 inline HadoopJarStepConfig& WithJar(const char* value) { SetJar(value); return *this;}
72
74
78 inline const Aws::String& GetMainClass() const{ return m_mainClass; }
79 inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; }
80 inline void SetMainClass(const Aws::String& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
81 inline void SetMainClass(Aws::String&& value) { m_mainClassHasBeenSet = true; m_mainClass = std::move(value); }
82 inline void SetMainClass(const char* value) { m_mainClassHasBeenSet = true; m_mainClass.assign(value); }
83 inline HadoopJarStepConfig& WithMainClass(const Aws::String& value) { SetMainClass(value); return *this;}
84 inline HadoopJarStepConfig& WithMainClass(Aws::String&& value) { SetMainClass(std::move(value)); return *this;}
85 inline HadoopJarStepConfig& WithMainClass(const char* value) { SetMainClass(value); return *this;}
87
89
93 inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
94 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
95 inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
96 inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
97 inline HadoopJarStepConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
98 inline HadoopJarStepConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
99 inline HadoopJarStepConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
100 inline HadoopJarStepConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
101 inline HadoopJarStepConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
103 private:
104
105 Aws::Vector<KeyValue> m_properties;
106 bool m_propertiesHasBeenSet = false;
107
108 Aws::String m_jar;
109 bool m_jarHasBeenSet = false;
110
111 Aws::String m_mainClass;
112 bool m_mainClassHasBeenSet = false;
113
115 bool m_argsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace EMR
120} // namespace Aws
AWS_EMR_API HadoopJarStepConfig(Aws::Utils::Json::JsonView jsonValue)
void SetProperties(const Aws::Vector< KeyValue > &value)
HadoopJarStepConfig & WithProperties(Aws::Vector< KeyValue > &&value)
void SetJar(const Aws::String &value)
HadoopJarStepConfig & WithMainClass(const char *value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
HadoopJarStepConfig & WithArgs(const Aws::Vector< Aws::String > &value)
HadoopJarStepConfig & AddArgs(const char *value)
HadoopJarStepConfig & WithArgs(Aws::Vector< Aws::String > &&value)
const Aws::String & GetMainClass() const
HadoopJarStepConfig & AddArgs(const Aws::String &value)
HadoopJarStepConfig & WithJar(const Aws::String &value)
const Aws::Vector< Aws::String > & GetArgs() const
HadoopJarStepConfig & WithMainClass(const Aws::String &value)
void SetMainClass(const Aws::String &value)
HadoopJarStepConfig & AddProperties(const KeyValue &value)
HadoopJarStepConfig & WithJar(Aws::String &&value)
void SetArgs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< KeyValue > & GetProperties() const
HadoopJarStepConfig & WithJar(const char *value)
HadoopJarStepConfig & WithProperties(const Aws::Vector< KeyValue > &value)
HadoopJarStepConfig & AddArgs(Aws::String &&value)
HadoopJarStepConfig & WithMainClass(Aws::String &&value)
AWS_EMR_API HadoopJarStepConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProperties(Aws::Vector< KeyValue > &&value)
HadoopJarStepConfig & AddProperties(KeyValue &&value)
void SetArgs(Aws::Vector< Aws::String > &&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