AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 Command& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetScriptPath() const { return m_scriptPath; }
59 inline bool ScriptPathHasBeenSet() const { return m_scriptPathHasBeenSet; }
60 template<typename ScriptPathT = Aws::String>
61 void SetScriptPath(ScriptPathT&& value) { m_scriptPathHasBeenSet = true; m_scriptPath = std::forward<ScriptPathT>(value); }
62 template<typename ScriptPathT = Aws::String>
63 Command& WithScriptPath(ScriptPathT&& value) { SetScriptPath(std::forward<ScriptPathT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
71 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
72 template<typename ArgsT = Aws::Vector<Aws::String>>
73 void SetArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args = std::forward<ArgsT>(value); }
74 template<typename ArgsT = Aws::Vector<Aws::String>>
75 Command& WithArgs(ArgsT&& value) { SetArgs(std::forward<ArgsT>(value)); return *this;}
76 template<typename ArgsT = Aws::String>
77 Command& AddArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args.emplace_back(std::forward<ArgsT>(value)); return *this; }
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_scriptPath;
85 bool m_scriptPathHasBeenSet = false;
86
88 bool m_argsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EMR
93} // namespace Aws
bool ArgsHasBeenSet() const
Definition Command.h:71
Command & WithScriptPath(ScriptPathT &&value)
Definition Command.h:63
bool NameHasBeenSet() const
Definition Command.h:47
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetArgs() const
Definition Command.h:70
void SetScriptPath(ScriptPathT &&value)
Definition Command.h:61
Command & WithName(NameT &&value)
Definition Command.h:51
AWS_EMR_API Command(Aws::Utils::Json::JsonView jsonValue)
bool ScriptPathHasBeenSet() const
Definition Command.h:59
void SetArgs(ArgsT &&value)
Definition Command.h:73
void SetName(NameT &&value)
Definition Command.h:49
Command & WithArgs(ArgsT &&value)
Definition Command.h:75
Command & AddArgs(ArgsT &&value)
Definition Command.h:77
const Aws::String & GetScriptPath() const
Definition Command.h:58
AWS_EMR_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Command()=default
const Aws::String & GetName() const
Definition Command.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue