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

DeleteTapeArchiveInput

See Also:

AWS * API Reference

*/ class DeleteTapeArchiveRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API DeleteTapeArchiveRequest(); // 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 "DeleteTapeArchive"; } AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override; AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline const Aws::String& GetTapeARN() const{ return m_tapeARN; } /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; } /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline DeleteTapeArchiveRequest& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline DeleteTapeArchiveRequest& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual * tape shelf (VTS).

*/ inline DeleteTapeArchiveRequest& WithTapeARN(const char* value) { SetTapeARN(value); return *this;} /** *

Set to TRUE to delete an archived tape that belongs to a custom * pool with tape retention lock. Only archived tapes with tape retention lock set * to governance can be deleted. Archived tapes with tape retention * lock set to compliance can't be deleted.

*/ inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; } /** *

Set to TRUE to delete an archived tape that belongs to a custom * pool with tape retention lock. Only archived tapes with tape retention lock set * to governance can be deleted. Archived tapes with tape retention * lock set to compliance can't be deleted.

*/ inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; } /** *

Set to TRUE to delete an archived tape that belongs to a custom * pool with tape retention lock. Only archived tapes with tape retention lock set * to governance can be deleted. Archived tapes with tape retention * lock set to compliance can't be deleted.

*/ inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; } /** *

Set to TRUE to delete an archived tape that belongs to a custom * pool with tape retention lock. Only archived tapes with tape retention lock set * to governance can be deleted. Archived tapes with tape retention * lock set to compliance can't be deleted.

*/ inline DeleteTapeArchiveRequest& WithBypassGovernanceRetention(bool value) { SetBypassGovernanceRetention(value); return *this;} private: Aws::String m_tapeARN; bool m_tapeARNHasBeenSet = false; bool m_bypassGovernanceRetention; bool m_bypassGovernanceRetentionHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws