AWS SDK for C++  1.9.21
AWS SDK for C++
Command.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace EMR
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline Command& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline Command& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline Command& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetScriptPath() const{ return m_scriptPath; }
87 
91  inline bool ScriptPathHasBeenSet() const { return m_scriptPathHasBeenSet; }
92 
96  inline void SetScriptPath(const Aws::String& value) { m_scriptPathHasBeenSet = true; m_scriptPath = value; }
97 
101  inline void SetScriptPath(Aws::String&& value) { m_scriptPathHasBeenSet = true; m_scriptPath = std::move(value); }
102 
106  inline void SetScriptPath(const char* value) { m_scriptPathHasBeenSet = true; m_scriptPath.assign(value); }
107 
111  inline Command& WithScriptPath(const Aws::String& value) { SetScriptPath(value); return *this;}
112 
116  inline Command& WithScriptPath(Aws::String&& value) { SetScriptPath(std::move(value)); return *this;}
117 
121  inline Command& WithScriptPath(const char* value) { SetScriptPath(value); return *this;}
122 
123 
127  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
128 
132  inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
133 
137  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
138 
142  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
143 
147  inline Command& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
148 
152  inline Command& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
153 
157  inline Command& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
158 
162  inline Command& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
163 
167  inline Command& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
168 
169  private:
170 
171  Aws::String m_name;
172  bool m_nameHasBeenSet;
173 
174  Aws::String m_scriptPath;
175  bool m_scriptPathHasBeenSet;
176 
178  bool m_argsHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace EMR
183 } // namespace Aws
Aws::EMR::Model::Command::GetName
const Aws::String & GetName() const
Definition: Command.h:45
Aws::EMR::Model::Command::SetArgs
void SetArgs(const Aws::Vector< Aws::String > &value)
Definition: Command.h:137
Aws::EMR::Model::Command::SetScriptPath
void SetScriptPath(const Aws::String &value)
Definition: Command.h:96
Aws::EMR::Model::Command::SetScriptPath
void SetScriptPath(const char *value)
Definition: Command.h:106
Aws::EMR::Model::Command::WithName
Command & WithName(Aws::String &&value)
Definition: Command.h:75
EMR_EXPORTS.h
Aws::EMR::Model::Command::WithName
Command & WithName(const char *value)
Definition: Command.h:80
Aws::EMR::Model::Command::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Command.h:50
Aws::EMR::Model::Command::Command
Command()
Aws::EMR::Model::Command::AddArgs
Command & AddArgs(const char *value)
Definition: Command.h:167
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::Command::operator=
Command & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::EMR::Model::Command::SetName
void SetName(const Aws::String &value)
Definition: Command.h:55
Aws::EMR::Model::Command::ArgsHasBeenSet
bool ArgsHasBeenSet() const
Definition: Command.h:132
Aws::EMR::Model::Command::WithScriptPath
Command & WithScriptPath(const Aws::String &value)
Definition: Command.h:111
Aws::EMR::Model::Command::GetArgs
const Aws::Vector< Aws::String > & GetArgs() const
Definition: Command.h:127
Aws::EMR::Model::Command::SetName
void SetName(const char *value)
Definition: Command.h:65
Aws::EMR::Model::Command::WithScriptPath
Command & WithScriptPath(const char *value)
Definition: Command.h:121
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::Command::SetScriptPath
void SetScriptPath(Aws::String &&value)
Definition: Command.h:101
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::Command::Command
Command(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::Command::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::Command
Definition: Command.h:34
Aws::EMR::Model::Command::ScriptPathHasBeenSet
bool ScriptPathHasBeenSet() const
Definition: Command.h:91
Aws::EMR::Model::Command::AddArgs
Command & AddArgs(const Aws::String &value)
Definition: Command.h:157
Aws::EMR::Model::Command::WithScriptPath
Command & WithScriptPath(Aws::String &&value)
Definition: Command.h:116
Aws::EMR::Model::Command::WithArgs
Command & WithArgs(const Aws::Vector< Aws::String > &value)
Definition: Command.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::Command::SetArgs
void SetArgs(Aws::Vector< Aws::String > &&value)
Definition: Command.h:142
Aws::EMR::Model::Command::WithName
Command & WithName(const Aws::String &value)
Definition: Command.h:70
Aws::EMR::Model::Command::AddArgs
Command & AddArgs(Aws::String &&value)
Definition: Command.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::Command::SetName
void SetName(Aws::String &&value)
Definition: Command.h:60
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::Command::GetScriptPath
const Aws::String & GetScriptPath() const
Definition: Command.h:86
Aws::EMR::Model::Command::WithArgs
Command & WithArgs(Aws::Vector< Aws::String > &&value)
Definition: Command.h:152