AWS SDK for C++  0.12.9
AWS SDK for C++
LifecycleEventConfiguration.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  LifecycleEventConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
48  inline const ShutdownEventConfiguration& GetShutdown() const{ return m_shutdown; }
49 
54  inline void SetShutdown(const ShutdownEventConfiguration& value) { m_shutdownHasBeenSet = true; m_shutdown = value; }
55 
60  inline void SetShutdown(ShutdownEventConfiguration&& value) { m_shutdownHasBeenSet = true; m_shutdown = value; }
61 
66  inline LifecycleEventConfiguration& WithShutdown(const ShutdownEventConfiguration& value) { SetShutdown(value); return *this;}
67 
72  inline LifecycleEventConfiguration& WithShutdown(ShutdownEventConfiguration&& value) { SetShutdown(value); return *this;}
73 
74  private:
75  ShutdownEventConfiguration m_shutdown;
76  bool m_shutdownHasBeenSet;
77  };
78 
79 } // namespace Model
80 } // namespace OpsWorks
81 } // namespace Aws
void SetShutdown(ShutdownEventConfiguration &&value)
const ShutdownEventConfiguration & GetShutdown() const
LifecycleEventConfiguration & WithShutdown(const ShutdownEventConfiguration &value)
void SetShutdown(const ShutdownEventConfiguration &value)
#define AWS_OPSWORKS_API
LifecycleEventConfiguration & WithShutdown(ShutdownEventConfiguration &&value)
JSON (JavaScript Object Notation).