AWS SDK for C++  0.12.9
AWS SDK for C++
HadoopStepConfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace EMR
31 {
32 namespace Model
33 {
34 
41  {
42  public:
45  HadoopStepConfig& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetJar() const{ return m_jar; }
52 
56  inline void SetJar(const Aws::String& value) { m_jarHasBeenSet = true; m_jar = value; }
57 
61  inline void SetJar(Aws::String&& value) { m_jarHasBeenSet = true; m_jar = value; }
62 
66  inline void SetJar(const char* value) { m_jarHasBeenSet = true; m_jar.assign(value); }
67 
71  inline HadoopStepConfig& WithJar(const Aws::String& value) { SetJar(value); return *this;}
72 
76  inline HadoopStepConfig& WithJar(Aws::String&& value) { SetJar(value); return *this;}
77 
81  inline HadoopStepConfig& WithJar(const char* value) { SetJar(value); return *this;}
82 
87  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
88 
93  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
94 
99  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = value; }
100 
105  inline HadoopStepConfig& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
106 
111  inline HadoopStepConfig& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(value); return *this;}
112 
117  inline HadoopStepConfig& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
118 
123  inline HadoopStepConfig& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
124 
129  inline HadoopStepConfig& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
130 
135  inline HadoopStepConfig& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
136 
141  inline HadoopStepConfig& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
142 
147  inline HadoopStepConfig& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
148 
153  inline HadoopStepConfig& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
154 
159  inline const Aws::String& GetMainClass() const{ return m_mainClass; }
160 
165  inline void SetMainClass(const Aws::String& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
166 
171  inline void SetMainClass(Aws::String&& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
172 
177  inline void SetMainClass(const char* value) { m_mainClassHasBeenSet = true; m_mainClass.assign(value); }
178 
183  inline HadoopStepConfig& WithMainClass(const Aws::String& value) { SetMainClass(value); return *this;}
184 
189  inline HadoopStepConfig& WithMainClass(Aws::String&& value) { SetMainClass(value); return *this;}
190 
195  inline HadoopStepConfig& WithMainClass(const char* value) { SetMainClass(value); return *this;}
196 
201  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
202 
207  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
208 
213  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = value; }
214 
219  inline HadoopStepConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
220 
225  inline HadoopStepConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(value); return *this;}
226 
231  inline HadoopStepConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
232 
237  inline HadoopStepConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
238 
243  inline HadoopStepConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
244 
245  private:
246  Aws::String m_jar;
247  bool m_jarHasBeenSet;
249  bool m_propertiesHasBeenSet;
250  Aws::String m_mainClass;
251  bool m_mainClassHasBeenSet;
253  bool m_argsHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace EMR
258 } // namespace Aws
HadoopStepConfig & AddProperties(const char *key, Aws::String &&value)
void SetArgs(Aws::Vector< Aws::String > &&value)
HadoopStepConfig & WithArgs(const Aws::Vector< Aws::String > &value)
const Aws::String & GetJar() const
HadoopStepConfig & AddProperties(const char *key, const char *value)
void SetArgs(const Aws::Vector< Aws::String > &value)
HadoopStepConfig & AddProperties(const Aws::String &key, const Aws::String &value)
HadoopStepConfig & AddProperties(Aws::String &&key, const char *value)
void SetMainClass(const Aws::String &value)
void SetMainClass(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
HadoopStepConfig & WithArgs(Aws::Vector< Aws::String > &&value)
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
HadoopStepConfig & WithJar(const Aws::String &value)
HadoopStepConfig & WithMainClass(const char *value)
HadoopStepConfig & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< Aws::String > & GetArgs() const
HadoopStepConfig & WithMainClass(Aws::String &&value)
HadoopStepConfig & AddArgs(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
void SetJar(const char *value)
const Aws::String & GetMainClass() const
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
HadoopStepConfig & WithJar(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HadoopStepConfig & AddProperties(Aws::String &&key, const Aws::String &value)
void SetJar(Aws::String &&value)
void SetJar(const Aws::String &value)
HadoopStepConfig & AddProperties(Aws::String &&key, Aws::String &&value)
HadoopStepConfig & AddArgs(const char *value)
HadoopStepConfig & AddProperties(const Aws::String &key, Aws::String &&value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
HadoopStepConfig & AddArgs(const Aws::String &value)
HadoopStepConfig & WithMainClass(const Aws::String &value)
JSON (JavaScript Object Notation).
HadoopStepConfig & WithJar(const char *value)
void SetMainClass(const char *value)
HadoopStepConfig & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)