/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 RestoreVolumeFromSnapshotResult { public: AWS_FSX_API RestoreVolumeFromSnapshotResult(); AWS_FSX_API RestoreVolumeFromSnapshotResult(const Aws::AmazonWebServiceResult& result); AWS_FSX_API RestoreVolumeFromSnapshotResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the volume that you restored.

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

The ID of the volume that you restored.

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

The ID of the volume that you restored.

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

The ID of the volume that you restored.

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

The ID of the volume that you restored.

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

The ID of the volume that you restored.

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

The ID of the volume that you restored.

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

The lifecycle state of the volume being restored.

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

The lifecycle state of the volume being restored.

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

The lifecycle state of the volume being restored.

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

The lifecycle state of the volume being restored.

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

The lifecycle state of the volume being restored.

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

A list of administrative actions for the file system that are in process or * waiting to be processed. Administrative actions describe changes to the Amazon * FSx system.

*/ inline const Aws::Vector& GetAdministrativeActions() const{ return m_administrativeActions; } /** *

A list of administrative actions for the file system that are in process or * waiting to be processed. Administrative actions describe changes to the Amazon * FSx system.

*/ inline void SetAdministrativeActions(const Aws::Vector& value) { m_administrativeActions = value; } /** *

A list of administrative actions for the file system that are in process or * waiting to be processed. Administrative actions describe changes to the Amazon * FSx system.

*/ inline void SetAdministrativeActions(Aws::Vector&& value) { m_administrativeActions = std::move(value); } /** *

A list of administrative actions for the file system that are in process or * waiting to be processed. Administrative actions describe changes to the Amazon * FSx system.

*/ inline RestoreVolumeFromSnapshotResult& WithAdministrativeActions(const Aws::Vector& value) { SetAdministrativeActions(value); return *this;} /** *

A list of administrative actions for the file system that are in process or * waiting to be processed. Administrative actions describe changes to the Amazon * FSx system.

*/ inline RestoreVolumeFromSnapshotResult& WithAdministrativeActions(Aws::Vector&& value) { SetAdministrativeActions(std::move(value)); return *this;} /** *

A list of administrative actions for the file system that are in process or * waiting to be processed. Administrative actions describe changes to the Amazon * FSx system.

*/ inline RestoreVolumeFromSnapshotResult& AddAdministrativeActions(const AdministrativeAction& value) { m_administrativeActions.push_back(value); return *this; } /** *

A list of administrative actions for the file system that are in process or * waiting to be processed. Administrative actions describe changes to the Amazon * FSx system.

*/ inline RestoreVolumeFromSnapshotResult& AddAdministrativeActions(AdministrativeAction&& value) { m_administrativeActions.push_back(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 RestoreVolumeFromSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RestoreVolumeFromSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RestoreVolumeFromSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_volumeId; VolumeLifecycle m_lifecycle; Aws::Vector m_administrativeActions; Aws::String m_requestId; }; } // namespace Model } // namespace FSx } // namespace Aws