AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRecordRequest.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/KinesisRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Kinesis
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_KINESIS_API PutRecordRequest();
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_KINESIS_API Aws::String SerializePayload() const override;
38
40
44 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
45
47
50 inline const Aws::String& GetStreamName() const{ return m_streamName; }
51 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
52 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
53 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
54 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
55 inline PutRecordRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
56 inline PutRecordRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
57 inline PutRecordRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
59
61
67 inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
68 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
69 inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
70 inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
71 inline PutRecordRequest& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
72 inline PutRecordRequest& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
74
76
86 inline const Aws::String& GetPartitionKey() const{ return m_partitionKey; }
87 inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; }
88 inline void SetPartitionKey(const Aws::String& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; }
89 inline void SetPartitionKey(Aws::String&& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = std::move(value); }
90 inline void SetPartitionKey(const char* value) { m_partitionKeyHasBeenSet = true; m_partitionKey.assign(value); }
91 inline PutRecordRequest& WithPartitionKey(const Aws::String& value) { SetPartitionKey(value); return *this;}
92 inline PutRecordRequest& WithPartitionKey(Aws::String&& value) { SetPartitionKey(std::move(value)); return *this;}
93 inline PutRecordRequest& WithPartitionKey(const char* value) { SetPartitionKey(value); return *this;}
95
97
101 inline const Aws::String& GetExplicitHashKey() const{ return m_explicitHashKey; }
102 inline bool ExplicitHashKeyHasBeenSet() const { return m_explicitHashKeyHasBeenSet; }
103 inline void SetExplicitHashKey(const Aws::String& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = value; }
104 inline void SetExplicitHashKey(Aws::String&& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = std::move(value); }
105 inline void SetExplicitHashKey(const char* value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey.assign(value); }
106 inline PutRecordRequest& WithExplicitHashKey(const Aws::String& value) { SetExplicitHashKey(value); return *this;}
107 inline PutRecordRequest& WithExplicitHashKey(Aws::String&& value) { SetExplicitHashKey(std::move(value)); return *this;}
108 inline PutRecordRequest& WithExplicitHashKey(const char* value) { SetExplicitHashKey(value); return *this;}
110
112
120 inline const Aws::String& GetSequenceNumberForOrdering() const{ return m_sequenceNumberForOrdering; }
121 inline bool SequenceNumberForOrderingHasBeenSet() const { return m_sequenceNumberForOrderingHasBeenSet; }
122 inline void SetSequenceNumberForOrdering(const Aws::String& value) { m_sequenceNumberForOrderingHasBeenSet = true; m_sequenceNumberForOrdering = value; }
123 inline void SetSequenceNumberForOrdering(Aws::String&& value) { m_sequenceNumberForOrderingHasBeenSet = true; m_sequenceNumberForOrdering = std::move(value); }
124 inline void SetSequenceNumberForOrdering(const char* value) { m_sequenceNumberForOrderingHasBeenSet = true; m_sequenceNumberForOrdering.assign(value); }
127 inline PutRecordRequest& WithSequenceNumberForOrdering(const char* value) { SetSequenceNumberForOrdering(value); return *this;}
129
131
134 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
135 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
136 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
137 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
138 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
139 inline PutRecordRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
140 inline PutRecordRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
141 inline PutRecordRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
143 private:
144
145 Aws::String m_streamName;
146 bool m_streamNameHasBeenSet = false;
147
149 bool m_dataHasBeenSet = false;
150
151 Aws::String m_partitionKey;
152 bool m_partitionKeyHasBeenSet = false;
153
154 Aws::String m_explicitHashKey;
155 bool m_explicitHashKeyHasBeenSet = false;
156
157 Aws::String m_sequenceNumberForOrdering;
158 bool m_sequenceNumberForOrderingHasBeenSet = false;
159
160 Aws::String m_streamARN;
161 bool m_streamARNHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Kinesis
166} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
void SetData(Aws::Utils::ByteBuffer &&value)
void SetExplicitHashKey(const char *value)
PutRecordRequest & WithSequenceNumberForOrdering(const char *value)
void SetPartitionKey(Aws::String &&value)
void SetStreamARN(Aws::String &&value)
PutRecordRequest & WithExplicitHashKey(const Aws::String &value)
AWS_KINESIS_API Aws::String SerializePayload() const override
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutRecordRequest & WithStreamARN(const Aws::String &value)
const Aws::String & GetPartitionKey() const
void SetExplicitHashKey(Aws::String &&value)
const Aws::String & GetStreamARN() const
void SetStreamName(const Aws::String &value)
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
virtual const char * GetServiceRequestName() const override
void SetSequenceNumberForOrdering(const char *value)
void SetSequenceNumberForOrdering(const Aws::String &value)
PutRecordRequest & WithExplicitHashKey(Aws::String &&value)
void SetPartitionKey(const char *value)
PutRecordRequest & WithPartitionKey(Aws::String &&value)
PutRecordRequest & WithSequenceNumberForOrdering(const Aws::String &value)
PutRecordRequest & WithStreamARN(Aws::String &&value)
PutRecordRequest & WithData(Aws::Utils::ByteBuffer &&value)
PutRecordRequest & WithStreamName(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetData() const
void SetSequenceNumberForOrdering(Aws::String &&value)
const Aws::String & GetExplicitHashKey() const
PutRecordRequest & WithPartitionKey(const Aws::String &value)
void SetStreamName(Aws::String &&value)
PutRecordRequest & WithStreamName(const char *value)
void SetExplicitHashKey(const Aws::String &value)
PutRecordRequest & WithSequenceNumberForOrdering(Aws::String &&value)
void SetData(const Aws::Utils::ByteBuffer &value)
const Aws::String & GetStreamName() const
void SetStreamARN(const Aws::String &value)
PutRecordRequest & WithStreamARN(const char *value)
PutRecordRequest & WithData(const Aws::Utils::ByteBuffer &value)
PutRecordRequest & WithExplicitHashKey(const char *value)
void SetPartitionKey(const Aws::String &value)
PutRecordRequest & WithPartitionKey(const char *value)
const Aws::String & GetSequenceNumberForOrdering() const
PutRecordRequest & WithStreamName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String