AWS SDK for C++  0.14.3
AWS SDK for C++
HadoopJarStepConfig.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  HadoopJarStepConfig& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
52  inline const Aws::Vector<KeyValue>& GetProperties() const{ return m_properties; }
53 
58  inline void SetProperties(const Aws::Vector<KeyValue>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
59 
64  inline void SetProperties(Aws::Vector<KeyValue>&& value) { m_propertiesHasBeenSet = true; m_properties = value; }
65 
70  inline HadoopJarStepConfig& WithProperties(const Aws::Vector<KeyValue>& value) { SetProperties(value); return *this;}
71 
76  inline HadoopJarStepConfig& WithProperties(Aws::Vector<KeyValue>&& value) { SetProperties(value); return *this;}
77 
82  inline HadoopJarStepConfig& AddProperties(const KeyValue& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
83 
88  inline HadoopJarStepConfig& AddProperties(KeyValue&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
89 
93  inline const Aws::String& GetJar() const{ return m_jar; }
94 
98  inline void SetJar(const Aws::String& value) { m_jarHasBeenSet = true; m_jar = value; }
99 
103  inline void SetJar(Aws::String&& value) { m_jarHasBeenSet = true; m_jar = value; }
104 
108  inline void SetJar(const char* value) { m_jarHasBeenSet = true; m_jar.assign(value); }
109 
113  inline HadoopJarStepConfig& WithJar(const Aws::String& value) { SetJar(value); return *this;}
114 
118  inline HadoopJarStepConfig& WithJar(Aws::String&& value) { SetJar(value); return *this;}
119 
123  inline HadoopJarStepConfig& WithJar(const char* value) { SetJar(value); return *this;}
124 
129  inline const Aws::String& GetMainClass() const{ return m_mainClass; }
130 
135  inline void SetMainClass(const Aws::String& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
136 
141  inline void SetMainClass(Aws::String&& value) { m_mainClassHasBeenSet = true; m_mainClass = value; }
142 
147  inline void SetMainClass(const char* value) { m_mainClassHasBeenSet = true; m_mainClass.assign(value); }
148 
153  inline HadoopJarStepConfig& WithMainClass(const Aws::String& value) { SetMainClass(value); return *this;}
154 
159  inline HadoopJarStepConfig& WithMainClass(Aws::String&& value) { SetMainClass(value); return *this;}
160 
165  inline HadoopJarStepConfig& WithMainClass(const char* value) { SetMainClass(value); return *this;}
166 
171  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
172 
177  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
178 
183  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = value; }
184 
189  inline HadoopJarStepConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
190 
195  inline HadoopJarStepConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(value); return *this;}
196 
201  inline HadoopJarStepConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
202 
207  inline HadoopJarStepConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
208 
213  inline HadoopJarStepConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
214 
215  private:
216  Aws::Vector<KeyValue> m_properties;
217  bool m_propertiesHasBeenSet;
218  Aws::String m_jar;
219  bool m_jarHasBeenSet;
220  Aws::String m_mainClass;
221  bool m_mainClassHasBeenSet;
223  bool m_argsHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace EMR
228 } // namespace Aws
void SetMainClass(Aws::String &&value)
HadoopJarStepConfig & WithMainClass(const char *value)
HadoopJarStepConfig & AddProperties(KeyValue &&value)
HadoopJarStepConfig & WithMainClass(Aws::String &&value)
void SetProperties(Aws::Vector< KeyValue > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
HadoopJarStepConfig & WithProperties(Aws::Vector< KeyValue > &&value)
HadoopJarStepConfig & WithArgs(const Aws::Vector< Aws::String > &value)
HadoopJarStepConfig & AddArgs(const char *value)
HadoopJarStepConfig & WithJar(const char *value)
void SetProperties(const Aws::Vector< KeyValue > &value)
HadoopJarStepConfig & AddArgs(const Aws::String &value)
HadoopJarStepConfig & WithMainClass(const Aws::String &value)
void SetArgs(const Aws::Vector< Aws::String > &value)
HadoopJarStepConfig & AddArgs(Aws::String &&value)
const Aws::String & GetMainClass() const
HadoopJarStepConfig & WithJar(const Aws::String &value)
HadoopJarStepConfig & WithArgs(Aws::Vector< Aws::String > &&value)
const Aws::Vector< KeyValue > & GetProperties() const
const Aws::String & GetJar() const
HadoopJarStepConfig & AddProperties(const KeyValue &value)
void SetJar(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HadoopJarStepConfig & WithJar(Aws::String &&value)
const Aws::Vector< Aws::String > & GetArgs() const
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
void SetMainClass(const Aws::String &value)
HadoopJarStepConfig & WithProperties(const Aws::Vector< KeyValue > &value)
void SetArgs(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).