/** * 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 { /** *

The configuration object for the Amazon FSx for Lustre file system being * deleted in the DeleteFileSystem operation.

See Also:

* AWS * API Reference

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

Set SkipFinalBackup to false if you want to take a final backup * of the file system you are deleting. By default, Amazon FSx will not take a * final backup on your behalf when the DeleteFileSystem operation is * invoked. (Default = true)

The fsx:CreateBackup * permission is required if you set SkipFinalBackup to * false in order to delete the file system and take a final * backup.

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

Set SkipFinalBackup to false if you want to take a final backup * of the file system you are deleting. By default, Amazon FSx will not take a * final backup on your behalf when the DeleteFileSystem operation is * invoked. (Default = true)

The fsx:CreateBackup * permission is required if you set SkipFinalBackup to * false in order to delete the file system and take a final * backup.

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

Set SkipFinalBackup to false if you want to take a final backup * of the file system you are deleting. By default, Amazon FSx will not take a * final backup on your behalf when the DeleteFileSystem operation is * invoked. (Default = true)

The fsx:CreateBackup * permission is required if you set SkipFinalBackup to * false in order to delete the file system and take a final * backup.

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

Set SkipFinalBackup to false if you want to take a final backup * of the file system you are deleting. By default, Amazon FSx will not take a * final backup on your behalf when the DeleteFileSystem operation is * invoked. (Default = true)

The fsx:CreateBackup * permission is required if you set SkipFinalBackup to * false in order to delete the file system and take a final * backup.

*/ inline DeleteFileSystemLustreConfiguration& WithSkipFinalBackup(bool value) { SetSkipFinalBackup(value); return *this;} /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline const Aws::Vector& GetFinalBackupTags() const{ return m_finalBackupTags; } /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline bool FinalBackupTagsHasBeenSet() const { return m_finalBackupTagsHasBeenSet; } /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline void SetFinalBackupTags(const Aws::Vector& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags = value; } /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline void SetFinalBackupTags(Aws::Vector&& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags = std::move(value); } /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline DeleteFileSystemLustreConfiguration& WithFinalBackupTags(const Aws::Vector& value) { SetFinalBackupTags(value); return *this;} /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline DeleteFileSystemLustreConfiguration& WithFinalBackupTags(Aws::Vector&& value) { SetFinalBackupTags(std::move(value)); return *this;} /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline DeleteFileSystemLustreConfiguration& AddFinalBackupTags(const Tag& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags.push_back(value); return *this; } /** *

Use if SkipFinalBackup is set to false, and you * want to apply an array of tags to the final backup. If you have set the file * system property CopyTagsToBackups to true, and you specify one or * more FinalBackupTags when deleting a file system, Amazon FSx will * not copy any existing file system tags to the backup.

*/ inline DeleteFileSystemLustreConfiguration& AddFinalBackupTags(Tag&& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags.push_back(std::move(value)); return *this; } private: bool m_skipFinalBackup; bool m_skipFinalBackupHasBeenSet = false; Aws::Vector m_finalBackupTags; bool m_finalBackupTagsHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws