/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Provides information about a snapshot's storage tier.

See * Also:

AWS * API Reference

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

The ID of the snapshot.

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

The ID of the snapshot.

*/ inline SnapshotTierStatus& WithSnapshotId(const char* value) { SetSnapshotId(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 SnapshotTierStatus& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *

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

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

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

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

The state of the snapshot.

*/ inline const SnapshotState& GetStatus() const{ return m_status; } /** *

The state of the snapshot.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The state of the snapshot.

*/ inline void SetStatus(const SnapshotState& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The state of the snapshot.

*/ inline void SetStatus(SnapshotState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The state of the snapshot.

*/ inline SnapshotTierStatus& WithStatus(const SnapshotState& value) { SetStatus(value); return *this;} /** *

The state of the snapshot.

*/ inline SnapshotTierStatus& WithStatus(SnapshotState&& value) { SetStatus(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline SnapshotTierStatus& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline SnapshotTierStatus& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the snapshot.

*/ inline SnapshotTierStatus& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The tags that are assigned to the snapshot.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags that are assigned to the snapshot.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags that are assigned to the snapshot.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags that are assigned to the snapshot.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags that are assigned to the snapshot.

*/ inline SnapshotTierStatus& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags that are assigned to the snapshot.

*/ inline SnapshotTierStatus& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags that are assigned to the snapshot.

*/ inline SnapshotTierStatus& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags that are assigned to the snapshot.

*/ inline SnapshotTierStatus& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The storage tier in which the snapshot is stored. standard * indicates that the snapshot is stored in the standard snapshot storage tier and * that it is ready for use. archive indicates that the snapshot is * currently archived and that it must be restored before it can be used.

*/ inline const StorageTier& GetStorageTier() const{ return m_storageTier; } /** *

The storage tier in which the snapshot is stored. standard * indicates that the snapshot is stored in the standard snapshot storage tier and * that it is ready for use. archive indicates that the snapshot is * currently archived and that it must be restored before it can be used.

*/ inline bool StorageTierHasBeenSet() const { return m_storageTierHasBeenSet; } /** *

The storage tier in which the snapshot is stored. standard * indicates that the snapshot is stored in the standard snapshot storage tier and * that it is ready for use. archive indicates that the snapshot is * currently archived and that it must be restored before it can be used.

*/ inline void SetStorageTier(const StorageTier& value) { m_storageTierHasBeenSet = true; m_storageTier = value; } /** *

The storage tier in which the snapshot is stored. standard * indicates that the snapshot is stored in the standard snapshot storage tier and * that it is ready for use. archive indicates that the snapshot is * currently archived and that it must be restored before it can be used.

*/ inline void SetStorageTier(StorageTier&& value) { m_storageTierHasBeenSet = true; m_storageTier = std::move(value); } /** *

The storage tier in which the snapshot is stored. standard * indicates that the snapshot is stored in the standard snapshot storage tier and * that it is ready for use. archive indicates that the snapshot is * currently archived and that it must be restored before it can be used.

*/ inline SnapshotTierStatus& WithStorageTier(const StorageTier& value) { SetStorageTier(value); return *this;} /** *

The storage tier in which the snapshot is stored. standard * indicates that the snapshot is stored in the standard snapshot storage tier and * that it is ready for use. archive indicates that the snapshot is * currently archived and that it must be restored before it can be used.

*/ inline SnapshotTierStatus& WithStorageTier(StorageTier&& value) { SetStorageTier(std::move(value)); return *this;} /** *

The date and time when the last archive or restore process was started.

*/ inline const Aws::Utils::DateTime& GetLastTieringStartTime() const{ return m_lastTieringStartTime; } /** *

The date and time when the last archive or restore process was started.

*/ inline bool LastTieringStartTimeHasBeenSet() const { return m_lastTieringStartTimeHasBeenSet; } /** *

The date and time when the last archive or restore process was started.

*/ inline void SetLastTieringStartTime(const Aws::Utils::DateTime& value) { m_lastTieringStartTimeHasBeenSet = true; m_lastTieringStartTime = value; } /** *

The date and time when the last archive or restore process was started.

*/ inline void SetLastTieringStartTime(Aws::Utils::DateTime&& value) { m_lastTieringStartTimeHasBeenSet = true; m_lastTieringStartTime = std::move(value); } /** *

The date and time when the last archive or restore process was started.

*/ inline SnapshotTierStatus& WithLastTieringStartTime(const Aws::Utils::DateTime& value) { SetLastTieringStartTime(value); return *this;} /** *

The date and time when the last archive or restore process was started.

*/ inline SnapshotTierStatus& WithLastTieringStartTime(Aws::Utils::DateTime&& value) { SetLastTieringStartTime(std::move(value)); return *this;} /** *

The progress of the last archive or restore process, as a percentage.

*/ inline int GetLastTieringProgress() const{ return m_lastTieringProgress; } /** *

The progress of the last archive or restore process, as a percentage.

*/ inline bool LastTieringProgressHasBeenSet() const { return m_lastTieringProgressHasBeenSet; } /** *

The progress of the last archive or restore process, as a percentage.

*/ inline void SetLastTieringProgress(int value) { m_lastTieringProgressHasBeenSet = true; m_lastTieringProgress = value; } /** *

The progress of the last archive or restore process, as a percentage.

*/ inline SnapshotTierStatus& WithLastTieringProgress(int value) { SetLastTieringProgress(value); return *this;} /** *

The status of the last archive or restore process.

*/ inline const TieringOperationStatus& GetLastTieringOperationStatus() const{ return m_lastTieringOperationStatus; } /** *

The status of the last archive or restore process.

*/ inline bool LastTieringOperationStatusHasBeenSet() const { return m_lastTieringOperationStatusHasBeenSet; } /** *

The status of the last archive or restore process.

*/ inline void SetLastTieringOperationStatus(const TieringOperationStatus& value) { m_lastTieringOperationStatusHasBeenSet = true; m_lastTieringOperationStatus = value; } /** *

The status of the last archive or restore process.

*/ inline void SetLastTieringOperationStatus(TieringOperationStatus&& value) { m_lastTieringOperationStatusHasBeenSet = true; m_lastTieringOperationStatus = std::move(value); } /** *

The status of the last archive or restore process.

*/ inline SnapshotTierStatus& WithLastTieringOperationStatus(const TieringOperationStatus& value) { SetLastTieringOperationStatus(value); return *this;} /** *

The status of the last archive or restore process.

*/ inline SnapshotTierStatus& WithLastTieringOperationStatus(TieringOperationStatus&& value) { SetLastTieringOperationStatus(std::move(value)); return *this;} /** *

A message describing the status of the last archive or restore process.

*/ inline const Aws::String& GetLastTieringOperationStatusDetail() const{ return m_lastTieringOperationStatusDetail; } /** *

A message describing the status of the last archive or restore process.

*/ inline bool LastTieringOperationStatusDetailHasBeenSet() const { return m_lastTieringOperationStatusDetailHasBeenSet; } /** *

A message describing the status of the last archive or restore process.

*/ inline void SetLastTieringOperationStatusDetail(const Aws::String& value) { m_lastTieringOperationStatusDetailHasBeenSet = true; m_lastTieringOperationStatusDetail = value; } /** *

A message describing the status of the last archive or restore process.

*/ inline void SetLastTieringOperationStatusDetail(Aws::String&& value) { m_lastTieringOperationStatusDetailHasBeenSet = true; m_lastTieringOperationStatusDetail = std::move(value); } /** *

A message describing the status of the last archive or restore process.

*/ inline void SetLastTieringOperationStatusDetail(const char* value) { m_lastTieringOperationStatusDetailHasBeenSet = true; m_lastTieringOperationStatusDetail.assign(value); } /** *

A message describing the status of the last archive or restore process.

*/ inline SnapshotTierStatus& WithLastTieringOperationStatusDetail(const Aws::String& value) { SetLastTieringOperationStatusDetail(value); return *this;} /** *

A message describing the status of the last archive or restore process.

*/ inline SnapshotTierStatus& WithLastTieringOperationStatusDetail(Aws::String&& value) { SetLastTieringOperationStatusDetail(std::move(value)); return *this;} /** *

A message describing the status of the last archive or restore process.

*/ inline SnapshotTierStatus& WithLastTieringOperationStatusDetail(const char* value) { SetLastTieringOperationStatusDetail(value); return *this;} /** *

The date and time when the last archive process was completed.

*/ inline const Aws::Utils::DateTime& GetArchivalCompleteTime() const{ return m_archivalCompleteTime; } /** *

The date and time when the last archive process was completed.

*/ inline bool ArchivalCompleteTimeHasBeenSet() const { return m_archivalCompleteTimeHasBeenSet; } /** *

The date and time when the last archive process was completed.

*/ inline void SetArchivalCompleteTime(const Aws::Utils::DateTime& value) { m_archivalCompleteTimeHasBeenSet = true; m_archivalCompleteTime = value; } /** *

The date and time when the last archive process was completed.

*/ inline void SetArchivalCompleteTime(Aws::Utils::DateTime&& value) { m_archivalCompleteTimeHasBeenSet = true; m_archivalCompleteTime = std::move(value); } /** *

The date and time when the last archive process was completed.

*/ inline SnapshotTierStatus& WithArchivalCompleteTime(const Aws::Utils::DateTime& value) { SetArchivalCompleteTime(value); return *this;} /** *

The date and time when the last archive process was completed.

*/ inline SnapshotTierStatus& WithArchivalCompleteTime(Aws::Utils::DateTime&& value) { SetArchivalCompleteTime(std::move(value)); return *this;} /** *

Only for archived snapshots that are temporarily restored. Indicates the date * and time when a temporarily restored snapshot will be automatically * re-archived.

*/ inline const Aws::Utils::DateTime& GetRestoreExpiryTime() const{ return m_restoreExpiryTime; } /** *

Only for archived snapshots that are temporarily restored. Indicates the date * and time when a temporarily restored snapshot will be automatically * re-archived.

*/ inline bool RestoreExpiryTimeHasBeenSet() const { return m_restoreExpiryTimeHasBeenSet; } /** *

Only for archived snapshots that are temporarily restored. Indicates the date * and time when a temporarily restored snapshot will be automatically * re-archived.

*/ inline void SetRestoreExpiryTime(const Aws::Utils::DateTime& value) { m_restoreExpiryTimeHasBeenSet = true; m_restoreExpiryTime = value; } /** *

Only for archived snapshots that are temporarily restored. Indicates the date * and time when a temporarily restored snapshot will be automatically * re-archived.

*/ inline void SetRestoreExpiryTime(Aws::Utils::DateTime&& value) { m_restoreExpiryTimeHasBeenSet = true; m_restoreExpiryTime = std::move(value); } /** *

Only for archived snapshots that are temporarily restored. Indicates the date * and time when a temporarily restored snapshot will be automatically * re-archived.

*/ inline SnapshotTierStatus& WithRestoreExpiryTime(const Aws::Utils::DateTime& value) { SetRestoreExpiryTime(value); return *this;} /** *

Only for archived snapshots that are temporarily restored. Indicates the date * and time when a temporarily restored snapshot will be automatically * re-archived.

*/ inline SnapshotTierStatus& WithRestoreExpiryTime(Aws::Utils::DateTime&& value) { SetRestoreExpiryTime(std::move(value)); return *this;} private: Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; Aws::String m_volumeId; bool m_volumeIdHasBeenSet = false; SnapshotState m_status; bool m_statusHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; StorageTier m_storageTier; bool m_storageTierHasBeenSet = false; Aws::Utils::DateTime m_lastTieringStartTime; bool m_lastTieringStartTimeHasBeenSet = false; int m_lastTieringProgress; bool m_lastTieringProgressHasBeenSet = false; TieringOperationStatus m_lastTieringOperationStatus; bool m_lastTieringOperationStatusHasBeenSet = false; Aws::String m_lastTieringOperationStatusDetail; bool m_lastTieringOperationStatusDetailHasBeenSet = false; Aws::Utils::DateTime m_archivalCompleteTime; bool m_archivalCompleteTimeHasBeenSet = false; Aws::Utils::DateTime m_restoreExpiryTime; bool m_restoreExpiryTimeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws