/** * 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 DirectoryService { namespace Model { /** *

OS version that the directory needs to be updated to.

See * Also:

AWS * API Reference

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

OS version that the directory needs to be updated to.

*/ inline const OSVersion& GetOSVersion() const{ return m_oSVersion; } /** *

OS version that the directory needs to be updated to.

*/ inline bool OSVersionHasBeenSet() const { return m_oSVersionHasBeenSet; } /** *

OS version that the directory needs to be updated to.

*/ inline void SetOSVersion(const OSVersion& value) { m_oSVersionHasBeenSet = true; m_oSVersion = value; } /** *

OS version that the directory needs to be updated to.

*/ inline void SetOSVersion(OSVersion&& value) { m_oSVersionHasBeenSet = true; m_oSVersion = std::move(value); } /** *

OS version that the directory needs to be updated to.

*/ inline OSUpdateSettings& WithOSVersion(const OSVersion& value) { SetOSVersion(value); return *this;} /** *

OS version that the directory needs to be updated to.

*/ inline OSUpdateSettings& WithOSVersion(OSVersion&& value) { SetOSVersion(std::move(value)); return *this;} private: OSVersion m_oSVersion; bool m_oSVersionHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws