/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a snapshot.See Also:
AWS
* API Reference
Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline SnapshotInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline SnapshotInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *Description specified by the CreateSnapshotRequest that has been applied to * all snapshots.
*/ inline SnapshotInfo& WithDescription(const char* value) { SetDescription(value); return *this;} /** *Tags associated with this snapshot.
*/ inline const Aws::VectorTags associated with this snapshot.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Tags associated with this snapshot.
*/ inline void SetTags(const Aws::VectorTags associated with this snapshot.
*/ inline void SetTags(Aws::VectorTags associated with this snapshot.
*/ inline SnapshotInfo& WithTags(const Aws::VectorTags associated with this snapshot.
*/ inline SnapshotInfo& WithTags(Aws::VectorTags associated with this snapshot.
*/ inline SnapshotInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Tags associated with this snapshot.
*/ inline SnapshotInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *Indicates whether the snapshot is encrypted.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *Indicates whether the snapshot is encrypted.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *Indicates whether the snapshot is encrypted.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *Indicates whether the snapshot is encrypted.
*/ inline SnapshotInfo& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *Source volume from which this snapshot was created.
*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *Source volume from which this snapshot was created.
*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *Source volume from which this snapshot was created.
*/ inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; } /** *Source volume from which this snapshot was created.
*/ inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); } /** *Source volume from which this snapshot was created.
*/ inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); } /** *Source volume from which this snapshot was created.
*/ inline SnapshotInfo& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *Source volume from which this snapshot was created.
*/ inline SnapshotInfo& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *Source volume from which this snapshot was created.
*/ inline SnapshotInfo& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} /** *Current state of the snapshot.
*/ inline const SnapshotState& GetState() const{ return m_state; } /** *Current state of the snapshot.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *Current state of the snapshot.
*/ inline void SetState(const SnapshotState& value) { m_stateHasBeenSet = true; m_state = value; } /** *Current state of the snapshot.
*/ inline void SetState(SnapshotState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *Current state of the snapshot.
*/ inline SnapshotInfo& WithState(const SnapshotState& value) { SetState(value); return *this;} /** *Current state of the snapshot.
*/ inline SnapshotInfo& WithState(SnapshotState&& value) { SetState(std::move(value)); return *this;} /** *Size of the volume from which this snapshot was created.
*/ inline int GetVolumeSize() const{ return m_volumeSize; } /** *Size of the volume from which this snapshot was created.
*/ inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; } /** *Size of the volume from which this snapshot was created.
*/ inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; } /** *Size of the volume from which this snapshot was created.
*/ inline SnapshotInfo& WithVolumeSize(int value) { SetVolumeSize(value); return *this;} /** *Time this snapshot was started. This is the same for all snapshots initiated * by the same request.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *Time this snapshot was started. This is the same for all snapshots initiated * by the same request.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *Time this snapshot was started. This is the same for all snapshots initiated * by the same request.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *Time this snapshot was started. This is the same for all snapshots initiated * by the same request.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *Time this snapshot was started. This is the same for all snapshots initiated * by the same request.
*/ inline SnapshotInfo& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *Time this snapshot was started. This is the same for all snapshots initiated * by the same request.
*/ inline SnapshotInfo& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *Progress this snapshot has made towards completing.
*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *Progress this snapshot has made towards completing.
*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *Progress this snapshot has made towards completing.
*/ inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; } /** *Progress this snapshot has made towards completing.
*/ inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); } /** *Progress this snapshot has made towards completing.
*/ inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); } /** *Progress this snapshot has made towards completing.
*/ inline SnapshotInfo& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *Progress this snapshot has made towards completing.
*/ inline SnapshotInfo& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *Progress this snapshot has made towards completing.
*/ inline SnapshotInfo& WithProgress(const char* value) { SetProgress(value); return *this;} /** *Account id used when creating this snapshot.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *Account id used when creating this snapshot.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *Account id used when creating this snapshot.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *Account id used when creating this snapshot.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *Account id used when creating this snapshot.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *Account id used when creating this snapshot.
*/ inline SnapshotInfo& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *Account id used when creating this snapshot.
*/ inline SnapshotInfo& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *Account id used when creating this snapshot.
*/ inline SnapshotInfo& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *Snapshot id that can be used to describe this snapshot.
*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *Snapshot id that can be used to describe this snapshot.
*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *Snapshot id that can be used to describe this snapshot.
*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *Snapshot id that can be used to describe this snapshot.
*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *Snapshot id that can be used to describe this snapshot.
*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *Snapshot id that can be used to describe this snapshot.
*/ inline SnapshotInfo& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *Snapshot id that can be used to describe this snapshot.
*/ inline SnapshotInfo& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *Snapshot id that can be used to describe this snapshot.
*/ inline SnapshotInfo& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; } /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; } /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; } /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); } /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); } /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline SnapshotInfo& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;} /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline SnapshotInfo& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;} /** *The ARN of the Outpost on which the snapshot is stored. For more information, * see Amazon * EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User * Guide.
*/ inline SnapshotInfo& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *Reserved for future use.
*/ inline const SSEType& GetSseType() const{ return m_sseType; } /** *Reserved for future use.
*/ inline bool SseTypeHasBeenSet() const { return m_sseTypeHasBeenSet; } /** *Reserved for future use.
*/ inline void SetSseType(const SSEType& value) { m_sseTypeHasBeenSet = true; m_sseType = value; } /** *Reserved for future use.
*/ inline void SetSseType(SSEType&& value) { m_sseTypeHasBeenSet = true; m_sseType = std::move(value); } /** *Reserved for future use.
*/ inline SnapshotInfo& WithSseType(const SSEType& value) { SetSseType(value); return *this;} /** *Reserved for future use.
*/ inline SnapshotInfo& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector