AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Command.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
33 class Command
34 {
35 public:
36 AWS_EMR_API Command();
37 AWS_EMR_API Command(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Command& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Command& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Command& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetScriptPath() const{ return m_scriptPath; }
61 inline bool ScriptPathHasBeenSet() const { return m_scriptPathHasBeenSet; }
62 inline void SetScriptPath(const Aws::String& value) { m_scriptPathHasBeenSet = true; m_scriptPath = value; }
63 inline void SetScriptPath(Aws::String&& value) { m_scriptPathHasBeenSet = true; m_scriptPath = std::move(value); }
64 inline void SetScriptPath(const char* value) { m_scriptPathHasBeenSet = true; m_scriptPath.assign(value); }
65 inline Command& WithScriptPath(const Aws::String& value) { SetScriptPath(value); return *this;}
66 inline Command& WithScriptPath(Aws::String&& value) { SetScriptPath(std::move(value)); return *this;}
67 inline Command& WithScriptPath(const char* value) { SetScriptPath(value); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
75 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
76 inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
77 inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
78 inline Command& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
79 inline Command& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
80 inline Command& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
81 inline Command& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
82 inline Command& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::String m_scriptPath;
90 bool m_scriptPathHasBeenSet = false;
91
93 bool m_argsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EMR
98} // namespace Aws
bool ArgsHasBeenSet() const
Definition Command.h:75
Command & WithName(Aws::String &&value)
Definition Command.h:52
void SetName(const Aws::String &value)
Definition Command.h:48
Command & AddArgs(Aws::String &&value)
Definition Command.h:81
void SetArgs(Aws::Vector< Aws::String > &&value)
Definition Command.h:77
Command & AddArgs(const char *value)
Definition Command.h:82
Command & WithArgs(const Aws::Vector< Aws::String > &value)
Definition Command.h:78
Command & WithName(const char *value)
Definition Command.h:53
bool NameHasBeenSet() const
Definition Command.h:47
void SetScriptPath(const char *value)
Definition Command.h:64
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetArgs() const
Definition Command.h:74
Command & AddArgs(const Aws::String &value)
Definition Command.h:80
void SetName(const char *value)
Definition Command.h:50
Command & WithName(const Aws::String &value)
Definition Command.h:51
Command & WithArgs(Aws::Vector< Aws::String > &&value)
Definition Command.h:79
void SetName(Aws::String &&value)
Definition Command.h:49
AWS_EMR_API Command(Aws::Utils::Json::JsonView jsonValue)
Command & WithScriptPath(const char *value)
Definition Command.h:67
bool ScriptPathHasBeenSet() const
Definition Command.h:61
void SetScriptPath(const Aws::String &value)
Definition Command.h:62
void SetArgs(const Aws::Vector< Aws::String > &value)
Definition Command.h:76
Command & WithScriptPath(Aws::String &&value)
Definition Command.h:66
const Aws::String & GetScriptPath() const
Definition Command.h:60
AWS_EMR_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
Command & WithScriptPath(const Aws::String &value)
Definition Command.h:65
const Aws::String & GetName() const
Definition Command.h:46
void SetScriptPath(Aws::String &&value)
Definition Command.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue