7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pcs/PCS_EXPORTS.h>
10#include <aws/pcs/model/ExecutionPolicy.h>
11#include <aws/pcs/model/OnError.h>
12#include <aws/pcs/model/ScriptSource.h>
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
65 template <
typename ScriptSourceT = ScriptSource>
67 m_scriptSourceHasBeenSet =
true;
68 m_scriptSource = std::forward<ScriptSourceT>(value);
70 template <
typename ScriptSourceT = ScriptSource>
84 template <
typename ArgumentsT = Aws::Vector<Aws::String>>
86 m_argumentsHasBeenSet =
true;
87 m_arguments = std::forward<ArgumentsT>(value);
89 template <
typename ArgumentsT = Aws::Vector<Aws::String>>
94 template <
typename ArgumentsT = Aws::String>
96 m_argumentsHasBeenSet =
true;
97 m_arguments.emplace_back(std::forward<ArgumentsT>(value));
114 m_onErrorHasBeenSet =
true;
134 m_executionPolicyHasBeenSet =
true;
135 m_executionPolicy = value;
145 ScriptSource m_scriptSource;
152 bool m_nameHasBeenSet =
false;
153 bool m_scriptSourceHasBeenSet =
false;
154 bool m_argumentsHasBeenSet =
false;
155 bool m_onErrorHasBeenSet =
false;
156 bool m_executionPolicyHasBeenSet =
false;
bool ScriptSourceHasBeenSet() const
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
NodeLifecycleScript & WithName(NameT &&value)
void SetArguments(ArgumentsT &&value)
NodeLifecycleScript & AddArguments(ArgumentsT &&value)
AWS_PCS_API NodeLifecycleScript & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API NodeLifecycleScript(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetExecutionPolicy(ExecutionPolicy value)
void SetScriptSource(ScriptSourceT &&value)
void SetOnError(OnError value)
AWS_PCS_API NodeLifecycleScript()=default
ExecutionPolicy GetExecutionPolicy() const
bool ExecutionPolicyHasBeenSet() const
const ScriptSource & GetScriptSource() const
NodeLifecycleScript & WithOnError(OnError value)
OnError GetOnError() const
bool ArgumentsHasBeenSet() const
bool NameHasBeenSet() const
NodeLifecycleScript & WithScriptSource(ScriptSourceT &&value)
bool OnErrorHasBeenSet() const
const Aws::Vector< Aws::String > & GetArguments() const
NodeLifecycleScript & WithExecutionPolicy(ExecutionPolicy value)
NodeLifecycleScript & WithArguments(ArgumentsT &&value)
void SetName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue