AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BootstrapActionConfig.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/ScriptBootstrapActionConfig.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 {
34 public:
35 AWS_EMR_API BootstrapActionConfig() = default;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 BootstrapActionConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const ScriptBootstrapActionConfig& GetScriptBootstrapAction() const { return m_scriptBootstrapAction; }
58 inline bool ScriptBootstrapActionHasBeenSet() const { return m_scriptBootstrapActionHasBeenSet; }
59 template<typename ScriptBootstrapActionT = ScriptBootstrapActionConfig>
60 void SetScriptBootstrapAction(ScriptBootstrapActionT&& value) { m_scriptBootstrapActionHasBeenSet = true; m_scriptBootstrapAction = std::forward<ScriptBootstrapActionT>(value); }
61 template<typename ScriptBootstrapActionT = ScriptBootstrapActionConfig>
62 BootstrapActionConfig& WithScriptBootstrapAction(ScriptBootstrapActionT&& value) { SetScriptBootstrapAction(std::forward<ScriptBootstrapActionT>(value)); return *this;}
64 private:
65
66 Aws::String m_name;
67 bool m_nameHasBeenSet = false;
68
69 ScriptBootstrapActionConfig m_scriptBootstrapAction;
70 bool m_scriptBootstrapActionHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EMR
75} // namespace Aws
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API BootstrapActionConfig(Aws::Utils::Json::JsonView jsonValue)
BootstrapActionConfig & WithName(NameT &&value)
void SetScriptBootstrapAction(ScriptBootstrapActionT &&value)
AWS_EMR_API BootstrapActionConfig()=default
AWS_EMR_API BootstrapActionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const ScriptBootstrapActionConfig & GetScriptBootstrapAction() const
BootstrapActionConfig & WithScriptBootstrapAction(ScriptBootstrapActionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue