/** * 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 { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Contains information about the errors that occurred when disabling fast * snapshot restores.

See Also:

AWS * API Reference

*/ class DisableFastSnapshotRestoreErrorItem { public: AWS_EC2_API DisableFastSnapshotRestoreErrorItem(); AWS_EC2_API DisableFastSnapshotRestoreErrorItem(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DisableFastSnapshotRestoreErrorItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the snapshot.

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

The ID of the snapshot.

*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *

The ID of the snapshot.

*/ inline DisableFastSnapshotRestoreErrorItem& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The ID of the snapshot.

*/ inline DisableFastSnapshotRestoreErrorItem& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

The ID of the snapshot.

*/ inline DisableFastSnapshotRestoreErrorItem& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *

The errors.

*/ inline const Aws::Vector& GetFastSnapshotRestoreStateErrors() const{ return m_fastSnapshotRestoreStateErrors; } /** *

The errors.

*/ inline bool FastSnapshotRestoreStateErrorsHasBeenSet() const { return m_fastSnapshotRestoreStateErrorsHasBeenSet; } /** *

The errors.

*/ inline void SetFastSnapshotRestoreStateErrors(const Aws::Vector& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors = value; } /** *

The errors.

*/ inline void SetFastSnapshotRestoreStateErrors(Aws::Vector&& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors = std::move(value); } /** *

The errors.

*/ inline DisableFastSnapshotRestoreErrorItem& WithFastSnapshotRestoreStateErrors(const Aws::Vector& value) { SetFastSnapshotRestoreStateErrors(value); return *this;} /** *

The errors.

*/ inline DisableFastSnapshotRestoreErrorItem& WithFastSnapshotRestoreStateErrors(Aws::Vector&& value) { SetFastSnapshotRestoreStateErrors(std::move(value)); return *this;} /** *

The errors.

*/ inline DisableFastSnapshotRestoreErrorItem& AddFastSnapshotRestoreStateErrors(const DisableFastSnapshotRestoreStateErrorItem& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors.push_back(value); return *this; } /** *

The errors.

*/ inline DisableFastSnapshotRestoreErrorItem& AddFastSnapshotRestoreStateErrors(DisableFastSnapshotRestoreStateErrorItem&& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors.push_back(std::move(value)); return *this; } private: Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; Aws::Vector m_fastSnapshotRestoreStateErrors; bool m_fastSnapshotRestoreStateErrorsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws