AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Recipes.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 OpsWorks
23{
24namespace Model
25{
26
42 class Recipes
43 {
44 public:
45 AWS_OPSWORKS_API Recipes() = default;
46 AWS_OPSWORKS_API Recipes(Aws::Utils::Json::JsonView jsonValue);
47 AWS_OPSWORKS_API Recipes& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::Vector<Aws::String>& GetSetup() const { return m_setup; }
57 inline bool SetupHasBeenSet() const { return m_setupHasBeenSet; }
58 template<typename SetupT = Aws::Vector<Aws::String>>
59 void SetSetup(SetupT&& value) { m_setupHasBeenSet = true; m_setup = std::forward<SetupT>(value); }
60 template<typename SetupT = Aws::Vector<Aws::String>>
61 Recipes& WithSetup(SetupT&& value) { SetSetup(std::forward<SetupT>(value)); return *this;}
62 template<typename SetupT = Aws::String>
63 Recipes& AddSetup(SetupT&& value) { m_setupHasBeenSet = true; m_setup.emplace_back(std::forward<SetupT>(value)); return *this; }
65
67
71 inline const Aws::Vector<Aws::String>& GetConfigure() const { return m_configure; }
72 inline bool ConfigureHasBeenSet() const { return m_configureHasBeenSet; }
73 template<typename ConfigureT = Aws::Vector<Aws::String>>
74 void SetConfigure(ConfigureT&& value) { m_configureHasBeenSet = true; m_configure = std::forward<ConfigureT>(value); }
75 template<typename ConfigureT = Aws::Vector<Aws::String>>
76 Recipes& WithConfigure(ConfigureT&& value) { SetConfigure(std::forward<ConfigureT>(value)); return *this;}
77 template<typename ConfigureT = Aws::String>
78 Recipes& AddConfigure(ConfigureT&& value) { m_configureHasBeenSet = true; m_configure.emplace_back(std::forward<ConfigureT>(value)); return *this; }
80
82
86 inline const Aws::Vector<Aws::String>& GetDeploy() const { return m_deploy; }
87 inline bool DeployHasBeenSet() const { return m_deployHasBeenSet; }
88 template<typename DeployT = Aws::Vector<Aws::String>>
89 void SetDeploy(DeployT&& value) { m_deployHasBeenSet = true; m_deploy = std::forward<DeployT>(value); }
90 template<typename DeployT = Aws::Vector<Aws::String>>
91 Recipes& WithDeploy(DeployT&& value) { SetDeploy(std::forward<DeployT>(value)); return *this;}
92 template<typename DeployT = Aws::String>
93 Recipes& AddDeploy(DeployT&& value) { m_deployHasBeenSet = true; m_deploy.emplace_back(std::forward<DeployT>(value)); return *this; }
95
97
101 inline const Aws::Vector<Aws::String>& GetUndeploy() const { return m_undeploy; }
102 inline bool UndeployHasBeenSet() const { return m_undeployHasBeenSet; }
103 template<typename UndeployT = Aws::Vector<Aws::String>>
104 void SetUndeploy(UndeployT&& value) { m_undeployHasBeenSet = true; m_undeploy = std::forward<UndeployT>(value); }
105 template<typename UndeployT = Aws::Vector<Aws::String>>
106 Recipes& WithUndeploy(UndeployT&& value) { SetUndeploy(std::forward<UndeployT>(value)); return *this;}
107 template<typename UndeployT = Aws::String>
108 Recipes& AddUndeploy(UndeployT&& value) { m_undeployHasBeenSet = true; m_undeploy.emplace_back(std::forward<UndeployT>(value)); return *this; }
110
112
116 inline const Aws::Vector<Aws::String>& GetShutdown() const { return m_shutdown; }
117 inline bool ShutdownHasBeenSet() const { return m_shutdownHasBeenSet; }
118 template<typename ShutdownT = Aws::Vector<Aws::String>>
119 void SetShutdown(ShutdownT&& value) { m_shutdownHasBeenSet = true; m_shutdown = std::forward<ShutdownT>(value); }
120 template<typename ShutdownT = Aws::Vector<Aws::String>>
121 Recipes& WithShutdown(ShutdownT&& value) { SetShutdown(std::forward<ShutdownT>(value)); return *this;}
122 template<typename ShutdownT = Aws::String>
123 Recipes& AddShutdown(ShutdownT&& value) { m_shutdownHasBeenSet = true; m_shutdown.emplace_back(std::forward<ShutdownT>(value)); return *this; }
125 private:
126
128 bool m_setupHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_configure;
131 bool m_configureHasBeenSet = false;
132
134 bool m_deployHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_undeploy;
137 bool m_undeployHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_shutdown;
140 bool m_shutdownHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace OpsWorks
145} // namespace Aws
Recipes & AddSetup(SetupT &&value)
Definition Recipes.h:63
Recipes & WithShutdown(ShutdownT &&value)
Definition Recipes.h:121
Recipes & AddConfigure(ConfigureT &&value)
Definition Recipes.h:78
AWS_OPSWORKS_API Recipes & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SetupHasBeenSet() const
Definition Recipes.h:57
void SetShutdown(ShutdownT &&value)
Definition Recipes.h:119
Recipes & AddShutdown(ShutdownT &&value)
Definition Recipes.h:123
Recipes & WithDeploy(DeployT &&value)
Definition Recipes.h:91
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSetup() const
Definition Recipes.h:56
AWS_OPSWORKS_API Recipes()=default
void SetDeploy(DeployT &&value)
Definition Recipes.h:89
Recipes & AddUndeploy(UndeployT &&value)
Definition Recipes.h:108
const Aws::Vector< Aws::String > & GetShutdown() const
Definition Recipes.h:116
bool ConfigureHasBeenSet() const
Definition Recipes.h:72
void SetConfigure(ConfigureT &&value)
Definition Recipes.h:74
Recipes & AddDeploy(DeployT &&value)
Definition Recipes.h:93
void SetSetup(SetupT &&value)
Definition Recipes.h:59
Recipes & WithUndeploy(UndeployT &&value)
Definition Recipes.h:106
Recipes & WithSetup(SetupT &&value)
Definition Recipes.h:61
const Aws::Vector< Aws::String > & GetConfigure() const
Definition Recipes.h:71
bool DeployHasBeenSet() const
Definition Recipes.h:87
void SetUndeploy(UndeployT &&value)
Definition Recipes.h:104
const Aws::Vector< Aws::String > & GetUndeploy() const
Definition Recipes.h:101
const Aws::Vector< Aws::String > & GetDeploy() const
Definition Recipes.h:86
bool UndeployHasBeenSet() const
Definition Recipes.h:102
bool ShutdownHasBeenSet() const
Definition Recipes.h:117
Recipes & WithConfigure(ConfigureT &&value)
Definition Recipes.h:76
AWS_OPSWORKS_API Recipes(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue