AWS SDK for C++  1.9.156
AWS SDK for C++
PutRecordBatchRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Firehose
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutRecordBatch"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; }
43 
47  inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; }
48 
52  inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; }
53 
57  inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); }
58 
62  inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); }
63 
67  inline PutRecordBatchRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;}
68 
72  inline PutRecordBatchRequest& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;}
73 
77  inline PutRecordBatchRequest& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;}
78 
79 
83  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
84 
88  inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
89 
93  inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
94 
98  inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
99 
103  inline PutRecordBatchRequest& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
104 
108  inline PutRecordBatchRequest& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
109 
113  inline PutRecordBatchRequest& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
114 
118  inline PutRecordBatchRequest& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  Aws::String m_deliveryStreamName;
123  bool m_deliveryStreamNameHasBeenSet;
124 
125  Aws::Vector<Record> m_records;
126  bool m_recordsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace Firehose
131 } // namespace Aws
Aws::Firehose::FirehoseRequest
Definition: FirehoseRequest.h:17
Aws::Firehose::Model::PutRecordBatchRequest::PutRecordBatchRequest
PutRecordBatchRequest()
Aws::Firehose::Model::PutRecordBatchRequest
Definition: PutRecordBatchRequest.h:24
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Firehose::Model::PutRecordBatchRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Firehose::Model::PutRecordBatchRequest::AddRecords
PutRecordBatchRequest & AddRecords(Record &&value)
Definition: PutRecordBatchRequest.h:118
Aws::Firehose::Model::PutRecordBatchRequest::WithDeliveryStreamName
PutRecordBatchRequest & WithDeliveryStreamName(const char *value)
Definition: PutRecordBatchRequest.h:77
Aws::Firehose::Model::PutRecordBatchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutRecordBatchRequest.h:32
Aws::Firehose::Model::PutRecordBatchRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Firehose::Model::PutRecordBatchRequest::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: PutRecordBatchRequest.h:83
Aws::Firehose::Model::PutRecordBatchRequest::WithRecords
PutRecordBatchRequest & WithRecords(const Aws::Vector< Record > &value)
Definition: PutRecordBatchRequest.h:103
Record.h
AWSVector.h
Aws::Firehose::Model::PutRecordBatchRequest::AddRecords
PutRecordBatchRequest & AddRecords(const Record &value)
Definition: PutRecordBatchRequest.h:113
Aws::Firehose::Model::PutRecordBatchRequest::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: PutRecordBatchRequest.h:98
Aws::Firehose::Model::PutRecordBatchRequest::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: PutRecordBatchRequest.h:93
AWS_FIREHOSE_API
#define AWS_FIREHOSE_API
Definition: Firehose_EXPORTS.h:28
Aws::Firehose::Model::PutRecordBatchRequest::RecordsHasBeenSet
bool RecordsHasBeenSet() const
Definition: PutRecordBatchRequest.h:88
Aws::Firehose::Model::PutRecordBatchRequest::WithDeliveryStreamName
PutRecordBatchRequest & WithDeliveryStreamName(Aws::String &&value)
Definition: PutRecordBatchRequest.h:72
Aws::Firehose::Model::PutRecordBatchRequest::SetDeliveryStreamName
void SetDeliveryStreamName(const Aws::String &value)
Definition: PutRecordBatchRequest.h:52
Aws::Firehose::Model::PutRecordBatchRequest::SetDeliveryStreamName
void SetDeliveryStreamName(Aws::String &&value)
Definition: PutRecordBatchRequest.h:57
AWSString.h
Aws::Firehose::Model::PutRecordBatchRequest::SetDeliveryStreamName
void SetDeliveryStreamName(const char *value)
Definition: PutRecordBatchRequest.h:62
Aws::Firehose::Model::PutRecordBatchRequest::WithRecords
PutRecordBatchRequest & WithRecords(Aws::Vector< Record > &&value)
Definition: PutRecordBatchRequest.h:108
Firehose_EXPORTS.h
Aws::Firehose::Model::Record
Definition: Record.h:32
Aws::Firehose::Model::PutRecordBatchRequest::DeliveryStreamNameHasBeenSet
bool DeliveryStreamNameHasBeenSet() const
Definition: PutRecordBatchRequest.h:47
Aws::Firehose::Model::PutRecordBatchRequest::GetDeliveryStreamName
const Aws::String & GetDeliveryStreamName() const
Definition: PutRecordBatchRequest.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FirehoseRequest.h
Aws::Firehose::Model::PutRecordBatchRequest::WithDeliveryStreamName
PutRecordBatchRequest & WithDeliveryStreamName(const Aws::String &value)
Definition: PutRecordBatchRequest.h:67