/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace EBS { namespace Model { class GetSnapshotBlockResult { public: AWS_EBS_API GetSnapshotBlockResult(); //We have to define these because Microsoft doesn't auto generate them AWS_EBS_API GetSnapshotBlockResult(GetSnapshotBlockResult&&); AWS_EBS_API GetSnapshotBlockResult& operator=(GetSnapshotBlockResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetSnapshotBlockResult(const GetSnapshotBlockResult&) = delete; GetSnapshotBlockResult& operator=(const GetSnapshotBlockResult&) = delete; AWS_EBS_API GetSnapshotBlockResult(Aws::AmazonWebServiceResult&& result); AWS_EBS_API GetSnapshotBlockResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The size of the data in the block.

*/ inline int GetDataLength() const{ return m_dataLength; } /** *

The size of the data in the block.

*/ inline void SetDataLength(int value) { m_dataLength = value; } /** *

The size of the data in the block.

*/ inline GetSnapshotBlockResult& WithDataLength(int value) { SetDataLength(value); return *this;} /** *

The data content of the block.

*/ inline Aws::IOStream& GetBlockData() const { return m_blockData.GetUnderlyingStream(); } /** *

The data content of the block.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_blockData = Aws::Utils::Stream::ResponseStream(body); } /** *

The checksum generated for the block, which is Base64 encoded.

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

The checksum generated for the block, which is Base64 encoded.

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

The checksum generated for the block, which is Base64 encoded.

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

The checksum generated for the block, which is Base64 encoded.

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

The checksum generated for the block, which is Base64 encoded.

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

The checksum generated for the block, which is Base64 encoded.

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

The checksum generated for the block, which is Base64 encoded.

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

The algorithm used to generate the checksum for the block, such as * SHA256.

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

The algorithm used to generate the checksum for the block, such as * SHA256.

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

The algorithm used to generate the checksum for the block, such as * SHA256.

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

The algorithm used to generate the checksum for the block, such as * SHA256.

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

The algorithm used to generate the checksum for the block, such as * SHA256.

*/ inline GetSnapshotBlockResult& 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 GetSnapshotBlockResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSnapshotBlockResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSnapshotBlockResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_dataLength; Aws::Utils::Stream::ResponseStream m_blockData; Aws::String m_checksum; ChecksumAlgorithm m_checksumAlgorithm; Aws::String m_requestId; }; } // namespace Model } // namespace EBS } // namespace Aws