AWS SDK for C++  1.9.104
AWS SDK for C++
PutRecordsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Kinesis
17 {
18 namespace Model
19 {
20 
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 "PutRecords"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::Vector<PutRecordsRequestEntry>& GetRecords() const{ return m_records; }
46 
50  inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
51 
55  inline void SetRecords(const Aws::Vector<PutRecordsRequestEntry>& value) { m_recordsHasBeenSet = true; m_records = value; }
56 
60  inline void SetRecords(Aws::Vector<PutRecordsRequestEntry>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
61 
65  inline PutRecordsRequest& WithRecords(const Aws::Vector<PutRecordsRequestEntry>& value) { SetRecords(value); return *this;}
66 
70  inline PutRecordsRequest& WithRecords(Aws::Vector<PutRecordsRequestEntry>&& value) { SetRecords(std::move(value)); return *this;}
71 
75  inline PutRecordsRequest& AddRecords(const PutRecordsRequestEntry& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
76 
80  inline PutRecordsRequest& AddRecords(PutRecordsRequestEntry&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
81 
82 
86  inline const Aws::String& GetStreamName() const{ return m_streamName; }
87 
91  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
92 
96  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
97 
101  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
102 
106  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
107 
111  inline PutRecordsRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
112 
116  inline PutRecordsRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
117 
121  inline PutRecordsRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
122 
123  private:
124 
126  bool m_recordsHasBeenSet;
127 
128  Aws::String m_streamName;
129  bool m_streamNameHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace Kinesis
134 } // namespace Aws
Aws::Kinesis::Model::PutRecordsRequest::SetRecords
void SetRecords(Aws::Vector< PutRecordsRequestEntry > &&value)
Definition: PutRecordsRequest.h:60
Aws::Kinesis::Model::PutRecordsRequest
Definition: PutRecordsRequest.h:27
Aws::Kinesis::Model::PutRecordsRequest::GetRecords
const Aws::Vector< PutRecordsRequestEntry > & GetRecords() const
Definition: PutRecordsRequest.h:45
Aws::Kinesis::Model::PutRecordsRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: PutRecordsRequest.h:91
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::PutRecordsRequest::WithStreamName
PutRecordsRequest & WithStreamName(Aws::String &&value)
Definition: PutRecordsRequest.h:116
Aws::Kinesis::Model::PutRecordsRequest::AddRecords
PutRecordsRequest & AddRecords(PutRecordsRequestEntry &&value)
Definition: PutRecordsRequest.h:80
Aws::Kinesis::Model::PutRecordsRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: PutRecordsRequest.h:96
PutRecordsRequestEntry.h
Aws::Kinesis::Model::PutRecordsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutRecordsRequest.h:35
Aws::Kinesis::Model::PutRecordsRequest::SetRecords
void SetRecords(const Aws::Vector< PutRecordsRequestEntry > &value)
Definition: PutRecordsRequest.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::PutRecordsRequest::AddRecords
PutRecordsRequest & AddRecords(const PutRecordsRequestEntry &value)
Definition: PutRecordsRequest.h:75
Aws::Kinesis::Model::PutRecordsRequest::SerializePayload
Aws::String SerializePayload() const override
KinesisRequest.h
Aws::Kinesis::Model::PutRecordsRequest::RecordsHasBeenSet
bool RecordsHasBeenSet() const
Definition: PutRecordsRequest.h:50
Aws::Kinesis::Model::PutRecordsRequest::WithStreamName
PutRecordsRequest & WithStreamName(const char *value)
Definition: PutRecordsRequest.h:121
Aws::Kinesis::Model::PutRecordsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::PutRecordsRequest::SetStreamName
void SetStreamName(const char *value)
Definition: PutRecordsRequest.h:106
Aws::Kinesis::Model::PutRecordsRequestEntry
Definition: PutRecordsRequestEntry.h:34
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Kinesis_EXPORTS.h
Aws::Kinesis::Model::PutRecordsRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: PutRecordsRequest.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::PutRecordsRequest::WithStreamName
PutRecordsRequest & WithStreamName(const Aws::String &value)
Definition: PutRecordsRequest.h:111
Aws::Kinesis::Model::PutRecordsRequest::PutRecordsRequest
PutRecordsRequest()
Aws::Kinesis::Model::PutRecordsRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: PutRecordsRequest.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::PutRecordsRequest::WithRecords
PutRecordsRequest & WithRecords(const Aws::Vector< PutRecordsRequestEntry > &value)
Definition: PutRecordsRequest.h:65
Aws::Kinesis::Model::PutRecordsRequest::WithRecords
PutRecordsRequest & WithRecords(Aws::Vector< PutRecordsRequestEntry > &&value)
Definition: PutRecordsRequest.h:70