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

The metadata for a feature. For example, the metadata might indicate that a * feature is turned on or off on a specific DB instance.

See Also:

* AWS * API Reference

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

The status of the feature on the DB instance. Possible values include the * following:

  • ENABLED - The feature is enabled on * the instance.

  • DISABLED - The feature is disabled * on the instance.

  • UNSUPPORTED - The feature isn't * supported on the instance.

  • * ENABLED_PENDING_REBOOT - The feature is enabled on the instance but * requires a reboot to take effect.

  • * DISABLED_PENDING_REBOOT - The feature is disabled on the instance * but requires a reboot to take effect.

  • UNKNOWN - * The feature status couldn't be determined.

*/ inline const FeatureStatus& GetStatus() const{ return m_status; } /** *

The status of the feature on the DB instance. Possible values include the * following:

  • ENABLED - The feature is enabled on * the instance.

  • DISABLED - The feature is disabled * on the instance.

  • UNSUPPORTED - The feature isn't * supported on the instance.

  • * ENABLED_PENDING_REBOOT - The feature is enabled on the instance but * requires a reboot to take effect.

  • * DISABLED_PENDING_REBOOT - The feature is disabled on the instance * but requires a reboot to take effect.

  • UNKNOWN - * The feature status couldn't be determined.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the feature on the DB instance. Possible values include the * following:

  • ENABLED - The feature is enabled on * the instance.

  • DISABLED - The feature is disabled * on the instance.

  • UNSUPPORTED - The feature isn't * supported on the instance.

  • * ENABLED_PENDING_REBOOT - The feature is enabled on the instance but * requires a reboot to take effect.

  • * DISABLED_PENDING_REBOOT - The feature is disabled on the instance * but requires a reboot to take effect.

  • UNKNOWN - * The feature status couldn't be determined.

*/ inline void SetStatus(const FeatureStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the feature on the DB instance. Possible values include the * following:

  • ENABLED - The feature is enabled on * the instance.

  • DISABLED - The feature is disabled * on the instance.

  • UNSUPPORTED - The feature isn't * supported on the instance.

  • * ENABLED_PENDING_REBOOT - The feature is enabled on the instance but * requires a reboot to take effect.

  • * DISABLED_PENDING_REBOOT - The feature is disabled on the instance * but requires a reboot to take effect.

  • UNKNOWN - * The feature status couldn't be determined.

*/ inline void SetStatus(FeatureStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the feature on the DB instance. Possible values include the * following:

  • ENABLED - The feature is enabled on * the instance.

  • DISABLED - The feature is disabled * on the instance.

  • UNSUPPORTED - The feature isn't * supported on the instance.

  • * ENABLED_PENDING_REBOOT - The feature is enabled on the instance but * requires a reboot to take effect.

  • * DISABLED_PENDING_REBOOT - The feature is disabled on the instance * but requires a reboot to take effect.

  • UNKNOWN - * The feature status couldn't be determined.

*/ inline FeatureMetadata& WithStatus(const FeatureStatus& value) { SetStatus(value); return *this;} /** *

The status of the feature on the DB instance. Possible values include the * following:

  • ENABLED - The feature is enabled on * the instance.

  • DISABLED - The feature is disabled * on the instance.

  • UNSUPPORTED - The feature isn't * supported on the instance.

  • * ENABLED_PENDING_REBOOT - The feature is enabled on the instance but * requires a reboot to take effect.

  • * DISABLED_PENDING_REBOOT - The feature is disabled on the instance * but requires a reboot to take effect.

  • UNKNOWN - * The feature status couldn't be determined.

*/ inline FeatureMetadata& WithStatus(FeatureStatus&& value) { SetStatus(std::move(value)); return *this;} private: FeatureStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace PI } // namespace Aws