AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline OperatingSystem& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline OperatingSystem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline OperatingSystem& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const Aws::String& GetId() const{ return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
65 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
66 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 inline OperatingSystem& WithId(const Aws::String& value) { SetId(value); return *this;}
68 inline OperatingSystem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
69 inline OperatingSystem& WithId(const char* value) { SetId(value); return *this;}
71
73
77 inline const Aws::String& GetType() const{ return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
80 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
81 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
82 inline OperatingSystem& WithType(const Aws::String& value) { SetType(value); return *this;}
83 inline OperatingSystem& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
84 inline OperatingSystem& WithType(const char* value) { SetType(value); return *this;}
86
88
92 inline const Aws::Vector<OperatingSystemConfigurationManager>& GetConfigurationManagers() const{ return m_configurationManagers; }
93 inline bool ConfigurationManagersHasBeenSet() const { return m_configurationManagersHasBeenSet; }
94 inline void SetConfigurationManagers(const Aws::Vector<OperatingSystemConfigurationManager>& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers = value; }
95 inline void SetConfigurationManagers(Aws::Vector<OperatingSystemConfigurationManager>&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers = std::move(value); }
98 inline OperatingSystem& AddConfigurationManagers(const OperatingSystemConfigurationManager& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers.push_back(value); return *this; }
99 inline OperatingSystem& AddConfigurationManagers(OperatingSystemConfigurationManager&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::String& GetReportedName() const{ return m_reportedName; }
107 inline bool ReportedNameHasBeenSet() const { return m_reportedNameHasBeenSet; }
108 inline void SetReportedName(const Aws::String& value) { m_reportedNameHasBeenSet = true; m_reportedName = value; }
109 inline void SetReportedName(Aws::String&& value) { m_reportedNameHasBeenSet = true; m_reportedName = std::move(value); }
110 inline void SetReportedName(const char* value) { m_reportedNameHasBeenSet = true; m_reportedName.assign(value); }
111 inline OperatingSystem& WithReportedName(const Aws::String& value) { SetReportedName(value); return *this;}
112 inline OperatingSystem& WithReportedName(Aws::String&& value) { SetReportedName(std::move(value)); return *this;}
113 inline OperatingSystem& WithReportedName(const char* value) { SetReportedName(value); return *this;}
115
117
121 inline const Aws::String& GetReportedVersion() const{ return m_reportedVersion; }
122 inline bool ReportedVersionHasBeenSet() const { return m_reportedVersionHasBeenSet; }
123 inline void SetReportedVersion(const Aws::String& value) { m_reportedVersionHasBeenSet = true; m_reportedVersion = value; }
124 inline void SetReportedVersion(Aws::String&& value) { m_reportedVersionHasBeenSet = true; m_reportedVersion = std::move(value); }
125 inline void SetReportedVersion(const char* value) { m_reportedVersionHasBeenSet = true; m_reportedVersion.assign(value); }
126 inline OperatingSystem& WithReportedVersion(const Aws::String& value) { SetReportedVersion(value); return *this;}
127 inline OperatingSystem& WithReportedVersion(Aws::String&& value) { SetReportedVersion(std::move(value)); return *this;}
128 inline OperatingSystem& WithReportedVersion(const char* value) { SetReportedVersion(value); return *this;}
130
132
135 inline bool GetSupported() const{ return m_supported; }
136 inline bool SupportedHasBeenSet() const { return m_supportedHasBeenSet; }
137 inline void SetSupported(bool value) { m_supportedHasBeenSet = true; m_supported = value; }
138 inline OperatingSystem& WithSupported(bool value) { SetSupported(value); return *this;}
140 private:
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 Aws::String m_id;
146 bool m_idHasBeenSet = false;
147
148 Aws::String m_type;
149 bool m_typeHasBeenSet = false;
150
152 bool m_configurationManagersHasBeenSet = false;
153
154 Aws::String m_reportedName;
155 bool m_reportedNameHasBeenSet = false;
156
157 Aws::String m_reportedVersion;
158 bool m_reportedVersionHasBeenSet = false;
159
160 bool m_supported;
161 bool m_supportedHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace OpsWorks
166} // namespace Aws
AWS_OPSWORKS_API OperatingSystem(Aws::Utils::Json::JsonView jsonValue)
void SetType(Aws::String &&value)
void SetReportedVersion(Aws::String &&value)
const Aws::Vector< OperatingSystemConfigurationManager > & GetConfigurationManagers() const
OperatingSystem & WithReportedName(const char *value)
OperatingSystem & WithType(Aws::String &&value)
const Aws::String & GetReportedName() const
OperatingSystem & WithType(const char *value)
OperatingSystem & WithId(Aws::String &&value)
OperatingSystem & WithName(const char *value)
OperatingSystem & AddConfigurationManagers(const OperatingSystemConfigurationManager &value)
const Aws::String & GetName() const
OperatingSystem & AddConfigurationManagers(OperatingSystemConfigurationManager &&value)
const Aws::String & GetReportedVersion() const
OperatingSystem & WithConfigurationManagers(Aws::Vector< OperatingSystemConfigurationManager > &&value)
void SetConfigurationManagers(Aws::Vector< OperatingSystemConfigurationManager > &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReportedName(const Aws::String &value)
OperatingSystem & WithName(const Aws::String &value)
const Aws::String & GetId() const
void SetReportedVersion(const char *value)
OperatingSystem & WithType(const Aws::String &value)
OperatingSystem & WithId(const Aws::String &value)
AWS_OPSWORKS_API OperatingSystem & operator=(Aws::Utils::Json::JsonView jsonValue)
OperatingSystem & WithReportedVersion(Aws::String &&value)
OperatingSystem & WithReportedName(const Aws::String &value)
void SetReportedVersion(const Aws::String &value)
void SetName(const Aws::String &value)
OperatingSystem & WithName(Aws::String &&value)
void SetConfigurationManagers(const Aws::Vector< OperatingSystemConfigurationManager > &value)
void SetName(Aws::String &&value)
void SetReportedName(Aws::String &&value)
void SetType(const Aws::String &value)
OperatingSystem & WithReportedName(Aws::String &&value)
OperatingSystem & WithConfigurationManagers(const Aws::Vector< OperatingSystemConfigurationManager > &value)
const Aws::String & GetType() const
OperatingSystem & WithReportedVersion(const Aws::String &value)
OperatingSystem & WithId(const char *value)
void SetId(const Aws::String &value)
void SetReportedName(const char *value)
OperatingSystem & WithSupported(bool value)
OperatingSystem & WithReportedVersion(const char *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