/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about a snapshot's storage tier.See
* Also:
AWS
* API Reference
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::VectorThe 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::VectorThe tags that are assigned to the snapshot.
*/ inline void SetTags(Aws::VectorThe tags that are assigned to the snapshot.
*/ inline SnapshotTierStatus& WithTags(const Aws::VectorThe tags that are assigned to the snapshot.
*/ inline SnapshotTierStatus& WithTags(Aws::VectorThe 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.
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.
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.
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.
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.
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.
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