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

A JSON object containing the following fields:

See Also:

AWS * API Reference

*/ class CreateSnapshotResult { public: AWS_STORAGEGATEWAY_API CreateSnapshotResult(); AWS_STORAGEGATEWAY_API CreateSnapshotResult(const Aws::AmazonWebServiceResult& result); AWS_STORAGEGATEWAY_API CreateSnapshotResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the volume of which the snapshot was * taken.

*/ inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; } /** *

The Amazon Resource Name (ARN) of the volume of which the snapshot was * taken.

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

The Amazon Resource Name (ARN) of the volume of which the snapshot was * taken.

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

The Amazon Resource Name (ARN) of the volume of which the snapshot was * taken.

*/ inline void SetVolumeARN(const char* value) { m_volumeARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the volume of which the snapshot was * taken.

*/ inline CreateSnapshotResult& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the volume of which the snapshot was * taken.

*/ inline CreateSnapshotResult& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the volume of which the snapshot was * taken.

*/ inline CreateSnapshotResult& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;} /** *

The snapshot ID that is used to refer to the snapshot in future operations * such as describing snapshots (Amazon Elastic Compute Cloud API * DescribeSnapshots) or creating a volume from a snapshot * (CreateStorediSCSIVolume).

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

The snapshot ID that is used to refer to the snapshot in future operations * such as describing snapshots (Amazon Elastic Compute Cloud API * DescribeSnapshots) or creating a volume from a snapshot * (CreateStorediSCSIVolume).

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

The snapshot ID that is used to refer to the snapshot in future operations * such as describing snapshots (Amazon Elastic Compute Cloud API * DescribeSnapshots) or creating a volume from a snapshot * (CreateStorediSCSIVolume).

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

The snapshot ID that is used to refer to the snapshot in future operations * such as describing snapshots (Amazon Elastic Compute Cloud API * DescribeSnapshots) or creating a volume from a snapshot * (CreateStorediSCSIVolume).

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

The snapshot ID that is used to refer to the snapshot in future operations * such as describing snapshots (Amazon Elastic Compute Cloud API * DescribeSnapshots) or creating a volume from a snapshot * (CreateStorediSCSIVolume).

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

The snapshot ID that is used to refer to the snapshot in future operations * such as describing snapshots (Amazon Elastic Compute Cloud API * DescribeSnapshots) or creating a volume from a snapshot * (CreateStorediSCSIVolume).

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

The snapshot ID that is used to refer to the snapshot in future operations * such as describing snapshots (Amazon Elastic Compute Cloud API * DescribeSnapshots) or creating a volume from a snapshot * (CreateStorediSCSIVolume).

*/ inline CreateSnapshotResult& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_volumeARN; Aws::String m_snapshotId; Aws::String m_requestId; }; } // namespace Model } // namespace StorageGateway } // namespace Aws