AWS SDK for C++  1.9.103
AWS SDK for C++
PutRecordsRequestEntry.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/core/utils/Array.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Kinesis
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
48  inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
49 
56  inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
57 
64  inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
65 
72  inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
73 
80  inline PutRecordsRequestEntry& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
81 
88  inline PutRecordsRequestEntry& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
89 
90 
95  inline const Aws::String& GetExplicitHashKey() const{ return m_explicitHashKey; }
96 
101  inline bool ExplicitHashKeyHasBeenSet() const { return m_explicitHashKeyHasBeenSet; }
102 
107  inline void SetExplicitHashKey(const Aws::String& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = value; }
108 
113  inline void SetExplicitHashKey(Aws::String&& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = std::move(value); }
114 
119  inline void SetExplicitHashKey(const char* value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey.assign(value); }
120 
125  inline PutRecordsRequestEntry& WithExplicitHashKey(const Aws::String& value) { SetExplicitHashKey(value); return *this;}
126 
131  inline PutRecordsRequestEntry& WithExplicitHashKey(Aws::String&& value) { SetExplicitHashKey(std::move(value)); return *this;}
132 
137  inline PutRecordsRequestEntry& WithExplicitHashKey(const char* value) { SetExplicitHashKey(value); return *this;}
138 
139 
150  inline const Aws::String& GetPartitionKey() const{ return m_partitionKey; }
151 
162  inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; }
163 
174  inline void SetPartitionKey(const Aws::String& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; }
175 
186  inline void SetPartitionKey(Aws::String&& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = std::move(value); }
187 
198  inline void SetPartitionKey(const char* value) { m_partitionKeyHasBeenSet = true; m_partitionKey.assign(value); }
199 
210  inline PutRecordsRequestEntry& WithPartitionKey(const Aws::String& value) { SetPartitionKey(value); return *this;}
211 
222  inline PutRecordsRequestEntry& WithPartitionKey(Aws::String&& value) { SetPartitionKey(std::move(value)); return *this;}
223 
234  inline PutRecordsRequestEntry& WithPartitionKey(const char* value) { SetPartitionKey(value); return *this;}
235 
236  private:
237 
238  Aws::Utils::ByteBuffer m_data;
239  bool m_dataHasBeenSet;
240 
241  Aws::String m_explicitHashKey;
242  bool m_explicitHashKeyHasBeenSet;
243 
244  Aws::String m_partitionKey;
245  bool m_partitionKeyHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace Kinesis
250 } // namespace Aws
Aws::Kinesis::Model::PutRecordsRequestEntry::operator=
PutRecordsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::PutRecordsRequestEntry::ExplicitHashKeyHasBeenSet
bool ExplicitHashKeyHasBeenSet() const
Definition: PutRecordsRequestEntry.h:101
Aws::Kinesis::Model::PutRecordsRequestEntry::SetData
void SetData(Aws::Utils::ByteBuffer &&value)
Definition: PutRecordsRequestEntry.h:72
Aws::Kinesis::Model::PutRecordsRequestEntry::PutRecordsRequestEntry
PutRecordsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::PutRecordsRequestEntry::GetExplicitHashKey
const Aws::String & GetExplicitHashKey() const
Definition: PutRecordsRequestEntry.h:95
Aws::Kinesis::Model::PutRecordsRequestEntry::SetExplicitHashKey
void SetExplicitHashKey(const Aws::String &value)
Definition: PutRecordsRequestEntry.h:107
Aws::Kinesis::Model::PutRecordsRequestEntry::SetExplicitHashKey
void SetExplicitHashKey(Aws::String &&value)
Definition: PutRecordsRequestEntry.h:113
Aws::Kinesis::Model::PutRecordsRequestEntry::PutRecordsRequestEntry
PutRecordsRequestEntry()
Aws::Kinesis::Model::PutRecordsRequestEntry::WithExplicitHashKey
PutRecordsRequestEntry & WithExplicitHashKey(const char *value)
Definition: PutRecordsRequestEntry.h:137
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::PutRecordsRequestEntry::WithExplicitHashKey
PutRecordsRequestEntry & WithExplicitHashKey(const Aws::String &value)
Definition: PutRecordsRequestEntry.h:125
Aws::Kinesis::Model::PutRecordsRequestEntry
Definition: PutRecordsRequestEntry.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::PutRecordsRequestEntry::DataHasBeenSet
bool DataHasBeenSet() const
Definition: PutRecordsRequestEntry.h:56
Aws::Kinesis::Model::PutRecordsRequestEntry::SetPartitionKey
void SetPartitionKey(const Aws::String &value)
Definition: PutRecordsRequestEntry.h:174
Kinesis_EXPORTS.h
Aws::Kinesis::Model::PutRecordsRequestEntry::GetData
const Aws::Utils::ByteBuffer & GetData() const
Definition: PutRecordsRequestEntry.h:48
Aws::Kinesis::Model::PutRecordsRequestEntry::SetPartitionKey
void SetPartitionKey(const char *value)
Definition: PutRecordsRequestEntry.h:198
Aws::Kinesis::Model::PutRecordsRequestEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kinesis::Model::PutRecordsRequestEntry::GetPartitionKey
const Aws::String & GetPartitionKey() const
Definition: PutRecordsRequestEntry.h:150
Aws::Kinesis::Model::PutRecordsRequestEntry::WithPartitionKey
PutRecordsRequestEntry & WithPartitionKey(const Aws::String &value)
Definition: PutRecordsRequestEntry.h:210
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::PutRecordsRequestEntry::SetData
void SetData(const Aws::Utils::ByteBuffer &value)
Definition: PutRecordsRequestEntry.h:64
Aws::Kinesis::Model::PutRecordsRequestEntry::WithExplicitHashKey
PutRecordsRequestEntry & WithExplicitHashKey(Aws::String &&value)
Definition: PutRecordsRequestEntry.h:131
Array.h
Aws::Kinesis::Model::PutRecordsRequestEntry::PartitionKeyHasBeenSet
bool PartitionKeyHasBeenSet() const
Definition: PutRecordsRequestEntry.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::PutRecordsRequestEntry::WithData
PutRecordsRequestEntry & WithData(Aws::Utils::ByteBuffer &&value)
Definition: PutRecordsRequestEntry.h:88
Aws::Kinesis::Model::PutRecordsRequestEntry::SetExplicitHashKey
void SetExplicitHashKey(const char *value)
Definition: PutRecordsRequestEntry.h:119
Aws::Kinesis::Model::PutRecordsRequestEntry::WithData
PutRecordsRequestEntry & WithData(const Aws::Utils::ByteBuffer &value)
Definition: PutRecordsRequestEntry.h:80
Aws::Kinesis::Model::PutRecordsRequestEntry::SetPartitionKey
void SetPartitionKey(Aws::String &&value)
Definition: PutRecordsRequestEntry.h:186
Aws::Kinesis::Model::PutRecordsRequestEntry::WithPartitionKey
PutRecordsRequestEntry & WithPartitionKey(Aws::String &&value)
Definition: PutRecordsRequestEntry.h:222
Aws::Kinesis::Model::PutRecordsRequestEntry::WithPartitionKey
PutRecordsRequestEntry & WithPartitionKey(const char *value)
Definition: PutRecordsRequestEntry.h:234