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

Information about a snapshot that is currently in the Recycle * Bin.

See Also:

AWS * API Reference

*/ class SnapshotRecycleBinInfo { public: AWS_EC2_API SnapshotRecycleBinInfo(); AWS_EC2_API SnapshotRecycleBinInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API SnapshotRecycleBinInfo& 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 SnapshotRecycleBinInfo& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The ID of the snapshot.

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

The ID of the snapshot.

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

The date and time when the snaphsot entered the Recycle Bin.

*/ inline const Aws::Utils::DateTime& GetRecycleBinEnterTime() const{ return m_recycleBinEnterTime; } /** *

The date and time when the snaphsot entered the Recycle Bin.

*/ inline bool RecycleBinEnterTimeHasBeenSet() const { return m_recycleBinEnterTimeHasBeenSet; } /** *

The date and time when the snaphsot entered the Recycle Bin.

*/ inline void SetRecycleBinEnterTime(const Aws::Utils::DateTime& value) { m_recycleBinEnterTimeHasBeenSet = true; m_recycleBinEnterTime = value; } /** *

The date and time when the snaphsot entered the Recycle Bin.

*/ inline void SetRecycleBinEnterTime(Aws::Utils::DateTime&& value) { m_recycleBinEnterTimeHasBeenSet = true; m_recycleBinEnterTime = std::move(value); } /** *

The date and time when the snaphsot entered the Recycle Bin.

*/ inline SnapshotRecycleBinInfo& WithRecycleBinEnterTime(const Aws::Utils::DateTime& value) { SetRecycleBinEnterTime(value); return *this;} /** *

The date and time when the snaphsot entered the Recycle Bin.

*/ inline SnapshotRecycleBinInfo& WithRecycleBinEnterTime(Aws::Utils::DateTime&& value) { SetRecycleBinEnterTime(std::move(value)); return *this;} /** *

The date and time when the snapshot is to be permanently deleted from the * Recycle Bin.

*/ inline const Aws::Utils::DateTime& GetRecycleBinExitTime() const{ return m_recycleBinExitTime; } /** *

The date and time when the snapshot is to be permanently deleted from the * Recycle Bin.

*/ inline bool RecycleBinExitTimeHasBeenSet() const { return m_recycleBinExitTimeHasBeenSet; } /** *

The date and time when the snapshot is to be permanently deleted from the * Recycle Bin.

*/ inline void SetRecycleBinExitTime(const Aws::Utils::DateTime& value) { m_recycleBinExitTimeHasBeenSet = true; m_recycleBinExitTime = value; } /** *

The date and time when the snapshot is to be permanently deleted from the * Recycle Bin.

*/ inline void SetRecycleBinExitTime(Aws::Utils::DateTime&& value) { m_recycleBinExitTimeHasBeenSet = true; m_recycleBinExitTime = std::move(value); } /** *

The date and time when the snapshot is to be permanently deleted from the * Recycle Bin.

*/ inline SnapshotRecycleBinInfo& WithRecycleBinExitTime(const Aws::Utils::DateTime& value) { SetRecycleBinExitTime(value); return *this;} /** *

The date and time when the snapshot is to be permanently deleted from the * Recycle Bin.

*/ inline SnapshotRecycleBinInfo& WithRecycleBinExitTime(Aws::Utils::DateTime&& value) { SetRecycleBinExitTime(std::move(value)); return *this;} /** *

The description for the snapshot.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the snapshot.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for the snapshot.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description for the snapshot.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description for the snapshot.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description for the snapshot.

*/ inline SnapshotRecycleBinInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the snapshot.

*/ inline SnapshotRecycleBinInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the snapshot.

*/ inline SnapshotRecycleBinInfo& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ID of the volume from which the snapshot was created.

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

The ID of the volume from which the snapshot was created.

*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *

The ID of the volume from which the snapshot was created.

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

The ID of the volume from which the snapshot was created.

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

The ID of the volume from which the snapshot was created.

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

The ID of the volume from which the snapshot was created.

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

The ID of the volume from which the snapshot was created.

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

The ID of the volume from which the snapshot was created.

*/ inline SnapshotRecycleBinInfo& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} private: Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; Aws::Utils::DateTime m_recycleBinEnterTime; bool m_recycleBinEnterTimeHasBeenSet = false; Aws::Utils::DateTime m_recycleBinExitTime; bool m_recycleBinExitTimeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_volumeId; bool m_volumeIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws