/** * 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 { /** *

Container for the parameters required to enable cold storage for an * OpenSearch Service domain. For more information, see Cold * storage for Amazon OpenSearch Service.

See Also:

AWS * API Reference

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

Whether to enable or disable cold storage on the domain.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Whether to enable or disable cold storage on the domain.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Whether to enable or disable cold storage on the domain.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Whether to enable or disable cold storage on the domain.

*/ inline ColdStorageOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws