AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/firehose/Firehose_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Firehose {
20namespace Model {
21
27class Record {
28 public:
29 AWS_FIREHOSE_API Record() = default;
30 AWS_FIREHOSE_API Record(Aws::Utils::Json::JsonView jsonValue);
31 AWS_FIREHOSE_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
40 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
41 template <typename DataT = Aws::Utils::ByteBuffer>
42 void SetData(DataT&& value) {
43 m_dataHasBeenSet = true;
44 m_data = std::forward<DataT>(value);
45 }
46 template <typename DataT = Aws::Utils::ByteBuffer>
47 Record& WithData(DataT&& value) {
48 SetData(std::forward<DataT>(value));
49 return *this;
50 }
52 private:
54 bool m_dataHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace Firehose
59} // namespace Aws
Record & WithData(DataT &&value)
Definition Record.h:47
AWS_FIREHOSE_API Record(Aws::Utils::Json::JsonView jsonValue)
void SetData(DataT &&value)
Definition Record.h:42
const Aws::Utils::ByteBuffer & GetData() const
Definition Record.h:39
bool DataHasBeenSet() const
Definition Record.h:40
AWS_FIREHOSE_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIREHOSE_API Record()=default
Aws::Utils::Json::JsonValue JsonValue