/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class EnableFastSnapshotRestoresResponse { public: AWS_EC2_API EnableFastSnapshotRestoresResponse(); AWS_EC2_API EnableFastSnapshotRestoresResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API EnableFastSnapshotRestoresResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the snapshots for which fast snapshot restores were * successfully enabled.

*/ inline const Aws::Vector& GetSuccessful() const{ return m_successful; } /** *

Information about the snapshots for which fast snapshot restores were * successfully enabled.

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

Information about the snapshots for which fast snapshot restores were * successfully enabled.

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

Information about the snapshots for which fast snapshot restores were * successfully enabled.

*/ inline EnableFastSnapshotRestoresResponse& WithSuccessful(const Aws::Vector& value) { SetSuccessful(value); return *this;} /** *

Information about the snapshots for which fast snapshot restores were * successfully enabled.

*/ inline EnableFastSnapshotRestoresResponse& WithSuccessful(Aws::Vector&& value) { SetSuccessful(std::move(value)); return *this;} /** *

Information about the snapshots for which fast snapshot restores were * successfully enabled.

*/ inline EnableFastSnapshotRestoresResponse& AddSuccessful(const EnableFastSnapshotRestoreSuccessItem& value) { m_successful.push_back(value); return *this; } /** *

Information about the snapshots for which fast snapshot restores were * successfully enabled.

*/ inline EnableFastSnapshotRestoresResponse& AddSuccessful(EnableFastSnapshotRestoreSuccessItem&& value) { m_successful.push_back(std::move(value)); return *this; } /** *

Information about the snapshots for which fast snapshot restores could not be * enabled.

*/ inline const Aws::Vector& GetUnsuccessful() const{ return m_unsuccessful; } /** *

Information about the snapshots for which fast snapshot restores could not be * enabled.

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

Information about the snapshots for which fast snapshot restores could not be * enabled.

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

Information about the snapshots for which fast snapshot restores could not be * enabled.

*/ inline EnableFastSnapshotRestoresResponse& WithUnsuccessful(const Aws::Vector& value) { SetUnsuccessful(value); return *this;} /** *

Information about the snapshots for which fast snapshot restores could not be * enabled.

*/ inline EnableFastSnapshotRestoresResponse& WithUnsuccessful(Aws::Vector&& value) { SetUnsuccessful(std::move(value)); return *this;} /** *

Information about the snapshots for which fast snapshot restores could not be * enabled.

*/ inline EnableFastSnapshotRestoresResponse& AddUnsuccessful(const EnableFastSnapshotRestoreErrorItem& value) { m_unsuccessful.push_back(value); return *this; } /** *

Information about the snapshots for which fast snapshot restores could not be * enabled.

*/ inline EnableFastSnapshotRestoresResponse& AddUnsuccessful(EnableFastSnapshotRestoreErrorItem&& value) { m_unsuccessful.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline EnableFastSnapshotRestoresResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline EnableFastSnapshotRestoresResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_successful; Aws::Vector m_unsuccessful; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws