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

Identifies an DMS resource and any pending actions for it.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** *

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** *

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** *

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } /** *

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline ResourcePendingMaintenanceActions& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline ResourcePendingMaintenanceActions& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the DMS resource that the pending * maintenance action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN) for DMS in the DMS * documentation.

*/ inline ResourcePendingMaintenanceActions& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} /** *

Detailed information about the pending maintenance action.

*/ inline const Aws::Vector& GetPendingMaintenanceActionDetails() const{ return m_pendingMaintenanceActionDetails; } /** *

Detailed information about the pending maintenance action.

*/ inline bool PendingMaintenanceActionDetailsHasBeenSet() const { return m_pendingMaintenanceActionDetailsHasBeenSet; } /** *

Detailed information about the pending maintenance action.

*/ inline void SetPendingMaintenanceActionDetails(const Aws::Vector& value) { m_pendingMaintenanceActionDetailsHasBeenSet = true; m_pendingMaintenanceActionDetails = value; } /** *

Detailed information about the pending maintenance action.

*/ inline void SetPendingMaintenanceActionDetails(Aws::Vector&& value) { m_pendingMaintenanceActionDetailsHasBeenSet = true; m_pendingMaintenanceActionDetails = std::move(value); } /** *

Detailed information about the pending maintenance action.

*/ inline ResourcePendingMaintenanceActions& WithPendingMaintenanceActionDetails(const Aws::Vector& value) { SetPendingMaintenanceActionDetails(value); return *this;} /** *

Detailed information about the pending maintenance action.

*/ inline ResourcePendingMaintenanceActions& WithPendingMaintenanceActionDetails(Aws::Vector&& value) { SetPendingMaintenanceActionDetails(std::move(value)); return *this;} /** *

Detailed information about the pending maintenance action.

*/ inline ResourcePendingMaintenanceActions& AddPendingMaintenanceActionDetails(const PendingMaintenanceAction& value) { m_pendingMaintenanceActionDetailsHasBeenSet = true; m_pendingMaintenanceActionDetails.push_back(value); return *this; } /** *

Detailed information about the pending maintenance action.

*/ inline ResourcePendingMaintenanceActions& AddPendingMaintenanceActionDetails(PendingMaintenanceAction&& value) { m_pendingMaintenanceActionDetailsHasBeenSet = true; m_pendingMaintenanceActionDetails.push_back(std::move(value)); return *this; } private: Aws::String m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; Aws::Vector m_pendingMaintenanceActionDetails; bool m_pendingMaintenanceActionDetailsHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws