AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
NodeLifecycleActions.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/pcs/model/NodeLifecycleStages.h>
9#include <aws/pcs/model/ScriptCachingPolicy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PCS {
21namespace Model {
22
31 public:
32 AWS_PCS_API NodeLifecycleActions() = default;
36
38
41 inline const NodeLifecycleStages& GetStages() const { return m_stages; }
42 inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
43 template <typename StagesT = NodeLifecycleStages>
44 void SetStages(StagesT&& value) {
45 m_stagesHasBeenSet = true;
46 m_stages = std::forward<StagesT>(value);
47 }
48 template <typename StagesT = NodeLifecycleStages>
49 NodeLifecycleActions& WithStages(StagesT&& value) {
50 SetStages(std::forward<StagesT>(value));
51 return *this;
52 }
54
56
63 inline ScriptCachingPolicy GetScriptCachingPolicy() const { return m_scriptCachingPolicy; }
64 inline bool ScriptCachingPolicyHasBeenSet() const { return m_scriptCachingPolicyHasBeenSet; }
66 m_scriptCachingPolicyHasBeenSet = true;
67 m_scriptCachingPolicy = value;
68 }
71 return *this;
72 }
74 private:
75 NodeLifecycleStages m_stages;
76
78 bool m_stagesHasBeenSet = false;
79 bool m_scriptCachingPolicyHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace PCS
84} // namespace Aws
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
NodeLifecycleActions & WithStages(StagesT &&value)
AWS_PCS_API NodeLifecycleActions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API NodeLifecycleActions()=default
NodeLifecycleActions & WithScriptCachingPolicy(ScriptCachingPolicy value)
ScriptCachingPolicy GetScriptCachingPolicy() const
AWS_PCS_API NodeLifecycleActions(Aws::Utils::Json::JsonView jsonValue)
void SetScriptCachingPolicy(ScriptCachingPolicy value)
const NodeLifecycleStages & GetStages() const
Aws::Utils::Json::JsonValue JsonValue