/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FSx { namespace Model { /** *

The configuration object for the Amazon FSx for OpenZFS file system used in * the DeleteFileSystem operation.

See Also:

AWS * API Reference

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

By default, Amazon FSx for OpenZFS takes a final backup on your behalf when * the DeleteFileSystem operation is invoked. Doing this helps protect * you from data loss, and we highly recommend taking the final backup. If you want * to skip taking a final backup, set this value to true.

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

By default, Amazon FSx for OpenZFS takes a final backup on your behalf when * the DeleteFileSystem operation is invoked. Doing this helps protect * you from data loss, and we highly recommend taking the final backup. If you want * to skip taking a final backup, set this value to true.

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

By default, Amazon FSx for OpenZFS takes a final backup on your behalf when * the DeleteFileSystem operation is invoked. Doing this helps protect * you from data loss, and we highly recommend taking the final backup. If you want * to skip taking a final backup, set this value to true.

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

By default, Amazon FSx for OpenZFS takes a final backup on your behalf when * the DeleteFileSystem operation is invoked. Doing this helps protect * you from data loss, and we highly recommend taking the final backup. If you want * to skip taking a final backup, set this value to true.

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

A list of tags to apply to the file system's final backup.

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

A list of tags to apply to the file system's final backup.

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

A list of tags to apply to the file system's final backup.

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

A list of tags to apply to the file system's final backup.

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

A list of tags to apply to the file system's final backup.

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

A list of tags to apply to the file system's final backup.

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

A list of tags to apply to the file system's final backup.

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

A list of tags to apply to the file system's final backup.

*/ inline DeleteFileSystemOpenZFSConfiguration& AddFinalBackupTags(Tag&& value) { m_finalBackupTagsHasBeenSet = true; m_finalBackupTags.push_back(std::move(value)); return *this; } /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline const Aws::Vector& GetOptions() const{ return m_options; } /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline void SetOptions(const Aws::Vector& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline void SetOptions(Aws::Vector&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline DeleteFileSystemOpenZFSConfiguration& WithOptions(const Aws::Vector& value) { SetOptions(value); return *this;} /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline DeleteFileSystemOpenZFSConfiguration& WithOptions(Aws::Vector&& value) { SetOptions(std::move(value)); return *this;} /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline DeleteFileSystemOpenZFSConfiguration& AddOptions(const DeleteFileSystemOpenZFSOption& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; } /** *

To delete a file system if there are child volumes present below the root * volume, use the string DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. If your * file system has child volumes and you don't use this option, the delete request * will fail.

*/ inline DeleteFileSystemOpenZFSConfiguration& AddOptions(DeleteFileSystemOpenZFSOption&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; } private: bool m_skipFinalBackup; bool m_skipFinalBackupHasBeenSet = false; Aws::Vector m_finalBackupTags; bool m_finalBackupTagsHasBeenSet = false; Aws::Vector m_options; bool m_optionsHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws