/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EBS { namespace Model { class PutSnapshotBlockResult { public: AWS_EBS_API PutSnapshotBlockResult(); AWS_EBS_API PutSnapshotBlockResult(const Aws::AmazonWebServiceResult& result); AWS_EBS_API PutSnapshotBlockResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The SHA256 checksum generated for the block data by Amazon EBS.

*/ inline const Aws::String& GetChecksum() const{ return m_checksum; } /** *

The SHA256 checksum generated for the block data by Amazon EBS.

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

The SHA256 checksum generated for the block data by Amazon EBS.

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

The SHA256 checksum generated for the block data by Amazon EBS.

*/ inline void SetChecksum(const char* value) { m_checksum.assign(value); } /** *

The SHA256 checksum generated for the block data by Amazon EBS.

*/ inline PutSnapshotBlockResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} /** *

The SHA256 checksum generated for the block data by Amazon EBS.

*/ inline PutSnapshotBlockResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} /** *

The SHA256 checksum generated for the block data by Amazon EBS.

*/ inline PutSnapshotBlockResult& WithChecksum(const char* value) { SetChecksum(value); return *this;} /** *

The algorithm used by Amazon EBS to generate the checksum.

*/ inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; } /** *

The algorithm used by Amazon EBS to generate the checksum.

*/ inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithm = value; } /** *

The algorithm used by Amazon EBS to generate the checksum.

*/ inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithm = std::move(value); } /** *

The algorithm used by Amazon EBS to generate the checksum.

*/ inline PutSnapshotBlockResult& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;} /** *

The algorithm used by Amazon EBS to generate the checksum.

*/ inline PutSnapshotBlockResult& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(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 PutSnapshotBlockResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutSnapshotBlockResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutSnapshotBlockResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_checksum; ChecksumAlgorithm m_checksumAlgorithm; Aws::String m_requestId; }; } // namespace Model } // namespace EBS } // namespace Aws