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

A value that specifies whether to delete all child volumes and snapshots. *

See Also:

AWS * API Reference

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

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

To delete the volume's child volumes, snapshots, and clones, use the string * DELETE_CHILD_VOLUMES_AND_SNAPSHOTS.

*/ inline DeleteVolumeOpenZFSConfiguration& AddOptions(DeleteOpenZFSVolumeOption&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; } private: Aws::Vector m_options; bool m_optionsHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws