/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpsWorks { namespace Model { /** *

Describes supported operating systems in AWS OpsWorks Stacks.

See * Also:

AWS * API Reference

*/ class OperatingSystem { public: AWS_OPSWORKS_API OperatingSystem(); AWS_OPSWORKS_API OperatingSystem(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API OperatingSystem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline OperatingSystem& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline OperatingSystem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the operating system, such as Amazon Linux * 2018.03.

*/ inline OperatingSystem& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline OperatingSystem& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline OperatingSystem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of a supported operating system, such as Amazon Linux * 2018.03.

*/ inline OperatingSystem& WithId(const char* value) { SetId(value); return *this;} /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline OperatingSystem& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline OperatingSystem& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of a supported operating system, either Linux or * Windows.

*/ inline OperatingSystem& WithType(const char* value) { SetType(value); return *this;} /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline const Aws::Vector& GetConfigurationManagers() const{ return m_configurationManagers; } /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline bool ConfigurationManagersHasBeenSet() const { return m_configurationManagersHasBeenSet; } /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline void SetConfigurationManagers(const Aws::Vector& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers = value; } /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline void SetConfigurationManagers(Aws::Vector&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers = std::move(value); } /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline OperatingSystem& WithConfigurationManagers(const Aws::Vector& value) { SetConfigurationManagers(value); return *this;} /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline OperatingSystem& WithConfigurationManagers(Aws::Vector&& value) { SetConfigurationManagers(std::move(value)); return *this;} /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline OperatingSystem& AddConfigurationManagers(const OperatingSystemConfigurationManager& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers.push_back(value); return *this; } /** *

Supported configuration manager name and versions for an AWS OpsWorks Stacks * operating system.

*/ inline OperatingSystem& AddConfigurationManagers(OperatingSystemConfigurationManager&& value) { m_configurationManagersHasBeenSet = true; m_configurationManagers.push_back(std::move(value)); return *this; } /** *

A short name for the operating system manufacturer.

*/ inline const Aws::String& GetReportedName() const{ return m_reportedName; } /** *

A short name for the operating system manufacturer.

*/ inline bool ReportedNameHasBeenSet() const { return m_reportedNameHasBeenSet; } /** *

A short name for the operating system manufacturer.

*/ inline void SetReportedName(const Aws::String& value) { m_reportedNameHasBeenSet = true; m_reportedName = value; } /** *

A short name for the operating system manufacturer.

*/ inline void SetReportedName(Aws::String&& value) { m_reportedNameHasBeenSet = true; m_reportedName = std::move(value); } /** *

A short name for the operating system manufacturer.

*/ inline void SetReportedName(const char* value) { m_reportedNameHasBeenSet = true; m_reportedName.assign(value); } /** *

A short name for the operating system manufacturer.

*/ inline OperatingSystem& WithReportedName(const Aws::String& value) { SetReportedName(value); return *this;} /** *

A short name for the operating system manufacturer.

*/ inline OperatingSystem& WithReportedName(Aws::String&& value) { SetReportedName(std::move(value)); return *this;} /** *

A short name for the operating system manufacturer.

*/ inline OperatingSystem& WithReportedName(const char* value) { SetReportedName(value); return *this;} /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline const Aws::String& GetReportedVersion() const{ return m_reportedVersion; } /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline bool ReportedVersionHasBeenSet() const { return m_reportedVersionHasBeenSet; } /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline void SetReportedVersion(const Aws::String& value) { m_reportedVersionHasBeenSet = true; m_reportedVersion = value; } /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline void SetReportedVersion(Aws::String&& value) { m_reportedVersionHasBeenSet = true; m_reportedVersion = std::move(value); } /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline void SetReportedVersion(const char* value) { m_reportedVersionHasBeenSet = true; m_reportedVersion.assign(value); } /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline OperatingSystem& WithReportedVersion(const Aws::String& value) { SetReportedVersion(value); return *this;} /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline OperatingSystem& WithReportedVersion(Aws::String&& value) { SetReportedVersion(std::move(value)); return *this;} /** *

The version of the operating system, including the release and edition, if * applicable.

*/ inline OperatingSystem& WithReportedVersion(const char* value) { SetReportedVersion(value); return *this;} /** *

Indicates that an operating system is not supported for new instances.

*/ inline bool GetSupported() const{ return m_supported; } /** *

Indicates that an operating system is not supported for new instances.

*/ inline bool SupportedHasBeenSet() const { return m_supportedHasBeenSet; } /** *

Indicates that an operating system is not supported for new instances.

*/ inline void SetSupported(bool value) { m_supportedHasBeenSet = true; m_supported = value; } /** *

Indicates that an operating system is not supported for new instances.

*/ inline OperatingSystem& WithSupported(bool value) { SetSupported(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Vector m_configurationManagers; bool m_configurationManagersHasBeenSet = false; Aws::String m_reportedName; bool m_reportedNameHasBeenSet = false; Aws::String m_reportedVersion; bool m_reportedVersionHasBeenSet = false; bool m_supported; bool m_supportedHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws