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

Describes a pending database maintenance action.

See Also:

* AWS * API Reference

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

The type of pending database maintenance action.

*/ inline const Aws::String& GetAction() const{ return m_action; } /** *

The type of pending database maintenance action.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The type of pending database maintenance action.

*/ inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The type of pending database maintenance action.

*/ inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The type of pending database maintenance action.

*/ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *

The type of pending database maintenance action.

*/ inline PendingMaintenanceAction& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *

The type of pending database maintenance action.

*/ inline PendingMaintenanceAction& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *

The type of pending database maintenance action.

*/ inline PendingMaintenanceAction& WithAction(const char* value) { SetAction(value); return *this;} /** *

Additional detail about the pending database maintenance action.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Additional detail about the pending database maintenance action.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Additional detail about the pending database maintenance action.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Additional detail about the pending database maintenance action.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Additional detail about the pending database maintenance action.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Additional detail about the pending database maintenance action.

*/ inline PendingMaintenanceAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Additional detail about the pending database maintenance action.

*/ inline PendingMaintenanceAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Additional detail about the pending database maintenance action.

*/ inline PendingMaintenanceAction& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The effective date of the pending database maintenance action.

*/ inline const Aws::Utils::DateTime& GetCurrentApplyDate() const{ return m_currentApplyDate; } /** *

The effective date of the pending database maintenance action.

*/ inline bool CurrentApplyDateHasBeenSet() const { return m_currentApplyDateHasBeenSet; } /** *

The effective date of the pending database maintenance action.

*/ inline void SetCurrentApplyDate(const Aws::Utils::DateTime& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = value; } /** *

The effective date of the pending database maintenance action.

*/ inline void SetCurrentApplyDate(Aws::Utils::DateTime&& value) { m_currentApplyDateHasBeenSet = true; m_currentApplyDate = std::move(value); } /** *

The effective date of the pending database maintenance action.

*/ inline PendingMaintenanceAction& WithCurrentApplyDate(const Aws::Utils::DateTime& value) { SetCurrentApplyDate(value); return *this;} /** *

The effective date of the pending database maintenance action.

*/ inline PendingMaintenanceAction& WithCurrentApplyDate(Aws::Utils::DateTime&& value) { SetCurrentApplyDate(std::move(value)); return *this;} private: Aws::String m_action; bool m_actionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_currentApplyDate; bool m_currentApplyDateHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws