AWS SDK for C++  0.14.3
AWS SDK for C++
PutRecordBatchRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Firehose
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; }
44 
48  inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; }
49 
53  inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; }
54 
58  inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); }
59 
63  inline PutRecordBatchRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;}
64 
68  inline PutRecordBatchRequest& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(value); return *this;}
69 
73  inline PutRecordBatchRequest& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;}
74 
78  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
79 
83  inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
84 
88  inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = value; }
89 
93  inline PutRecordBatchRequest& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
94 
98  inline PutRecordBatchRequest& WithRecords(Aws::Vector<Record>&& value) { SetRecords(value); return *this;}
99 
103  inline PutRecordBatchRequest& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
104 
108  inline PutRecordBatchRequest& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
109 
110  private:
111  Aws::String m_deliveryStreamName;
112  bool m_deliveryStreamNameHasBeenSet;
113  Aws::Vector<Record> m_records;
114  bool m_recordsHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace Firehose
119 } // namespace Aws
const Aws::String & GetDeliveryStreamName() const
PutRecordBatchRequest & WithDeliveryStreamName(const Aws::String &value)
const Aws::Vector< Record > & GetRecords() const
void SetRecords(const Aws::Vector< Record > &value)
PutRecordBatchRequest & WithDeliveryStreamName(Aws::String &&value)
void SetRecords(Aws::Vector< Record > &&value)
#define AWS_FIREHOSE_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PutRecordBatchRequest & WithRecords(Aws::Vector< Record > &&value)
void SetDeliveryStreamName(const Aws::String &value)
PutRecordBatchRequest & WithDeliveryStreamName(const char *value)
PutRecordBatchRequest & WithRecords(const Aws::Vector< Record > &value)
PutRecordBatchRequest & AddRecords(const Record &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutRecordBatchRequest & AddRecords(Record &&value)
JSON (JavaScript Object Notation).