AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/Array.h>
11#include <aws/kinesis/model/EncryptionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Kinesis
25{
26namespace Model
27{
28
35 class Record
36 {
37 public:
38 AWS_KINESIS_API Record();
39 AWS_KINESIS_API Record(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KINESIS_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
49 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
50 inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
51 inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
52 inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
53 inline Record& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
54 inline Record& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
55 inline Record& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetApproximateArrivalTimestamp() const{ return m_approximateArrivalTimestamp; }
63 inline bool ApproximateArrivalTimestampHasBeenSet() const { return m_approximateArrivalTimestampHasBeenSet; }
64 inline void SetApproximateArrivalTimestamp(const Aws::Utils::DateTime& value) { m_approximateArrivalTimestampHasBeenSet = true; m_approximateArrivalTimestamp = value; }
65 inline void SetApproximateArrivalTimestamp(Aws::Utils::DateTime&& value) { m_approximateArrivalTimestampHasBeenSet = true; m_approximateArrivalTimestamp = std::move(value); }
69
71
78 inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
79 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
80 inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
81 inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
82 inline Record& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
83 inline Record& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetPartitionKey() const{ return m_partitionKey; }
91 inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; }
92 inline void SetPartitionKey(const Aws::String& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; }
93 inline void SetPartitionKey(Aws::String&& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = std::move(value); }
94 inline void SetPartitionKey(const char* value) { m_partitionKeyHasBeenSet = true; m_partitionKey.assign(value); }
95 inline Record& WithPartitionKey(const Aws::String& value) { SetPartitionKey(value); return *this;}
96 inline Record& WithPartitionKey(Aws::String&& value) { SetPartitionKey(std::move(value)); return *this;}
97 inline Record& WithPartitionKey(const char* value) { SetPartitionKey(value); return *this;}
99
101
108 inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
109 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
110 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
111 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
112 inline Record& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
113 inline Record& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_sequenceNumber;
118 bool m_sequenceNumberHasBeenSet = false;
119
120 Aws::Utils::DateTime m_approximateArrivalTimestamp;
121 bool m_approximateArrivalTimestampHasBeenSet = false;
122
124 bool m_dataHasBeenSet = false;
125
126 Aws::String m_partitionKey;
127 bool m_partitionKeyHasBeenSet = false;
128
129 EncryptionType m_encryptionType;
130 bool m_encryptionTypeHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Kinesis
135} // namespace Aws
Record & WithPartitionKey(const char *value)
Definition Record.h:97
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::ByteBuffer & GetData() const
Definition Record.h:78
Record & WithData(Aws::Utils::ByteBuffer &&value)
Definition Record.h:83
const EncryptionType & GetEncryptionType() const
Definition Record.h:108
Record & WithSequenceNumber(Aws::String &&value)
Definition Record.h:54
void SetSequenceNumber(const char *value)
Definition Record.h:52
void SetEncryptionType(EncryptionType &&value)
Definition Record.h:111
Record & WithSequenceNumber(const char *value)
Definition Record.h:55
void SetEncryptionType(const EncryptionType &value)
Definition Record.h:110
Record & WithEncryptionType(const EncryptionType &value)
Definition Record.h:112
void SetPartitionKey(const char *value)
Definition Record.h:94
const Aws::Utils::DateTime & GetApproximateArrivalTimestamp() const
Definition Record.h:62
AWS_KINESIS_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESIS_API Record(Aws::Utils::Json::JsonView jsonValue)
Record & WithSequenceNumber(const Aws::String &value)
Definition Record.h:53
const Aws::String & GetPartitionKey() const
Definition Record.h:90
Record & WithPartitionKey(const Aws::String &value)
Definition Record.h:95
bool EncryptionTypeHasBeenSet() const
Definition Record.h:109
bool SequenceNumberHasBeenSet() const
Definition Record.h:49
Record & WithApproximateArrivalTimestamp(const Aws::Utils::DateTime &value)
Definition Record.h:66
void SetSequenceNumber(Aws::String &&value)
Definition Record.h:51
Record & WithData(const Aws::Utils::ByteBuffer &value)
Definition Record.h:82
Record & WithPartitionKey(Aws::String &&value)
Definition Record.h:96
void SetApproximateArrivalTimestamp(Aws::Utils::DateTime &&value)
Definition Record.h:65
void SetData(const Aws::Utils::ByteBuffer &value)
Definition Record.h:80
void SetData(Aws::Utils::ByteBuffer &&value)
Definition Record.h:81
Record & WithEncryptionType(EncryptionType &&value)
Definition Record.h:113
void SetSequenceNumber(const Aws::String &value)
Definition Record.h:50
bool PartitionKeyHasBeenSet() const
Definition Record.h:91
void SetPartitionKey(Aws::String &&value)
Definition Record.h:93
const Aws::String & GetSequenceNumber() const
Definition Record.h:48
bool ApproximateArrivalTimestampHasBeenSet() const
Definition Record.h:63
void SetPartitionKey(const Aws::String &value)
Definition Record.h:92
void SetApproximateArrivalTimestamp(const Aws::Utils::DateTime &value)
Definition Record.h:64
Record & WithApproximateArrivalTimestamp(Aws::Utils::DateTime &&value)
Definition Record.h:67
bool DataHasBeenSet() const
Definition Record.h:79
AWS_KINESIS_API Record()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue