AWS SDK for C++  1.9.104
AWS SDK for C++
OperatingSystem.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace OpsWorks
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
65  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 
71  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 
77  inline OperatingSystem& WithName(const Aws::String& value) { SetName(value); return *this;}
78 
83  inline OperatingSystem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 
89  inline OperatingSystem& WithName(const char* value) { SetName(value); return *this;}
90 
91 
96  inline const Aws::String& GetId() const{ return m_id; }
97 
102  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
103 
108  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
109 
114  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
115 
120  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
121 
126  inline OperatingSystem& WithId(const Aws::String& value) { SetId(value); return *this;}
127 
132  inline OperatingSystem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
133 
138  inline OperatingSystem& WithId(const char* value) { SetId(value); return *this;}
139 
140 
145  inline const Aws::String& GetType() const{ return m_type; }
146 
151  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
152 
157  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
158 
163  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
164 
169  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
170 
175  inline OperatingSystem& WithType(const Aws::String& value) { SetType(value); return *this;}
176 
181  inline OperatingSystem& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
182 
187  inline OperatingSystem& WithType(const char* value) { SetType(value); return *this;}
188 
189 
194  inline const Aws::Vector<OperatingSystemConfigurationManager>& GetConfigurationManagers() const{ return m_configurationManagers; }
195 
200  inline bool ConfigurationManagersHasBeenSet() const { return m_configurationManagersHasBeenSet; }
201 
206  inline void SetConfigurationManagers(const Aws::Vector<OperatingSystemConfigurationManager>& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers = value; }
207 
212  inline void SetConfigurationManagers(Aws::Vector<OperatingSystemConfigurationManager>&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers = std::move(value); }
213 
218  inline OperatingSystem& WithConfigurationManagers(const Aws::Vector<OperatingSystemConfigurationManager>& value) { SetConfigurationManagers(value); return *this;}
219 
224  inline OperatingSystem& WithConfigurationManagers(Aws::Vector<OperatingSystemConfigurationManager>&& value) { SetConfigurationManagers(std::move(value)); return *this;}
225 
230  inline OperatingSystem& AddConfigurationManagers(const OperatingSystemConfigurationManager& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers.push_back(value); return *this; }
231 
236  inline OperatingSystem& AddConfigurationManagers(OperatingSystemConfigurationManager&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers.push_back(std::move(value)); return *this; }
237 
238 
242  inline const Aws::String& GetReportedName() const{ return m_reportedName; }
243 
247  inline bool ReportedNameHasBeenSet() const { return m_reportedNameHasBeenSet; }
248 
252  inline void SetReportedName(const Aws::String& value) { m_reportedNameHasBeenSet = true; m_reportedName = value; }
253 
257  inline void SetReportedName(Aws::String&& value) { m_reportedNameHasBeenSet = true; m_reportedName = std::move(value); }
258 
262  inline void SetReportedName(const char* value) { m_reportedNameHasBeenSet = true; m_reportedName.assign(value); }
263 
267  inline OperatingSystem& WithReportedName(const Aws::String& value) { SetReportedName(value); return *this;}
268 
272  inline OperatingSystem& WithReportedName(Aws::String&& value) { SetReportedName(std::move(value)); return *this;}
273 
277  inline OperatingSystem& WithReportedName(const char* value) { SetReportedName(value); return *this;}
278 
279 
284  inline const Aws::String& GetReportedVersion() const{ return m_reportedVersion; }
285 
290  inline bool ReportedVersionHasBeenSet() const { return m_reportedVersionHasBeenSet; }
291 
296  inline void SetReportedVersion(const Aws::String& value) { m_reportedVersionHasBeenSet = true; m_reportedVersion = value; }
297 
302  inline void SetReportedVersion(Aws::String&& value) { m_reportedVersionHasBeenSet = true; m_reportedVersion = std::move(value); }
303 
308  inline void SetReportedVersion(const char* value) { m_reportedVersionHasBeenSet = true; m_reportedVersion.assign(value); }
309 
314  inline OperatingSystem& WithReportedVersion(const Aws::String& value) { SetReportedVersion(value); return *this;}
315 
320  inline OperatingSystem& WithReportedVersion(Aws::String&& value) { SetReportedVersion(std::move(value)); return *this;}
321 
326  inline OperatingSystem& WithReportedVersion(const char* value) { SetReportedVersion(value); return *this;}
327 
328 
332  inline bool GetSupported() const{ return m_supported; }
333 
337  inline bool SupportedHasBeenSet() const { return m_supportedHasBeenSet; }
338 
342  inline void SetSupported(bool value) { m_supportedHasBeenSet = true; m_supported = value; }
343 
347  inline OperatingSystem& WithSupported(bool value) { SetSupported(value); return *this;}
348 
349  private:
350 
351  Aws::String m_name;
352  bool m_nameHasBeenSet;
353 
354  Aws::String m_id;
355  bool m_idHasBeenSet;
356 
357  Aws::String m_type;
358  bool m_typeHasBeenSet;
359 
360  Aws::Vector<OperatingSystemConfigurationManager> m_configurationManagers;
361  bool m_configurationManagersHasBeenSet;
362 
363  Aws::String m_reportedName;
364  bool m_reportedNameHasBeenSet;
365 
366  Aws::String m_reportedVersion;
367  bool m_reportedVersionHasBeenSet;
368 
369  bool m_supported;
370  bool m_supportedHasBeenSet;
371  };
372 
373 } // namespace Model
374 } // namespace OpsWorks
375 } // namespace Aws
Aws::OpsWorks::Model::OperatingSystem::NameHasBeenSet
bool NameHasBeenSet() const
Definition: OperatingSystem.h:53
Aws::OpsWorks::Model::OperatingSystem::WithReportedName
OperatingSystem & WithReportedName(Aws::String &&value)
Definition: OperatingSystem.h:272
Aws::OpsWorks::Model::OperatingSystem::SetReportedVersion
void SetReportedVersion(Aws::String &&value)
Definition: OperatingSystem.h:302
Aws::OpsWorks::Model::OperatingSystem::WithType
OperatingSystem & WithType(const Aws::String &value)
Definition: OperatingSystem.h:175
Aws::OpsWorks::Model::OperatingSystem::WithId
OperatingSystem & WithId(const Aws::String &value)
Definition: OperatingSystem.h:126
Aws::OpsWorks::Model::OperatingSystem::SetReportedVersion
void SetReportedVersion(const char *value)
Definition: OperatingSystem.h:308
Aws::OpsWorks::Model::OperatingSystem::AddConfigurationManagers
OperatingSystem & AddConfigurationManagers(OperatingSystemConfigurationManager &&value)
Definition: OperatingSystem.h:236
Aws::OpsWorks::Model::OperatingSystem::WithId
OperatingSystem & WithId(const char *value)
Definition: OperatingSystem.h:138
Aws::OpsWorks::Model::OperatingSystem::WithConfigurationManagers
OperatingSystem & WithConfigurationManagers(Aws::Vector< OperatingSystemConfigurationManager > &&value)
Definition: OperatingSystem.h:224
Aws::OpsWorks::Model::OperatingSystem::SetName
void SetName(const char *value)
Definition: OperatingSystem.h:71
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::OperatingSystem::SetReportedName
void SetReportedName(const char *value)
Definition: OperatingSystem.h:262
Aws::OpsWorks::Model::OperatingSystem::SetType
void SetType(const char *value)
Definition: OperatingSystem.h:169
Aws::OpsWorks::Model::OperatingSystem::ReportedNameHasBeenSet
bool ReportedNameHasBeenSet() const
Definition: OperatingSystem.h:247
Aws::OpsWorks::Model::OperatingSystem::SetType
void SetType(const Aws::String &value)
Definition: OperatingSystem.h:157
Aws::OpsWorks::Model::OperatingSystem::GetReportedName
const Aws::String & GetReportedName() const
Definition: OperatingSystem.h:242
Aws::OpsWorks::Model::OperatingSystem::GetId
const Aws::String & GetId() const
Definition: OperatingSystem.h:96
Aws::OpsWorks::Model::OperatingSystem::OperatingSystem
OperatingSystem()
Aws::OpsWorks::Model::OperatingSystem::IdHasBeenSet
bool IdHasBeenSet() const
Definition: OperatingSystem.h:102
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::OperatingSystem::SetReportedName
void SetReportedName(const Aws::String &value)
Definition: OperatingSystem.h:252
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::OperatingSystem::GetName
const Aws::String & GetName() const
Definition: OperatingSystem.h:47
Aws::OpsWorks::Model::OperatingSystem::WithType
OperatingSystem & WithType(const char *value)
Definition: OperatingSystem.h:187
Aws::OpsWorks::Model::OperatingSystem::SetName
void SetName(Aws::String &&value)
Definition: OperatingSystem.h:65
Aws::OpsWorks::Model::OperatingSystem::WithName
OperatingSystem & WithName(const char *value)
Definition: OperatingSystem.h:89
Aws::OpsWorks::Model::OperatingSystem::SetName
void SetName(const Aws::String &value)
Definition: OperatingSystem.h:59
Aws::OpsWorks::Model::OperatingSystem::WithConfigurationManagers
OperatingSystem & WithConfigurationManagers(const Aws::Vector< OperatingSystemConfigurationManager > &value)
Definition: OperatingSystem.h:218
Aws::OpsWorks::Model::OperatingSystem::SetReportedName
void SetReportedName(Aws::String &&value)
Definition: OperatingSystem.h:257
Aws::OpsWorks::Model::OperatingSystem::ConfigurationManagersHasBeenSet
bool ConfigurationManagersHasBeenSet() const
Definition: OperatingSystem.h:200
Aws::OpsWorks::Model::OperatingSystem::WithReportedName
OperatingSystem & WithReportedName(const char *value)
Definition: OperatingSystem.h:277
Aws::OpsWorks::Model::OperatingSystem::WithSupported
OperatingSystem & WithSupported(bool value)
Definition: OperatingSystem.h:347
Aws::OpsWorks::Model::OperatingSystem
Definition: OperatingSystem.h:35
Aws::OpsWorks::Model::OperatingSystem::GetSupported
bool GetSupported() const
Definition: OperatingSystem.h:332
Aws::OpsWorks::Model::OperatingSystem::WithName
OperatingSystem & WithName(Aws::String &&value)
Definition: OperatingSystem.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::OperatingSystem::WithType
OperatingSystem & WithType(Aws::String &&value)
Definition: OperatingSystem.h:181
Aws::OpsWorks::Model::OperatingSystem::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: OperatingSystem.h:151
Aws::OpsWorks::Model::OperatingSystem::WithName
OperatingSystem & WithName(const Aws::String &value)
Definition: OperatingSystem.h:77
Aws::OpsWorks::Model::OperatingSystem::operator=
OperatingSystem & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::OperatingSystem::WithReportedVersion
OperatingSystem & WithReportedVersion(const char *value)
Definition: OperatingSystem.h:326
Aws::OpsWorks::Model::OperatingSystem::GetConfigurationManagers
const Aws::Vector< OperatingSystemConfigurationManager > & GetConfigurationManagers() const
Definition: OperatingSystem.h:194
Aws::OpsWorks::Model::OperatingSystem::WithReportedName
OperatingSystem & WithReportedName(const Aws::String &value)
Definition: OperatingSystem.h:267
Aws::OpsWorks::Model::OperatingSystem::SetConfigurationManagers
void SetConfigurationManagers(const Aws::Vector< OperatingSystemConfigurationManager > &value)
Definition: OperatingSystem.h:206
Aws::OpsWorks::Model::OperatingSystem::SetSupported
void SetSupported(bool value)
Definition: OperatingSystem.h:342
Aws::OpsWorks::Model::OperatingSystem::GetReportedVersion
const Aws::String & GetReportedVersion() const
Definition: OperatingSystem.h:284
Aws::OpsWorks::Model::OperatingSystem::SetConfigurationManagers
void SetConfigurationManagers(Aws::Vector< OperatingSystemConfigurationManager > &&value)
Definition: OperatingSystem.h:212
Aws::OpsWorks::Model::OperatingSystem::SetId
void SetId(const Aws::String &value)
Definition: OperatingSystem.h:108
Aws::OpsWorks::Model::OperatingSystem::SupportedHasBeenSet
bool SupportedHasBeenSet() const
Definition: OperatingSystem.h:337
Aws::OpsWorks::Model::OperatingSystem::SetReportedVersion
void SetReportedVersion(const Aws::String &value)
Definition: OperatingSystem.h:296
Aws::OpsWorks::Model::OperatingSystem::WithId
OperatingSystem & WithId(Aws::String &&value)
Definition: OperatingSystem.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::OperatingSystem::AddConfigurationManagers
OperatingSystem & AddConfigurationManagers(const OperatingSystemConfigurationManager &value)
Definition: OperatingSystem.h:230
Aws::OpsWorks::Model::OperatingSystemConfigurationManager
Definition: OperatingSystemConfigurationManager.h:34
Aws::OpsWorks::Model::OperatingSystem::ReportedVersionHasBeenSet
bool ReportedVersionHasBeenSet() const
Definition: OperatingSystem.h:290
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::OperatingSystem::WithReportedVersion
OperatingSystem & WithReportedVersion(Aws::String &&value)
Definition: OperatingSystem.h:320
Aws::OpsWorks::Model::OperatingSystem::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::OperatingSystem::SetType
void SetType(Aws::String &&value)
Definition: OperatingSystem.h:163
Aws::OpsWorks::Model::OperatingSystem::SetId
void SetId(Aws::String &&value)
Definition: OperatingSystem.h:114
Aws::OpsWorks::Model::OperatingSystem::GetType
const Aws::String & GetType() const
Definition: OperatingSystem.h:145
Aws::OpsWorks::Model::OperatingSystem::SetId
void SetId(const char *value)
Definition: OperatingSystem.h:120
Aws::OpsWorks::Model::OperatingSystem::OperatingSystem
OperatingSystem(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::OperatingSystem::WithReportedVersion
OperatingSystem & WithReportedVersion(const Aws::String &value)
Definition: OperatingSystem.h:314
OperatingSystemConfigurationManager.h