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

The unit of data in a delivery stream.

See Also:

AWS API * Reference

*/ class AWS_FIREHOSE_API Record { public: Record(); Record(Aws::Utils::Json::JsonView jsonValue); Record& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The data blob, which is base64-encoded when the blob is serialized. The * maximum size of the data blob, before base64-encoding, is 1,000 KiB.

*/ inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; } /** *

The data blob, which is base64-encoded when the blob is serialized. The * maximum size of the data blob, before base64-encoding, is 1,000 KiB.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

The data blob, which is base64-encoded when the blob is serialized. The * maximum size of the data blob, before base64-encoding, is 1,000 KiB.

*/ inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; } /** *

The data blob, which is base64-encoded when the blob is serialized. The * maximum size of the data blob, before base64-encoding, is 1,000 KiB.

*/ inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

The data blob, which is base64-encoded when the blob is serialized. The * maximum size of the data blob, before base64-encoding, is 1,000 KiB.

*/ inline Record& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;} /** *

The data blob, which is base64-encoded when the blob is serialized. The * maximum size of the data blob, before base64-encoding, is 1,000 KiB.

*/ inline Record& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;} private: Aws::Utils::ByteBuffer m_data; bool m_dataHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws