AWS SDK for C++  1.9.103
AWS SDK for C++
Record.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Kinesis
25 {
26 namespace Model
27 {
28 
36  {
37  public:
38  Record();
42 
43 
47  inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
48 
52  inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
53 
57  inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
58 
62  inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
63 
67  inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
68 
72  inline Record& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
73 
77  inline Record& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
78 
82  inline Record& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
83 
84 
88  inline const Aws::Utils::DateTime& GetApproximateArrivalTimestamp() const{ return m_approximateArrivalTimestamp; }
89 
93  inline bool ApproximateArrivalTimestampHasBeenSet() const { return m_approximateArrivalTimestampHasBeenSet; }
94 
98  inline void SetApproximateArrivalTimestamp(const Aws::Utils::DateTime& value) { m_approximateArrivalTimestampHasBeenSet = true; m_approximateArrivalTimestamp = value; }
99 
103  inline void SetApproximateArrivalTimestamp(Aws::Utils::DateTime&& value) { m_approximateArrivalTimestampHasBeenSet = true; m_approximateArrivalTimestamp = std::move(value); }
104 
108  inline Record& WithApproximateArrivalTimestamp(const Aws::Utils::DateTime& value) { SetApproximateArrivalTimestamp(value); return *this;}
109 
113  inline Record& WithApproximateArrivalTimestamp(Aws::Utils::DateTime&& value) { SetApproximateArrivalTimestamp(std::move(value)); return *this;}
114 
115 
123  inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
124 
132  inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
133 
141  inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
142 
150  inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
151 
159  inline Record& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
160 
168  inline Record& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
169 
170 
174  inline const Aws::String& GetPartitionKey() const{ return m_partitionKey; }
175 
179  inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; }
180 
184  inline void SetPartitionKey(const Aws::String& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; }
185 
189  inline void SetPartitionKey(Aws::String&& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = std::move(value); }
190 
194  inline void SetPartitionKey(const char* value) { m_partitionKeyHasBeenSet = true; m_partitionKey.assign(value); }
195 
199  inline Record& WithPartitionKey(const Aws::String& value) { SetPartitionKey(value); return *this;}
200 
204  inline Record& WithPartitionKey(Aws::String&& value) { SetPartitionKey(std::move(value)); return *this;}
205 
209  inline Record& WithPartitionKey(const char* value) { SetPartitionKey(value); return *this;}
210 
211 
219  inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
220 
228  inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
229 
237  inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
238 
246  inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
247 
255  inline Record& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
256 
264  inline Record& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
265 
266  private:
267 
268  Aws::String m_sequenceNumber;
269  bool m_sequenceNumberHasBeenSet;
270 
271  Aws::Utils::DateTime m_approximateArrivalTimestamp;
272  bool m_approximateArrivalTimestampHasBeenSet;
273 
274  Aws::Utils::ByteBuffer m_data;
275  bool m_dataHasBeenSet;
276 
277  Aws::String m_partitionKey;
278  bool m_partitionKeyHasBeenSet;
279 
280  EncryptionType m_encryptionType;
281  bool m_encryptionTypeHasBeenSet;
282  };
283 
284 } // namespace Model
285 } // namespace Kinesis
286 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Kinesis::Model::Record::WithSequenceNumber
Record & WithSequenceNumber(const char *value)
Definition: Record.h:82
Aws::Kinesis::Model::Record
Definition: Record.h:36
Aws::Kinesis::Model::Record::Record
Record(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::Record::SetSequenceNumber
void SetSequenceNumber(const Aws::String &value)
Definition: Record.h:57
Aws::Kinesis::Model::Record::ApproximateArrivalTimestampHasBeenSet
bool ApproximateArrivalTimestampHasBeenSet() const
Definition: Record.h:93
DateTime.h
Aws::Kinesis::Model::Record::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kinesis::Model::Record::operator=
Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::Record::SetPartitionKey
void SetPartitionKey(const char *value)
Definition: Record.h:194
EncryptionType.h
Aws::Kinesis::Model::Record::GetEncryptionType
const EncryptionType & GetEncryptionType() const
Definition: Record.h:219
Aws::Kinesis::Model::Record::SetSequenceNumber
void SetSequenceNumber(Aws::String &&value)
Definition: Record.h:62
Aws::Kinesis::Model::Record::WithData
Record & WithData(const Aws::Utils::ByteBuffer &value)
Definition: Record.h:159
Aws::Kinesis::Model::Record::SetApproximateArrivalTimestamp
void SetApproximateArrivalTimestamp(const Aws::Utils::DateTime &value)
Definition: Record.h:98
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::Record::SequenceNumberHasBeenSet
bool SequenceNumberHasBeenSet() const
Definition: Record.h:52
Aws::Kinesis::Model::Record::WithData
Record & WithData(Aws::Utils::ByteBuffer &&value)
Definition: Record.h:168
Aws::Kinesis::Model::Record::WithEncryptionType
Record & WithEncryptionType(const EncryptionType &value)
Definition: Record.h:255
Aws::Kinesis::Model::Record::GetPartitionKey
const Aws::String & GetPartitionKey() const
Definition: Record.h:174
Aws::Kinesis::Model::Record::WithPartitionKey
Record & WithPartitionKey(Aws::String &&value)
Definition: Record.h:204
Aws::Kinesis::Model::Record::Record
Record()
Aws::Kinesis::Model::Record::PartitionKeyHasBeenSet
bool PartitionKeyHasBeenSet() const
Definition: Record.h:179
Aws::Kinesis::Model::Record::WithEncryptionType
Record & WithEncryptionType(EncryptionType &&value)
Definition: Record.h:264
Aws::Kinesis::Model::Record::WithApproximateArrivalTimestamp
Record & WithApproximateArrivalTimestamp(Aws::Utils::DateTime &&value)
Definition: Record.h:113
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Array< unsigned char >
Aws::Kinesis::Model::Record::SetEncryptionType
void SetEncryptionType(EncryptionType &&value)
Definition: Record.h:246
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::Record::SetPartitionKey
void SetPartitionKey(Aws::String &&value)
Definition: Record.h:189
Aws::Kinesis::Model::Record::SetData
void SetData(const Aws::Utils::ByteBuffer &value)
Definition: Record.h:141
Aws::Kinesis::Model::Record::DataHasBeenSet
bool DataHasBeenSet() const
Definition: Record.h:132
Kinesis_EXPORTS.h
Aws::Kinesis::Model::Record::GetApproximateArrivalTimestamp
const Aws::Utils::DateTime & GetApproximateArrivalTimestamp() const
Definition: Record.h:88
Aws::Kinesis::Model::EncryptionType
EncryptionType
Definition: EncryptionType.h:17
Aws::Kinesis::Model::Record::SetEncryptionType
void SetEncryptionType(const EncryptionType &value)
Definition: Record.h:237
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::Kinesis::Model::Record::SetSequenceNumber
void SetSequenceNumber(const char *value)
Definition: Record.h:67
Aws::Kinesis::Model::Record::GetSequenceNumber
const Aws::String & GetSequenceNumber() const
Definition: Record.h:47
Aws::Kinesis::Model::Record::WithPartitionKey
Record & WithPartitionKey(const char *value)
Definition: Record.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::Record::SetData
void SetData(Aws::Utils::ByteBuffer &&value)
Definition: Record.h:150
Aws::Kinesis::Model::Record::WithApproximateArrivalTimestamp
Record & WithApproximateArrivalTimestamp(const Aws::Utils::DateTime &value)
Definition: Record.h:108
Aws::Kinesis::Model::Record::WithPartitionKey
Record & WithPartitionKey(const Aws::String &value)
Definition: Record.h:199
Aws::Kinesis::Model::Record::SetPartitionKey
void SetPartitionKey(const Aws::String &value)
Definition: Record.h:184
Aws::Kinesis::Model::Record::WithSequenceNumber
Record & WithSequenceNumber(Aws::String &&value)
Definition: Record.h:77
Aws::Kinesis::Model::Record::EncryptionTypeHasBeenSet
bool EncryptionTypeHasBeenSet() const
Definition: Record.h:228
Aws::Kinesis::Model::Record::SetApproximateArrivalTimestamp
void SetApproximateArrivalTimestamp(Aws::Utils::DateTime &&value)
Definition: Record.h:103
Aws::Kinesis::Model::Record::GetData
const Aws::Utils::ByteBuffer & GetData() const
Definition: Record.h:123
Aws::Kinesis::Model::Record::WithSequenceNumber
Record & WithSequenceNumber(const Aws::String &value)
Definition: Record.h:72