/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class RestoreSnapshotFromRecycleBinResponse { public: AWS_EC2_API RestoreSnapshotFromRecycleBinResponse(); AWS_EC2_API RestoreSnapshotFromRecycleBinResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API RestoreSnapshotFromRecycleBinResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the snapshot.

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

The ID of the snapshot.

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

The ID of the snapshot.

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

The ID of the snapshot.

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

The ID of the snapshot.

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

The ID of the snapshot.

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

The ID of the snapshot.

*/ inline RestoreSnapshotFromRecycleBinResponse& 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 void SetOutpostArn(const Aws::String& value) { 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_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_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 RestoreSnapshotFromRecycleBinResponse& 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 RestoreSnapshotFromRecycleBinResponse& 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 RestoreSnapshotFromRecycleBinResponse& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *

The description for the snapshot.

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

The description for the snapshot.

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

The description for the snapshot.

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

The description for the snapshot.

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

The description for the snapshot.

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

The description for the snapshot.

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

The description for the snapshot.

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

Indicates whether the snapshot is encrypted.

*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *

Indicates whether the snapshot is encrypted.

*/ inline void SetEncrypted(bool value) { m_encrypted = value; } /** *

Indicates whether the snapshot is encrypted.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The progress of the snapshot, as a percentage.

*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *

The progress of the snapshot, as a percentage.

*/ inline void SetProgress(const Aws::String& value) { m_progress = value; } /** *

The progress of the snapshot, as a percentage.

*/ inline void SetProgress(Aws::String&& value) { m_progress = std::move(value); } /** *

The progress of the snapshot, as a percentage.

*/ inline void SetProgress(const char* value) { m_progress.assign(value); } /** *

The progress of the snapshot, as a percentage.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *

The progress of the snapshot, as a percentage.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *

The progress of the snapshot, as a percentage.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithProgress(const char* value) { SetProgress(value); return *this;} /** *

The time stamp when the snapshot was initiated.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time stamp when the snapshot was initiated.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

The time stamp when the snapshot was initiated.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

The time stamp when the snapshot was initiated.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time stamp when the snapshot was initiated.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The state of the snapshot.

*/ inline const SnapshotState& GetState() const{ return m_state; } /** *

The state of the snapshot.

*/ inline void SetState(const SnapshotState& value) { m_state = value; } /** *

The state of the snapshot.

*/ inline void SetState(SnapshotState&& value) { m_state = std::move(value); } /** *

The state of the snapshot.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithState(const SnapshotState& value) { SetState(value); return *this;} /** *

The state of the snapshot.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithState(SnapshotState&& value) { SetState(std::move(value)); return *this;} /** *

The ID of the volume that was used to create the snapshot.

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

The ID of the volume that was used to create the snapshot.

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

The ID of the volume that was used to create the snapshot.

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

The ID of the volume that was used to create the snapshot.

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

The ID of the volume that was used to create the snapshot.

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

The ID of the volume that was used to create the snapshot.

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

The ID of the volume that was used to create the snapshot.

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

The size of the volume, in GiB.

*/ inline int GetVolumeSize() const{ return m_volumeSize; } /** *

The size of the volume, in GiB.

*/ inline void SetVolumeSize(int value) { m_volumeSize = value; } /** *

The size of the volume, in GiB.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithVolumeSize(int value) { SetVolumeSize(value); return *this;} /** *

Reserved for future use.

*/ inline const SSEType& GetSseType() const{ return m_sseType; } /** *

Reserved for future use.

*/ inline void SetSseType(const SSEType& value) { m_sseType = value; } /** *

Reserved for future use.

*/ inline void SetSseType(SSEType&& value) { m_sseType = std::move(value); } /** *

Reserved for future use.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithSseType(const SSEType& value) { SetSseType(value); return *this;} /** *

Reserved for future use.

*/ inline RestoreSnapshotFromRecycleBinResponse& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline RestoreSnapshotFromRecycleBinResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline RestoreSnapshotFromRecycleBinResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_snapshotId; Aws::String m_outpostArn; Aws::String m_description; bool m_encrypted; Aws::String m_ownerId; Aws::String m_progress; Aws::Utils::DateTime m_startTime; SnapshotState m_state; Aws::String m_volumeId; int m_volumeSize; SSEType m_sseType; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws