AWS SDK for C++  0.12.9
AWS SDK for C++
ScriptBootstrapActionConfig.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace EMR
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  ScriptBootstrapActionConfig& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetPath() const{ return m_path; }
50 
55  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
56 
61  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = value; }
62 
67  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
68 
73  inline ScriptBootstrapActionConfig& WithPath(const Aws::String& value) { SetPath(value); return *this;}
74 
79  inline ScriptBootstrapActionConfig& WithPath(Aws::String&& value) { SetPath(value); return *this;}
80 
85  inline ScriptBootstrapActionConfig& WithPath(const char* value) { SetPath(value); return *this;}
86 
90  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
91 
95  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
96 
100  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = value; }
101 
105  inline ScriptBootstrapActionConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
106 
110  inline ScriptBootstrapActionConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(value); return *this;}
111 
115  inline ScriptBootstrapActionConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
116 
120  inline ScriptBootstrapActionConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
121 
125  inline ScriptBootstrapActionConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
126 
127  private:
128  Aws::String m_path;
129  bool m_pathHasBeenSet;
131  bool m_argsHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace EMR
136 } // namespace Aws
ScriptBootstrapActionConfig & AddArgs(const Aws::String &value)
const Aws::Vector< Aws::String > & GetArgs() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ScriptBootstrapActionConfig & AddArgs(const char *value)
ScriptBootstrapActionConfig & AddArgs(Aws::String &&value)
void SetArgs(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetArgs(Aws::Vector< Aws::String > &&value)
ScriptBootstrapActionConfig & WithArgs(const Aws::Vector< Aws::String > &value)
ScriptBootstrapActionConfig & WithArgs(Aws::Vector< Aws::String > &&value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
ScriptBootstrapActionConfig & WithPath(const Aws::String &value)
ScriptBootstrapActionConfig & WithPath(Aws::String &&value)
JSON (JavaScript Object Notation).
ScriptBootstrapActionConfig & WithPath(const char *value)