AWS SDK for C++  0.12.9
AWS SDK for C++
AgentVersion.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 
38  {
39  public:
40  AgentVersion();
41  AgentVersion(const Aws::Utils::Json::JsonValue& jsonValue);
42  AgentVersion& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetVersion() const{ return m_version; }
49 
53  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
54 
58  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = value; }
59 
63  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
64 
68  inline AgentVersion& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
69 
73  inline AgentVersion& WithVersion(Aws::String&& value) { SetVersion(value); return *this;}
74 
78  inline AgentVersion& WithVersion(const char* value) { SetVersion(value); return *this;}
79 
83  inline const StackConfigurationManager& GetConfigurationManager() const{ return m_configurationManager; }
84 
88  inline void SetConfigurationManager(const StackConfigurationManager& value) { m_configurationManagerHasBeenSet = true; m_configurationManager = value; }
89 
93  inline void SetConfigurationManager(StackConfigurationManager&& value) { m_configurationManagerHasBeenSet = true; m_configurationManager = value; }
94 
98  inline AgentVersion& WithConfigurationManager(const StackConfigurationManager& value) { SetConfigurationManager(value); return *this;}
99 
103  inline AgentVersion& WithConfigurationManager(StackConfigurationManager&& value) { SetConfigurationManager(value); return *this;}
104 
105  private:
106  Aws::String m_version;
107  bool m_versionHasBeenSet;
108  StackConfigurationManager m_configurationManager;
109  bool m_configurationManagerHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace OpsWorks
114 } // namespace Aws
const Aws::String & GetVersion() const
Definition: AgentVersion.h:48
AgentVersion & WithVersion(const Aws::String &value)
Definition: AgentVersion.h:68
void SetVersion(const Aws::String &value)
Definition: AgentVersion.h:53
AgentVersion & WithConfigurationManager(StackConfigurationManager &&value)
Definition: AgentVersion.h:103
AgentVersion & WithVersion(Aws::String &&value)
Definition: AgentVersion.h:73
void SetVersion(const char *value)
Definition: AgentVersion.h:63
const StackConfigurationManager & GetConfigurationManager() const
Definition: AgentVersion.h:83
AgentVersion & WithVersion(const char *value)
Definition: AgentVersion.h:78
void SetConfigurationManager(const StackConfigurationManager &value)
Definition: AgentVersion.h:88
void SetVersion(Aws::String &&value)
Definition: AgentVersion.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
AgentVersion & WithConfigurationManager(const StackConfigurationManager &value)
Definition: AgentVersion.h:98
JSON (JavaScript Object Notation).
void SetConfigurationManager(StackConfigurationManager &&value)
Definition: AgentVersion.h:93