/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace FSx { namespace Model { class DeleteVolumeResult { public: AWS_FSX_API DeleteVolumeResult(); AWS_FSX_API DeleteVolumeResult(const Aws::AmazonWebServiceResult& result); AWS_FSX_API DeleteVolumeResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the volume that's being deleted.

*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *

The ID of the volume that's being deleted.

*/ inline void SetVolumeId(const Aws::String& value) { m_volumeId = value; } /** *

The ID of the volume that's being deleted.

*/ inline void SetVolumeId(Aws::String&& value) { m_volumeId = std::move(value); } /** *

The ID of the volume that's being deleted.

*/ inline void SetVolumeId(const char* value) { m_volumeId.assign(value); } /** *

The ID of the volume that's being deleted.

*/ inline DeleteVolumeResult& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *

The ID of the volume that's being deleted.

*/ inline DeleteVolumeResult& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *

The ID of the volume that's being deleted.

*/ inline DeleteVolumeResult& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} /** *

The lifecycle state of the volume being deleted. If the * DeleteVolume operation is successful, this value is * DELETING.

*/ inline const VolumeLifecycle& GetLifecycle() const{ return m_lifecycle; } /** *

The lifecycle state of the volume being deleted. If the * DeleteVolume operation is successful, this value is * DELETING.

*/ inline void SetLifecycle(const VolumeLifecycle& value) { m_lifecycle = value; } /** *

The lifecycle state of the volume being deleted. If the * DeleteVolume operation is successful, this value is * DELETING.

*/ inline void SetLifecycle(VolumeLifecycle&& value) { m_lifecycle = std::move(value); } /** *

The lifecycle state of the volume being deleted. If the * DeleteVolume operation is successful, this value is * DELETING.

*/ inline DeleteVolumeResult& WithLifecycle(const VolumeLifecycle& value) { SetLifecycle(value); return *this;} /** *

The lifecycle state of the volume being deleted. If the * DeleteVolume operation is successful, this value is * DELETING.

*/ inline DeleteVolumeResult& WithLifecycle(VolumeLifecycle&& value) { SetLifecycle(std::move(value)); return *this;} /** *

Returned after a DeleteVolume request, showing the status of the * delete request.

*/ inline const DeleteVolumeOntapResponse& GetOntapResponse() const{ return m_ontapResponse; } /** *

Returned after a DeleteVolume request, showing the status of the * delete request.

*/ inline void SetOntapResponse(const DeleteVolumeOntapResponse& value) { m_ontapResponse = value; } /** *

Returned after a DeleteVolume request, showing the status of the * delete request.

*/ inline void SetOntapResponse(DeleteVolumeOntapResponse&& value) { m_ontapResponse = std::move(value); } /** *

Returned after a DeleteVolume request, showing the status of the * delete request.

*/ inline DeleteVolumeResult& WithOntapResponse(const DeleteVolumeOntapResponse& value) { SetOntapResponse(value); return *this;} /** *

Returned after a DeleteVolume request, showing the status of the * delete request.

*/ inline DeleteVolumeResult& WithOntapResponse(DeleteVolumeOntapResponse&& value) { SetOntapResponse(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DeleteVolumeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DeleteVolumeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DeleteVolumeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_volumeId; VolumeLifecycle m_lifecycle; DeleteVolumeOntapResponse m_ontapResponse; Aws::String m_requestId; }; } // namespace Model } // namespace FSx } // namespace Aws