AWS SDK for C++  0.14.3
AWS SDK for C++
Recipes.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace OpsWorks
30 {
31 namespace Model
32 {
33 
48  {
49  public:
50  Recipes();
51  Recipes(const Aws::Utils::Json::JsonValue& jsonValue);
52  Recipes& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
53  Aws::Utils::Json::JsonValue Jsonize() const;
54 
59  inline const Aws::Vector<Aws::String>& GetSetup() const{ return m_setup; }
60 
65  inline void SetSetup(const Aws::Vector<Aws::String>& value) { m_setupHasBeenSet = true; m_setup = value; }
66 
71  inline void SetSetup(Aws::Vector<Aws::String>&& value) { m_setupHasBeenSet = true; m_setup = value; }
72 
77  inline Recipes& WithSetup(const Aws::Vector<Aws::String>& value) { SetSetup(value); return *this;}
78 
83  inline Recipes& WithSetup(Aws::Vector<Aws::String>&& value) { SetSetup(value); return *this;}
84 
89  inline Recipes& AddSetup(const Aws::String& value) { m_setupHasBeenSet = true; m_setup.push_back(value); return *this; }
90 
95  inline Recipes& AddSetup(Aws::String&& value) { m_setupHasBeenSet = true; m_setup.push_back(value); return *this; }
96 
101  inline Recipes& AddSetup(const char* value) { m_setupHasBeenSet = true; m_setup.push_back(value); return *this; }
102 
107  inline const Aws::Vector<Aws::String>& GetConfigure() const{ return m_configure; }
108 
113  inline void SetConfigure(const Aws::Vector<Aws::String>& value) { m_configureHasBeenSet = true; m_configure = value; }
114 
119  inline void SetConfigure(Aws::Vector<Aws::String>&& value) { m_configureHasBeenSet = true; m_configure = value; }
120 
125  inline Recipes& WithConfigure(const Aws::Vector<Aws::String>& value) { SetConfigure(value); return *this;}
126 
131  inline Recipes& WithConfigure(Aws::Vector<Aws::String>&& value) { SetConfigure(value); return *this;}
132 
137  inline Recipes& AddConfigure(const Aws::String& value) { m_configureHasBeenSet = true; m_configure.push_back(value); return *this; }
138 
143  inline Recipes& AddConfigure(Aws::String&& value) { m_configureHasBeenSet = true; m_configure.push_back(value); return *this; }
144 
149  inline Recipes& AddConfigure(const char* value) { m_configureHasBeenSet = true; m_configure.push_back(value); return *this; }
150 
155  inline const Aws::Vector<Aws::String>& GetDeploy() const{ return m_deploy; }
156 
161  inline void SetDeploy(const Aws::Vector<Aws::String>& value) { m_deployHasBeenSet = true; m_deploy = value; }
162 
167  inline void SetDeploy(Aws::Vector<Aws::String>&& value) { m_deployHasBeenSet = true; m_deploy = value; }
168 
173  inline Recipes& WithDeploy(const Aws::Vector<Aws::String>& value) { SetDeploy(value); return *this;}
174 
179  inline Recipes& WithDeploy(Aws::Vector<Aws::String>&& value) { SetDeploy(value); return *this;}
180 
185  inline Recipes& AddDeploy(const Aws::String& value) { m_deployHasBeenSet = true; m_deploy.push_back(value); return *this; }
186 
191  inline Recipes& AddDeploy(Aws::String&& value) { m_deployHasBeenSet = true; m_deploy.push_back(value); return *this; }
192 
197  inline Recipes& AddDeploy(const char* value) { m_deployHasBeenSet = true; m_deploy.push_back(value); return *this; }
198 
203  inline const Aws::Vector<Aws::String>& GetUndeploy() const{ return m_undeploy; }
204 
209  inline void SetUndeploy(const Aws::Vector<Aws::String>& value) { m_undeployHasBeenSet = true; m_undeploy = value; }
210 
215  inline void SetUndeploy(Aws::Vector<Aws::String>&& value) { m_undeployHasBeenSet = true; m_undeploy = value; }
216 
221  inline Recipes& WithUndeploy(const Aws::Vector<Aws::String>& value) { SetUndeploy(value); return *this;}
222 
227  inline Recipes& WithUndeploy(Aws::Vector<Aws::String>&& value) { SetUndeploy(value); return *this;}
228 
233  inline Recipes& AddUndeploy(const Aws::String& value) { m_undeployHasBeenSet = true; m_undeploy.push_back(value); return *this; }
234 
239  inline Recipes& AddUndeploy(Aws::String&& value) { m_undeployHasBeenSet = true; m_undeploy.push_back(value); return *this; }
240 
245  inline Recipes& AddUndeploy(const char* value) { m_undeployHasBeenSet = true; m_undeploy.push_back(value); return *this; }
246 
251  inline const Aws::Vector<Aws::String>& GetShutdown() const{ return m_shutdown; }
252 
257  inline void SetShutdown(const Aws::Vector<Aws::String>& value) { m_shutdownHasBeenSet = true; m_shutdown = value; }
258 
263  inline void SetShutdown(Aws::Vector<Aws::String>&& value) { m_shutdownHasBeenSet = true; m_shutdown = value; }
264 
269  inline Recipes& WithShutdown(const Aws::Vector<Aws::String>& value) { SetShutdown(value); return *this;}
270 
275  inline Recipes& WithShutdown(Aws::Vector<Aws::String>&& value) { SetShutdown(value); return *this;}
276 
281  inline Recipes& AddShutdown(const Aws::String& value) { m_shutdownHasBeenSet = true; m_shutdown.push_back(value); return *this; }
282 
287  inline Recipes& AddShutdown(Aws::String&& value) { m_shutdownHasBeenSet = true; m_shutdown.push_back(value); return *this; }
288 
293  inline Recipes& AddShutdown(const char* value) { m_shutdownHasBeenSet = true; m_shutdown.push_back(value); return *this; }
294 
295  private:
296  Aws::Vector<Aws::String> m_setup;
297  bool m_setupHasBeenSet;
298  Aws::Vector<Aws::String> m_configure;
299  bool m_configureHasBeenSet;
300  Aws::Vector<Aws::String> m_deploy;
301  bool m_deployHasBeenSet;
302  Aws::Vector<Aws::String> m_undeploy;
303  bool m_undeployHasBeenSet;
304  Aws::Vector<Aws::String> m_shutdown;
305  bool m_shutdownHasBeenSet;
306  };
307 
308 } // namespace Model
309 } // namespace OpsWorks
310 } // namespace Aws
Recipes & WithShutdown(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:275
Recipes & WithConfigure(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:125
void SetConfigure(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:113
const Aws::Vector< Aws::String > & GetConfigure() const
Definition: Recipes.h:107
const Aws::Vector< Aws::String > & GetShutdown() const
Definition: Recipes.h:251
Recipes & WithSetup(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:83
Recipes & AddConfigure(const Aws::String &value)
Definition: Recipes.h:137
Recipes & WithUndeploy(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:227
const Aws::Vector< Aws::String > & GetSetup() const
Definition: Recipes.h:59
void SetSetup(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:71
Recipes & WithDeploy(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:179
Recipes & AddConfigure(Aws::String &&value)
Definition: Recipes.h:143
const Aws::Vector< Aws::String > & GetUndeploy() const
Definition: Recipes.h:203
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Recipes & AddUndeploy(Aws::String &&value)
Definition: Recipes.h:239
Recipes & AddConfigure(const char *value)
Definition: Recipes.h:149
Recipes & AddUndeploy(const Aws::String &value)
Definition: Recipes.h:233
Recipes & AddSetup(const char *value)
Definition: Recipes.h:101
Recipes & WithShutdown(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:269
void SetSetup(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:65
Recipes & AddSetup(const Aws::String &value)
Definition: Recipes.h:89
void SetShutdown(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:263
void SetUndeploy(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:215
Recipes & WithSetup(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:77
Recipes & WithUndeploy(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:221
Recipes & AddShutdown(Aws::String &&value)
Definition: Recipes.h:287
void SetConfigure(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:119
Recipes & AddShutdown(const Aws::String &value)
Definition: Recipes.h:281
Recipes & AddDeploy(const char *value)
Definition: Recipes.h:197
void SetUndeploy(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:209
void SetDeploy(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:161
Recipes & AddUndeploy(const char *value)
Definition: Recipes.h:245
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
Recipes & WithDeploy(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:173
Recipes & WithConfigure(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:131
Recipes & AddDeploy(const Aws::String &value)
Definition: Recipes.h:185
Recipes & AddSetup(Aws::String &&value)
Definition: Recipes.h:95
const Aws::Vector< Aws::String > & GetDeploy() const
Definition: Recipes.h:155
Recipes & AddShutdown(const char *value)
Definition: Recipes.h:293
void SetShutdown(const Aws::Vector< Aws::String > &value)
Definition: Recipes.h:257
Recipes & AddDeploy(Aws::String &&value)
Definition: Recipes.h:191
void SetDeploy(Aws::Vector< Aws::String > &&value)
Definition: Recipes.h:167
JSON (JavaScript Object Notation).