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

The request object for the DeleteBackup operation.

See * Also:

AWS * API Reference

*/ class DeleteBackupRequest : public FSxRequest { public: AWS_FSX_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_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the backup that you want to delete.

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

The ID of the backup that you want to delete.

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

The ID of the backup that you want to delete.

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

The ID of the backup that you want to delete.

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

The ID of the backup that you want to delete.

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

The ID of the backup that you want to delete.

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

The ID of the backup that you want to delete.

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

The ID of the backup that you want to delete.

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

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

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

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

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

A string of up to 63 ASCII characters that Amazon FSx uses to ensure * idempotent deletion. This parameter is automatically filled on your behalf when * using the CLI or SDK.

*/ inline DeleteBackupRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_backupId; bool m_backupIdHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws