AWS SDK for C++  1.9.20
AWS SDK for C++
ScriptBootstrapActionConfig.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 
46  inline const Aws::String& GetPath() const{ return m_path; }
47 
52  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
53 
58  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
59 
64  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
65 
70  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
71 
76  inline ScriptBootstrapActionConfig& WithPath(const Aws::String& value) { SetPath(value); return *this;}
77 
82  inline ScriptBootstrapActionConfig& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
83 
88  inline ScriptBootstrapActionConfig& WithPath(const char* value) { SetPath(value); return *this;}
89 
90 
94  inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
95 
99  inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
100 
104  inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
105 
109  inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
110 
114  inline ScriptBootstrapActionConfig& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
115 
119  inline ScriptBootstrapActionConfig& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
120 
124  inline ScriptBootstrapActionConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
125 
129  inline ScriptBootstrapActionConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
130 
134  inline ScriptBootstrapActionConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
135 
136  private:
137 
138  Aws::String m_path;
139  bool m_pathHasBeenSet;
140 
142  bool m_argsHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace EMR
147 } // namespace Aws
Aws::EMR::Model::ScriptBootstrapActionConfig::SetPath
void SetPath(const char *value)
Definition: ScriptBootstrapActionConfig.h:70
Aws::EMR::Model::ScriptBootstrapActionConfig::AddArgs
ScriptBootstrapActionConfig & AddArgs(const Aws::String &value)
Definition: ScriptBootstrapActionConfig.h:124
Aws::EMR::Model::ScriptBootstrapActionConfig::PathHasBeenSet
bool PathHasBeenSet() const
Definition: ScriptBootstrapActionConfig.h:52
Aws::EMR::Model::ScriptBootstrapActionConfig::WithPath
ScriptBootstrapActionConfig & WithPath(const Aws::String &value)
Definition: ScriptBootstrapActionConfig.h:76
Aws::EMR::Model::ScriptBootstrapActionConfig::AddArgs
ScriptBootstrapActionConfig & AddArgs(Aws::String &&value)
Definition: ScriptBootstrapActionConfig.h:129
EMR_EXPORTS.h
Aws::EMR::Model::ScriptBootstrapActionConfig::ScriptBootstrapActionConfig
ScriptBootstrapActionConfig()
Aws::EMR::Model::ScriptBootstrapActionConfig::SetPath
void SetPath(Aws::String &&value)
Definition: ScriptBootstrapActionConfig.h:64
Aws::EMR::Model::ScriptBootstrapActionConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::ScriptBootstrapActionConfig::SetArgs
void SetArgs(Aws::Vector< Aws::String > &&value)
Definition: ScriptBootstrapActionConfig.h:109
Aws::EMR::Model::ScriptBootstrapActionConfig::WithPath
ScriptBootstrapActionConfig & WithPath(const char *value)
Definition: ScriptBootstrapActionConfig.h:88
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EMR::Model::ScriptBootstrapActionConfig::GetArgs
const Aws::Vector< Aws::String > & GetArgs() const
Definition: ScriptBootstrapActionConfig.h:94
Aws::EMR::Model::ScriptBootstrapActionConfig::operator=
ScriptBootstrapActionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ScriptBootstrapActionConfig::WithPath
ScriptBootstrapActionConfig & WithPath(Aws::String &&value)
Definition: ScriptBootstrapActionConfig.h:82
Aws::EMR::Model::ScriptBootstrapActionConfig::WithArgs
ScriptBootstrapActionConfig & WithArgs(Aws::Vector< Aws::String > &&value)
Definition: ScriptBootstrapActionConfig.h:119
Aws::EMR::Model::ScriptBootstrapActionConfig::SetArgs
void SetArgs(const Aws::Vector< Aws::String > &value)
Definition: ScriptBootstrapActionConfig.h:104
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::ScriptBootstrapActionConfig::ScriptBootstrapActionConfig
ScriptBootstrapActionConfig(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ScriptBootstrapActionConfig::AddArgs
ScriptBootstrapActionConfig & AddArgs(const char *value)
Definition: ScriptBootstrapActionConfig.h:134
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ScriptBootstrapActionConfig::SetPath
void SetPath(const Aws::String &value)
Definition: ScriptBootstrapActionConfig.h:58
Aws::EMR::Model::ScriptBootstrapActionConfig::GetPath
const Aws::String & GetPath() const
Definition: ScriptBootstrapActionConfig.h:46
Aws::EMR::Model::ScriptBootstrapActionConfig::WithArgs
ScriptBootstrapActionConfig & WithArgs(const Aws::Vector< Aws::String > &value)
Definition: ScriptBootstrapActionConfig.h:114
Aws::EMR::Model::ScriptBootstrapActionConfig
Definition: ScriptBootstrapActionConfig.h:34
Aws::EMR::Model::ScriptBootstrapActionConfig::ArgsHasBeenSet
bool ArgsHasBeenSet() const
Definition: ScriptBootstrapActionConfig.h:99
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28