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

Information about the operating system.

See Also:

AWS * API Reference

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

Information about the type of operating system.

*/ inline const OSType& GetType() const{ return m_type; } /** *

Information about the type of operating system.

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

Information about the type of operating system.

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

Information about the type of operating system.

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

Information about the type of operating system.

*/ inline OSInfo& WithType(const OSType& value) { SetType(value); return *this;} /** *

Information about the type of operating system.

*/ inline OSInfo& WithType(OSType&& value) { SetType(std::move(value)); return *this;} /** *

Information about the version of operating system.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

Information about the version of operating system.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

Information about the version of operating system.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

Information about the version of operating system.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

Information about the version of operating system.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

Information about the version of operating system.

*/ inline OSInfo& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

Information about the version of operating system.

*/ inline OSInfo& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

Information about the version of operating system.

*/ inline OSInfo& WithVersion(const char* value) { SetVersion(value); return *this;} private: OSType m_type; bool m_typeHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws