/** * 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 AWS_EBS_API PutSnapshotBlockResult { public: PutSnapshotBlockResult(); PutSnapshotBlockResult(const Aws::AmazonWebServiceResult& result); 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;} private: Aws::String m_checksum; ChecksumAlgorithm m_checksumAlgorithm; }; } // namespace Model } // namespace EBS } // namespace Aws