AWS SDK for C++  1.9.153
AWS SDK for C++
Record.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/core/utils/Array.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Firehose
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Record();
38 
39 
44  inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
45 
50  inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
51 
56  inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
57 
62  inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
63 
68  inline Record& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
69 
74  inline Record& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
75 
76  private:
77 
79  bool m_dataHasBeenSet;
80  };
81 
82 } // namespace Model
83 } // namespace Firehose
84 } // namespace Aws
Aws::Firehose::Model::Record::SetData
void SetData(const Aws::Utils::ByteBuffer &value)
Definition: Record.h:56
Aws::Firehose::Model::Record::GetData
const Aws::Utils::ByteBuffer & GetData() const
Definition: Record.h:44
Aws::Firehose::Model::Record::operator=
Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Firehose::Model::Record::SetData
void SetData(Aws::Utils::ByteBuffer &&value)
Definition: Record.h:62
Aws::Firehose::Model::Record::WithData
Record & WithData(const Aws::Utils::ByteBuffer &value)
Definition: Record.h:68
AWS_FIREHOSE_API
#define AWS_FIREHOSE_API
Definition: Firehose_EXPORTS.h:28
Aws::Firehose::Model::Record::Record
Record()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Array< unsigned char >
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Firehose::Model::Record::DataHasBeenSet
bool DataHasBeenSet() const
Definition: Record.h:50
Firehose_EXPORTS.h
Aws::Firehose::Model::Record
Definition: Record.h:32
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Firehose::Model::Record::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Array.h
Aws::Firehose::Model::Record::Record
Record(Aws::Utils::Json::JsonView jsonValue)
Aws::Firehose::Model::Record::WithData
Record & WithData(Aws::Utils::ByteBuffer &&value)
Definition: Record.h:74