AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Command.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EMR {
21namespace Model {
22
29class Command {
30 public:
31 AWS_EMR_API Command() = default;
32 AWS_EMR_API Command(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 Command& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
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) {
62 m_scriptPathHasBeenSet = true;
63 m_scriptPath = std::forward<ScriptPathT>(value);
64 }
65 template <typename ScriptPathT = Aws::String>
66 Command& WithScriptPath(ScriptPathT&& value) {
67 SetScriptPath(std::forward<ScriptPathT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
77 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
78 template <typename ArgsT = Aws::Vector<Aws::String>>
79 void SetArgs(ArgsT&& value) {
80 m_argsHasBeenSet = true;
81 m_args = std::forward<ArgsT>(value);
82 }
83 template <typename ArgsT = Aws::Vector<Aws::String>>
84 Command& WithArgs(ArgsT&& value) {
85 SetArgs(std::forward<ArgsT>(value));
86 return *this;
87 }
88 template <typename ArgsT = Aws::String>
89 Command& AddArgs(ArgsT&& value) {
90 m_argsHasBeenSet = true;
91 m_args.emplace_back(std::forward<ArgsT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 Aws::String m_scriptPath;
99
101 bool m_nameHasBeenSet = false;
102 bool m_scriptPathHasBeenSet = false;
103 bool m_argsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace EMR
108} // namespace Aws
bool ArgsHasBeenSet() const
Definition Command.h:77
Command & WithScriptPath(ScriptPathT &&value)
Definition Command.h:66
bool NameHasBeenSet() const
Definition Command.h:41
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetArgs() const
Definition Command.h:76
void SetScriptPath(ScriptPathT &&value)
Definition Command.h:61
Command & WithName(NameT &&value)
Definition Command.h:48
AWS_EMR_API Command(Aws::Utils::Json::JsonView jsonValue)
bool ScriptPathHasBeenSet() const
Definition Command.h:59
void SetArgs(ArgsT &&value)
Definition Command.h:79
void SetName(NameT &&value)
Definition Command.h:43
Command & WithArgs(ArgsT &&value)
Definition Command.h:84
Command & AddArgs(ArgsT &&value)
Definition Command.h:89
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:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue