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

Use to specify skipping a final backup, adding tags to a final backup, or * bypassing the retention period of an FSx for ONTAP SnapLock Enterprise volume * when deleting an FSx for ONTAP volume.

See Also:

AWS * API Reference

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

Set to true if you want to skip taking a final backup of the volume you are * deleting.

*/ inline bool GetSkipFinalBackup() const{ return m_skipFinalBackup; } /** *

Set to true if you want to skip taking a final backup of the volume you are * deleting.

*/ inline bool SkipFinalBackupHasBeenSet() const { return m_skipFinalBackupHasBeenSet; } /** *

Set to true if you want to skip taking a final backup of the volume you are * deleting.

*/ inline void SetSkipFinalBackup(bool value) { m_skipFinalBackupHasBeenSet = true; m_skipFinalBackup = value; } /** *

Set to true if you want to skip taking a final backup of the volume you are * deleting.

*/ inline DeleteVolumeOntapConfiguration& WithSkipFinalBackup(bool value) { SetSkipFinalBackup(value); return *this;} inline const Aws::Vector& GetFinalBackupTags() const{ return m_finalBackupTags; } inline bool FinalBackupTagsHasBeenSet() const { return m_finalBackupTagsHasBeenSet; } inline void SetFinalBackupTags(const Aws::Vector& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags = value; } inline void SetFinalBackupTags(Aws::Vector&& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags = std::move(value); } inline DeleteVolumeOntapConfiguration& WithFinalBackupTags(const Aws::Vector& value) { SetFinalBackupTags(value); return *this;} inline DeleteVolumeOntapConfiguration& WithFinalBackupTags(Aws::Vector&& value) { SetFinalBackupTags(std::move(value)); return *this;} inline DeleteVolumeOntapConfiguration& AddFinalBackupTags(const Tag& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags.push_back(value); return *this; } inline DeleteVolumeOntapConfiguration& AddFinalBackupTags(Tag&& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags.push_back(std::move(value)); return *this; } /** *

Setting this to true allows a SnapLock administrator to delete * an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many * (WORM) files. The IAM permission * fsx:BypassSnaplockEnterpriseRetention is also required to delete * SnapLock Enterprise volumes with unexpired WORM files. The default value is * false.

For more information, see * Deleting a SnapLock volume .

*/ inline bool GetBypassSnaplockEnterpriseRetention() const{ return m_bypassSnaplockEnterpriseRetention; } /** *

Setting this to true allows a SnapLock administrator to delete * an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many * (WORM) files. The IAM permission * fsx:BypassSnaplockEnterpriseRetention is also required to delete * SnapLock Enterprise volumes with unexpired WORM files. The default value is * false.

For more information, see * Deleting a SnapLock volume .

*/ inline bool BypassSnaplockEnterpriseRetentionHasBeenSet() const { return m_bypassSnaplockEnterpriseRetentionHasBeenSet; } /** *

Setting this to true allows a SnapLock administrator to delete * an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many * (WORM) files. The IAM permission * fsx:BypassSnaplockEnterpriseRetention is also required to delete * SnapLock Enterprise volumes with unexpired WORM files. The default value is * false.

For more information, see * Deleting a SnapLock volume .

*/ inline void SetBypassSnaplockEnterpriseRetention(bool value) { m_bypassSnaplockEnterpriseRetentionHasBeenSet = true; m_bypassSnaplockEnterpriseRetention = value; } /** *

Setting this to true allows a SnapLock administrator to delete * an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many * (WORM) files. The IAM permission * fsx:BypassSnaplockEnterpriseRetention is also required to delete * SnapLock Enterprise volumes with unexpired WORM files. The default value is * false.

For more information, see * Deleting a SnapLock volume .

*/ inline DeleteVolumeOntapConfiguration& WithBypassSnaplockEnterpriseRetention(bool value) { SetBypassSnaplockEnterpriseRetention(value); return *this;} private: bool m_skipFinalBackup; bool m_skipFinalBackupHasBeenSet = false; Aws::Vector m_finalBackupTags; bool m_finalBackupTagsHasBeenSet = false; bool m_bypassSnaplockEnterpriseRetention; bool m_bypassSnaplockEnterpriseRetentionHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws