AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OperatingSystem.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opsworks/model/OperatingSystemConfigurationManager.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpsWorks
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_OPSWORKS_API OperatingSystem() = default;
38 AWS_OPSWORKS_API OperatingSystem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 OperatingSystem& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template<typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 OperatingSystem& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 template<typename TypeT = Aws::String>
76 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
77 template<typename TypeT = Aws::String>
78 OperatingSystem& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
80
82
86 inline const Aws::Vector<OperatingSystemConfigurationManager>& GetConfigurationManagers() const { return m_configurationManagers; }
87 inline bool ConfigurationManagersHasBeenSet() const { return m_configurationManagersHasBeenSet; }
88 template<typename ConfigurationManagersT = Aws::Vector<OperatingSystemConfigurationManager>>
89 void SetConfigurationManagers(ConfigurationManagersT&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers = std::forward<ConfigurationManagersT>(value); }
90 template<typename ConfigurationManagersT = Aws::Vector<OperatingSystemConfigurationManager>>
91 OperatingSystem& WithConfigurationManagers(ConfigurationManagersT&& value) { SetConfigurationManagers(std::forward<ConfigurationManagersT>(value)); return *this;}
92 template<typename ConfigurationManagersT = OperatingSystemConfigurationManager>
93 OperatingSystem& AddConfigurationManagers(ConfigurationManagersT&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers.emplace_back(std::forward<ConfigurationManagersT>(value)); return *this; }
95
97
100 inline const Aws::String& GetReportedName() const { return m_reportedName; }
101 inline bool ReportedNameHasBeenSet() const { return m_reportedNameHasBeenSet; }
102 template<typename ReportedNameT = Aws::String>
103 void SetReportedName(ReportedNameT&& value) { m_reportedNameHasBeenSet = true; m_reportedName = std::forward<ReportedNameT>(value); }
104 template<typename ReportedNameT = Aws::String>
105 OperatingSystem& WithReportedName(ReportedNameT&& value) { SetReportedName(std::forward<ReportedNameT>(value)); return *this;}
107
109
113 inline const Aws::String& GetReportedVersion() const { return m_reportedVersion; }
114 inline bool ReportedVersionHasBeenSet() const { return m_reportedVersionHasBeenSet; }
115 template<typename ReportedVersionT = Aws::String>
116 void SetReportedVersion(ReportedVersionT&& value) { m_reportedVersionHasBeenSet = true; m_reportedVersion = std::forward<ReportedVersionT>(value); }
117 template<typename ReportedVersionT = Aws::String>
118 OperatingSystem& WithReportedVersion(ReportedVersionT&& value) { SetReportedVersion(std::forward<ReportedVersionT>(value)); return *this;}
120
122
125 inline bool GetSupported() const { return m_supported; }
126 inline bool SupportedHasBeenSet() const { return m_supportedHasBeenSet; }
127 inline void SetSupported(bool value) { m_supportedHasBeenSet = true; m_supported = value; }
128 inline OperatingSystem& WithSupported(bool value) { SetSupported(value); return *this;}
130 private:
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_id;
136 bool m_idHasBeenSet = false;
137
138 Aws::String m_type;
139 bool m_typeHasBeenSet = false;
140
142 bool m_configurationManagersHasBeenSet = false;
143
144 Aws::String m_reportedName;
145 bool m_reportedNameHasBeenSet = false;
146
147 Aws::String m_reportedVersion;
148 bool m_reportedVersionHasBeenSet = false;
149
150 bool m_supported{false};
151 bool m_supportedHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace OpsWorks
156} // namespace Aws
AWS_OPSWORKS_API OperatingSystem(Aws::Utils::Json::JsonView jsonValue)
OperatingSystem & WithName(NameT &&value)
void SetReportedName(ReportedNameT &&value)
const Aws::Vector< OperatingSystemConfigurationManager > & GetConfigurationManagers() const
OperatingSystem & WithType(TypeT &&value)
const Aws::String & GetReportedName() const
AWS_OPSWORKS_API OperatingSystem()=default
const Aws::String & GetName() const
void SetConfigurationManagers(ConfigurationManagersT &&value)
const Aws::String & GetReportedVersion() const
OperatingSystem & AddConfigurationManagers(ConfigurationManagersT &&value)
void SetReportedVersion(ReportedVersionT &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
OperatingSystem & WithReportedVersion(ReportedVersionT &&value)
AWS_OPSWORKS_API OperatingSystem & operator=(Aws::Utils::Json::JsonView jsonValue)
OperatingSystem & WithConfigurationManagers(ConfigurationManagersT &&value)
OperatingSystem & WithId(IdT &&value)
OperatingSystem & WithReportedName(ReportedNameT &&value)
const Aws::String & GetType() const
OperatingSystem & WithSupported(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue