/** * 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 OpsWorksCM { namespace Model { /** */ class DeleteBackupRequest : public OpsWorksCMRequest { public: AWS_OPSWORKSCM_API DeleteBackupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteBackup"; } AWS_OPSWORKSCM_API Aws::String SerializePayload() const override; AWS_OPSWORKSCM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline const Aws::String& GetBackupId() const{ return m_backupId; } /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; } /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; } /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); } /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); } /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline DeleteBackupRequest& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;} /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline DeleteBackupRequest& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;} /** *

The ID of the backup to delete. Run the DescribeBackups command to get a list * of backup IDs. Backup IDs are in the format * ServerName-yyyyMMddHHmmssSSS.

*/ inline DeleteBackupRequest& WithBackupId(const char* value) { SetBackupId(value); return *this;} private: Aws::String m_backupId; bool m_backupIdHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws