AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRecordsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/kinesis/model/PutRecordsRequestEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kinesis
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_KINESIS_API PutRecordsRequest();
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 "PutRecords"; }
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::Vector<PutRecordsRequestEntry>& GetRecords() const{ return m_records; }
51 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
52 inline void SetRecords(const Aws::Vector<PutRecordsRequestEntry>& value) { m_recordsHasBeenSet = true; m_records = value; }
53 inline void SetRecords(Aws::Vector<PutRecordsRequestEntry>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
54 inline PutRecordsRequest& WithRecords(const Aws::Vector<PutRecordsRequestEntry>& value) { SetRecords(value); return *this;}
55 inline PutRecordsRequest& WithRecords(Aws::Vector<PutRecordsRequestEntry>&& value) { SetRecords(std::move(value)); return *this;}
56 inline PutRecordsRequest& AddRecords(const PutRecordsRequestEntry& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
57 inline PutRecordsRequest& AddRecords(PutRecordsRequestEntry&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::String& GetStreamName() const{ return m_streamName; }
65 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
66 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
67 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
68 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
69 inline PutRecordsRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
70 inline PutRecordsRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
71 inline PutRecordsRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
73
75
78 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
79 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
80 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
81 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
82 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
83 inline PutRecordsRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
84 inline PutRecordsRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
85 inline PutRecordsRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
87 private:
88
90 bool m_recordsHasBeenSet = false;
91
92 Aws::String m_streamName;
93 bool m_streamNameHasBeenSet = false;
94
95 Aws::String m_streamARN;
96 bool m_streamARNHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Kinesis
101} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
PutRecordsRequest & WithStreamARN(const Aws::String &value)
const Aws::String & GetStreamName() const
void SetStreamARN(const Aws::String &value)
PutRecordsRequest & WithStreamName(const char *value)
PutRecordsRequest & WithStreamARN(const char *value)
PutRecordsRequest & WithRecords(Aws::Vector< PutRecordsRequestEntry > &&value)
AWS_KINESIS_API Aws::String SerializePayload() const override
void SetStreamName(Aws::String &&value)
PutRecordsRequest & WithStreamName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetStreamARN() const
PutRecordsRequest & AddRecords(const PutRecordsRequestEntry &value)
void SetRecords(const Aws::Vector< PutRecordsRequestEntry > &value)
void SetStreamName(const Aws::String &value)
PutRecordsRequest & AddRecords(PutRecordsRequestEntry &&value)
PutRecordsRequest & WithRecords(const Aws::Vector< PutRecordsRequestEntry > &value)
const Aws::Vector< PutRecordsRequestEntry > & GetRecords() const
PutRecordsRequest & WithStreamName(Aws::String &&value)
PutRecordsRequest & WithStreamARN(Aws::String &&value)
void SetRecords(Aws::Vector< PutRecordsRequestEntry > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector