AWS SDK for C++  0.14.3
AWS SDK for C++
PutRecordsRequest.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 Kinesis
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::Vector<PutRecordsRequestEntry>& GetRecords() const{ return m_records; }
44 
48  inline void SetRecords(const Aws::Vector<PutRecordsRequestEntry>& value) { m_recordsHasBeenSet = true; m_records = value; }
49 
53  inline void SetRecords(Aws::Vector<PutRecordsRequestEntry>&& value) { m_recordsHasBeenSet = true; m_records = value; }
54 
58  inline PutRecordsRequest& WithRecords(const Aws::Vector<PutRecordsRequestEntry>& value) { SetRecords(value); return *this;}
59 
63  inline PutRecordsRequest& WithRecords(Aws::Vector<PutRecordsRequestEntry>&& value) { SetRecords(value); return *this;}
64 
68  inline PutRecordsRequest& AddRecords(const PutRecordsRequestEntry& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
69 
73  inline PutRecordsRequest& AddRecords(PutRecordsRequestEntry&& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
74 
78  inline const Aws::String& GetStreamName() const{ return m_streamName; }
79 
83  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
84 
88  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
89 
93  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
94 
98  inline PutRecordsRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
99 
103  inline PutRecordsRequest& WithStreamName(Aws::String&& value) { SetStreamName(value); return *this;}
104 
108  inline PutRecordsRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
109 
110  private:
112  bool m_recordsHasBeenSet;
113  Aws::String m_streamName;
114  bool m_streamNameHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace Kinesis
119 } // namespace Aws
PutRecordsRequest & WithRecords(const Aws::Vector< PutRecordsRequestEntry > &value)
PutRecordsRequest & WithRecords(Aws::Vector< PutRecordsRequestEntry > &&value)
const Aws::String & GetStreamName() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
PutRecordsRequest & AddRecords(PutRecordsRequestEntry &&value)
PutRecordsRequest & AddRecords(const PutRecordsRequestEntry &value)
void SetStreamName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PutRecordsRequest & WithStreamName(const char *value)
PutRecordsRequest & WithStreamName(Aws::String &&value)
void SetRecords(const Aws::Vector< PutRecordsRequestEntry > &value)
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutRecordsRequest & WithStreamName(const Aws::String &value)
void SetRecords(Aws::Vector< PutRecordsRequestEntry > &&value)
void SetStreamName(Aws::String &&value)
const Aws::Vector< PutRecordsRequestEntry > & GetRecords() const
JSON (JavaScript Object Notation).