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

The operating system that the image is running.

See Also:

AWS * API Reference

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

The operating system.

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

The operating system.

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

The operating system.

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

The operating system.

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

The operating system.

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

The operating system.

*/ inline OperatingSystem& WithType(OperatingSystemType&& value) { SetType(std::move(value)); return *this;} private: OperatingSystemType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws