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

Options for configuring service software updates for a domain.

See * Also:

AWS * API Reference

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

Whether automatic service software updates are enabled for the domain.

*/ inline bool GetAutoSoftwareUpdateEnabled() const{ return m_autoSoftwareUpdateEnabled; } /** *

Whether automatic service software updates are enabled for the domain.

*/ inline bool AutoSoftwareUpdateEnabledHasBeenSet() const { return m_autoSoftwareUpdateEnabledHasBeenSet; } /** *

Whether automatic service software updates are enabled for the domain.

*/ inline void SetAutoSoftwareUpdateEnabled(bool value) { m_autoSoftwareUpdateEnabledHasBeenSet = true; m_autoSoftwareUpdateEnabled = value; } /** *

Whether automatic service software updates are enabled for the domain.

*/ inline SoftwareUpdateOptions& WithAutoSoftwareUpdateEnabled(bool value) { SetAutoSoftwareUpdateEnabled(value); return *this;} private: bool m_autoSoftwareUpdateEnabled; bool m_autoSoftwareUpdateEnabledHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws