AWS SDK for C++  1.9.103
AWS SDK for C++
PutRecordRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Kinesis
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "PutRecord"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetStreamName() const{ return m_streamName; }
46 
50  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
51 
55  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
56 
60  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
61 
65  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
66 
70  inline PutRecordRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
71 
75  inline PutRecordRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
76 
80  inline PutRecordRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
81 
82 
89  inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
90 
97  inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
98 
105  inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
106 
113  inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
114 
121  inline PutRecordRequest& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
122 
129  inline PutRecordRequest& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
130 
131 
142  inline const Aws::String& GetPartitionKey() const{ return m_partitionKey; }
143 
154  inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; }
155 
166  inline void SetPartitionKey(const Aws::String& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; }
167 
178  inline void SetPartitionKey(Aws::String&& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = std::move(value); }
179 
190  inline void SetPartitionKey(const char* value) { m_partitionKeyHasBeenSet = true; m_partitionKey.assign(value); }
191 
202  inline PutRecordRequest& WithPartitionKey(const Aws::String& value) { SetPartitionKey(value); return *this;}
203 
214  inline PutRecordRequest& WithPartitionKey(Aws::String&& value) { SetPartitionKey(std::move(value)); return *this;}
215 
226  inline PutRecordRequest& WithPartitionKey(const char* value) { SetPartitionKey(value); return *this;}
227 
228 
233  inline const Aws::String& GetExplicitHashKey() const{ return m_explicitHashKey; }
234 
239  inline bool ExplicitHashKeyHasBeenSet() const { return m_explicitHashKeyHasBeenSet; }
240 
245  inline void SetExplicitHashKey(const Aws::String& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = value; }
246 
251  inline void SetExplicitHashKey(Aws::String&& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = std::move(value); }
252 
257  inline void SetExplicitHashKey(const char* value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey.assign(value); }
258 
263  inline PutRecordRequest& WithExplicitHashKey(const Aws::String& value) { SetExplicitHashKey(value); return *this;}
264 
269  inline PutRecordRequest& WithExplicitHashKey(Aws::String&& value) { SetExplicitHashKey(std::move(value)); return *this;}
270 
275  inline PutRecordRequest& WithExplicitHashKey(const char* value) { SetExplicitHashKey(value); return *this;}
276 
277 
286  inline const Aws::String& GetSequenceNumberForOrdering() const{ return m_sequenceNumberForOrdering; }
287 
296  inline bool SequenceNumberForOrderingHasBeenSet() const { return m_sequenceNumberForOrderingHasBeenSet; }
297 
306  inline void SetSequenceNumberForOrdering(const Aws::String& value) { m_sequenceNumberForOrderingHasBeenSet = true; m_sequenceNumberForOrdering = value; }
307 
316  inline void SetSequenceNumberForOrdering(Aws::String&& value) { m_sequenceNumberForOrderingHasBeenSet = true; m_sequenceNumberForOrdering = std::move(value); }
317 
326  inline void SetSequenceNumberForOrdering(const char* value) { m_sequenceNumberForOrderingHasBeenSet = true; m_sequenceNumberForOrdering.assign(value); }
327 
336  inline PutRecordRequest& WithSequenceNumberForOrdering(const Aws::String& value) { SetSequenceNumberForOrdering(value); return *this;}
337 
346  inline PutRecordRequest& WithSequenceNumberForOrdering(Aws::String&& value) { SetSequenceNumberForOrdering(std::move(value)); return *this;}
347 
356  inline PutRecordRequest& WithSequenceNumberForOrdering(const char* value) { SetSequenceNumberForOrdering(value); return *this;}
357 
358  private:
359 
360  Aws::String m_streamName;
361  bool m_streamNameHasBeenSet;
362 
363  Aws::Utils::ByteBuffer m_data;
364  bool m_dataHasBeenSet;
365 
366  Aws::String m_partitionKey;
367  bool m_partitionKeyHasBeenSet;
368 
369  Aws::String m_explicitHashKey;
370  bool m_explicitHashKeyHasBeenSet;
371 
372  Aws::String m_sequenceNumberForOrdering;
373  bool m_sequenceNumberForOrderingHasBeenSet;
374  };
375 
376 } // namespace Model
377 } // namespace Kinesis
378 } // namespace Aws
Aws::Kinesis::Model::PutRecordRequest::PutRecordRequest
PutRecordRequest()
Aws::Kinesis::Model::PutRecordRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: PutRecordRequest.h:55
Aws::Kinesis::Model::PutRecordRequest::SetSequenceNumberForOrdering
void SetSequenceNumberForOrdering(Aws::String &&value)
Definition: PutRecordRequest.h:316
Aws::Kinesis::Model::PutRecordRequest::GetData
const Aws::Utils::ByteBuffer & GetData() const
Definition: PutRecordRequest.h:89
Aws::Kinesis::Model::PutRecordRequest
Definition: PutRecordRequest.h:27
Aws::Kinesis::Model::PutRecordRequest::SequenceNumberForOrderingHasBeenSet
bool SequenceNumberForOrderingHasBeenSet() const
Definition: PutRecordRequest.h:296
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::PutRecordRequest::GetSequenceNumberForOrdering
const Aws::String & GetSequenceNumberForOrdering() const
Definition: PutRecordRequest.h:286
Aws::Kinesis::Model::PutRecordRequest::ExplicitHashKeyHasBeenSet
bool ExplicitHashKeyHasBeenSet() const
Definition: PutRecordRequest.h:239
Aws::Kinesis::Model::PutRecordRequest::WithData
PutRecordRequest & WithData(const Aws::Utils::ByteBuffer &value)
Definition: PutRecordRequest.h:121
Aws::Kinesis::Model::PutRecordRequest::WithSequenceNumberForOrdering
PutRecordRequest & WithSequenceNumberForOrdering(const Aws::String &value)
Definition: PutRecordRequest.h:336
Aws::Kinesis::Model::PutRecordRequest::WithPartitionKey
PutRecordRequest & WithPartitionKey(const Aws::String &value)
Definition: PutRecordRequest.h:202
Aws::Kinesis::Model::PutRecordRequest::SetSequenceNumberForOrdering
void SetSequenceNumberForOrdering(const Aws::String &value)
Definition: PutRecordRequest.h:306
Aws::Kinesis::Model::PutRecordRequest::WithSequenceNumberForOrdering
PutRecordRequest & WithSequenceNumberForOrdering(const char *value)
Definition: PutRecordRequest.h:356
Aws::Kinesis::Model::PutRecordRequest::SetPartitionKey
void SetPartitionKey(const Aws::String &value)
Definition: PutRecordRequest.h:166
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::PutRecordRequest::SetExplicitHashKey
void SetExplicitHashKey(const Aws::String &value)
Definition: PutRecordRequest.h:245
Aws::Kinesis::Model::PutRecordRequest::SetStreamName
void SetStreamName(const char *value)
Definition: PutRecordRequest.h:65
KinesisRequest.h
Aws::Kinesis::Model::PutRecordRequest::WithExplicitHashKey
PutRecordRequest & WithExplicitHashKey(const Aws::String &value)
Definition: PutRecordRequest.h:263
Aws::Kinesis::Model::PutRecordRequest::WithStreamName
PutRecordRequest & WithStreamName(const char *value)
Definition: PutRecordRequest.h:80
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Kinesis::Model::PutRecordRequest::WithSequenceNumberForOrdering
PutRecordRequest & WithSequenceNumberForOrdering(Aws::String &&value)
Definition: PutRecordRequest.h:346
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::PutRecordRequest::WithExplicitHashKey
PutRecordRequest & WithExplicitHashKey(const char *value)
Definition: PutRecordRequest.h:275
Aws::Kinesis::Model::PutRecordRequest::PartitionKeyHasBeenSet
bool PartitionKeyHasBeenSet() const
Definition: PutRecordRequest.h:154
Aws::Kinesis::Model::PutRecordRequest::SetData
void SetData(const Aws::Utils::ByteBuffer &value)
Definition: PutRecordRequest.h:105
Aws::Kinesis::Model::PutRecordRequest::WithPartitionKey
PutRecordRequest & WithPartitionKey(Aws::String &&value)
Definition: PutRecordRequest.h:214
Kinesis_EXPORTS.h
Aws::Kinesis::Model::PutRecordRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutRecordRequest.h:35
Aws::Kinesis::Model::PutRecordRequest::WithStreamName
PutRecordRequest & WithStreamName(const Aws::String &value)
Definition: PutRecordRequest.h:70
Aws::Kinesis::Model::PutRecordRequest::WithExplicitHashKey
PutRecordRequest & WithExplicitHashKey(Aws::String &&value)
Definition: PutRecordRequest.h:269
Aws::Kinesis::Model::PutRecordRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::PutRecordRequest::SetSequenceNumberForOrdering
void SetSequenceNumberForOrdering(const char *value)
Definition: PutRecordRequest.h:326
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::PutRecordRequest::WithPartitionKey
PutRecordRequest & WithPartitionKey(const char *value)
Definition: PutRecordRequest.h:226
Aws::Kinesis::Model::PutRecordRequest::SetPartitionKey
void SetPartitionKey(Aws::String &&value)
Definition: PutRecordRequest.h:178
Aws::Kinesis::Model::PutRecordRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: PutRecordRequest.h:60
Array.h
Aws::Kinesis::Model::PutRecordRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: PutRecordRequest.h:45
Aws::Kinesis::Model::PutRecordRequest::WithData
PutRecordRequest & WithData(Aws::Utils::ByteBuffer &&value)
Definition: PutRecordRequest.h:129
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::PutRecordRequest::SetExplicitHashKey
void SetExplicitHashKey(Aws::String &&value)
Definition: PutRecordRequest.h:251
Aws::Kinesis::Model::PutRecordRequest::GetPartitionKey
const Aws::String & GetPartitionKey() const
Definition: PutRecordRequest.h:142
Aws::Kinesis::Model::PutRecordRequest::SetExplicitHashKey
void SetExplicitHashKey(const char *value)
Definition: PutRecordRequest.h:257
Aws::Kinesis::Model::PutRecordRequest::GetExplicitHashKey
const Aws::String & GetExplicitHashKey() const
Definition: PutRecordRequest.h:233
Aws::Kinesis::Model::PutRecordRequest::SetPartitionKey
void SetPartitionKey(const char *value)
Definition: PutRecordRequest.h:190
Aws::Kinesis::Model::PutRecordRequest::WithStreamName
PutRecordRequest & WithStreamName(Aws::String &&value)
Definition: PutRecordRequest.h:75
Aws::Kinesis::Model::PutRecordRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kinesis::Model::PutRecordRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: PutRecordRequest.h:50
Aws::Kinesis::Model::PutRecordRequest::SetData
void SetData(Aws::Utils::ByteBuffer &&value)
Definition: PutRecordRequest.h:113
Aws::Kinesis::Model::PutRecordRequest::DataHasBeenSet
bool DataHasBeenSet() const
Definition: PutRecordRequest.h:97