AWS SDK for C++  0.12.9
AWS SDK for C++
ChefConfiguration.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  ChefConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline bool GetManageBerkshelf() const{ return m_manageBerkshelf; }
48 
52  inline void SetManageBerkshelf(bool value) { m_manageBerkshelfHasBeenSet = true; m_manageBerkshelf = value; }
53 
57  inline ChefConfiguration& WithManageBerkshelf(bool value) { SetManageBerkshelf(value); return *this;}
58 
62  inline const Aws::String& GetBerkshelfVersion() const{ return m_berkshelfVersion; }
63 
67  inline void SetBerkshelfVersion(const Aws::String& value) { m_berkshelfVersionHasBeenSet = true; m_berkshelfVersion = value; }
68 
72  inline void SetBerkshelfVersion(Aws::String&& value) { m_berkshelfVersionHasBeenSet = true; m_berkshelfVersion = value; }
73 
77  inline void SetBerkshelfVersion(const char* value) { m_berkshelfVersionHasBeenSet = true; m_berkshelfVersion.assign(value); }
78 
82  inline ChefConfiguration& WithBerkshelfVersion(const Aws::String& value) { SetBerkshelfVersion(value); return *this;}
83 
87  inline ChefConfiguration& WithBerkshelfVersion(Aws::String&& value) { SetBerkshelfVersion(value); return *this;}
88 
92  inline ChefConfiguration& WithBerkshelfVersion(const char* value) { SetBerkshelfVersion(value); return *this;}
93 
94  private:
95  bool m_manageBerkshelf;
96  bool m_manageBerkshelfHasBeenSet;
97  Aws::String m_berkshelfVersion;
98  bool m_berkshelfVersionHasBeenSet;
99  };
100 
101 } // namespace Model
102 } // namespace OpsWorks
103 } // namespace Aws
ChefConfiguration & WithBerkshelfVersion(const char *value)
void SetBerkshelfVersion(const char *value)
void SetBerkshelfVersion(Aws::String &&value)
void SetBerkshelfVersion(const Aws::String &value)
ChefConfiguration & WithBerkshelfVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
const Aws::String & GetBerkshelfVersion() const
ChefConfiguration & WithManageBerkshelf(bool value)
ChefConfiguration & WithBerkshelfVersion(const Aws::String &value)
JSON (JavaScript Object Notation).