AWS SDK for C++  0.12.9
AWS SDK for C++
Command.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:
40  Command();
41  Command(const Aws::Utils::Json::JsonValue& jsonValue);
42  Command& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline Command& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline Command& WithName(Aws::String&& value) { SetName(value); return *this;}
74 
78  inline Command& WithName(const char* value) { SetName(value); return *this;}
79 
83  inline const Aws::String& GetScriptPath() const{ return m_scriptPath; }
84 
88  inline void SetScriptPath(const Aws::String& value) { m_scriptPathHasBeenSet = true; m_scriptPath = value; }
89 
93  inline void SetScriptPath(Aws::String&& value) { m_scriptPathHasBeenSet = true; m_scriptPath = value; }
94 
98  inline void SetScriptPath(const char* value) { m_scriptPathHasBeenSet = true; m_scriptPath.assign(value); }
99 
103  inline Command& WithScriptPath(const Aws::String& value) { SetScriptPath(value); return *this;}
104 
108  inline Command& WithScriptPath(Aws::String&& value) { SetScriptPath(value); return *this;}
109 
113  inline Command& WithScriptPath(const char* value) { SetScriptPath(value); return *this;}
114 
118  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
119 
123  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
124 
128  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = value; }
129 
133  inline Command& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
134 
138  inline Command& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(value); return *this;}
139 
143  inline Command& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
144 
148  inline Command& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
149 
153  inline Command& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
154 
155  private:
156  Aws::String m_name;
157  bool m_nameHasBeenSet;
158  Aws::String m_scriptPath;
159  bool m_scriptPathHasBeenSet;
161  bool m_argsHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace EMR
166 } // namespace Aws
void SetName(const char *value)
Definition: Command.h:63
Command & AddArgs(const char *value)
Definition: Command.h:153
Command & WithArgs(Aws::Vector< Aws::String > &&value)
Definition: Command.h:138
Command & WithScriptPath(const Aws::String &value)
Definition: Command.h:103
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Command & WithName(Aws::String &&value)
Definition: Command.h:73
Command & AddArgs(const Aws::String &value)
Definition: Command.h:143
const Aws::String & GetScriptPath() const
Definition: Command.h:83
Command & WithScriptPath(Aws::String &&value)
Definition: Command.h:108
Command & WithArgs(const Aws::Vector< Aws::String > &value)
Definition: Command.h:133
void SetScriptPath(const char *value)
Definition: Command.h:98
void SetScriptPath(const Aws::String &value)
Definition: Command.h:88
void SetArgs(const Aws::Vector< Aws::String > &value)
Definition: Command.h:123
void SetArgs(Aws::Vector< Aws::String > &&value)
Definition: Command.h:128
void SetScriptPath(Aws::String &&value)
Definition: Command.h:93
Command & WithName(const char *value)
Definition: Command.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Command & AddArgs(Aws::String &&value)
Definition: Command.h:148
const Aws::Vector< Aws::String > & GetArgs() const
Definition: Command.h:118
Command & WithScriptPath(const char *value)
Definition: Command.h:113
const Aws::String & GetName() const
Definition: Command.h:48
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
void SetName(const Aws::String &value)
Definition: Command.h:53
Command & WithName(const Aws::String &value)
Definition: Command.h:68
void SetName(Aws::String &&value)
Definition: Command.h:58
JSON (JavaScript Object Notation).