AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AgentVersion.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/StackConfigurationManager.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
33 {
34 public:
35 AWS_OPSWORKS_API AgentVersion() = default;
36 AWS_OPSWORKS_API AgentVersion(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetVersion() const { return m_version; }
46 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
47 template<typename VersionT = Aws::String>
48 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
49 template<typename VersionT = Aws::String>
50 AgentVersion& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
52
54
57 inline const StackConfigurationManager& GetConfigurationManager() const { return m_configurationManager; }
58 inline bool ConfigurationManagerHasBeenSet() const { return m_configurationManagerHasBeenSet; }
59 template<typename ConfigurationManagerT = StackConfigurationManager>
60 void SetConfigurationManager(ConfigurationManagerT&& value) { m_configurationManagerHasBeenSet = true; m_configurationManager = std::forward<ConfigurationManagerT>(value); }
61 template<typename ConfigurationManagerT = StackConfigurationManager>
62 AgentVersion& WithConfigurationManager(ConfigurationManagerT&& value) { SetConfigurationManager(std::forward<ConfigurationManagerT>(value)); return *this;}
64 private:
65
66 Aws::String m_version;
67 bool m_versionHasBeenSet = false;
68
69 StackConfigurationManager m_configurationManager;
70 bool m_configurationManagerHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace OpsWorks
75} // namespace Aws
AWS_OPSWORKS_API AgentVersion(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API AgentVersion()=default
const Aws::String & GetVersion() const
const StackConfigurationManager & GetConfigurationManager() const
void SetVersion(VersionT &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AgentVersion & WithVersion(VersionT &&value)
AWS_OPSWORKS_API AgentVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfigurationManager(ConfigurationManagerT &&value)
AgentVersion & WithConfigurationManager(ConfigurationManagerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue