AWS SDK for C++  0.12.9
AWS SDK for C++
PutRecordsResult.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
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace Kinesis
33 {
34 namespace Model
35 {
40  {
41  public:
45 
50  inline long GetFailedRecordCount() const{ return m_failedRecordCount; }
51 
56  inline void SetFailedRecordCount(long value) { m_failedRecordCount = value; }
57 
62  inline PutRecordsResult& WithFailedRecordCount(long value) { SetFailedRecordCount(value); return *this;}
63 
71  inline const Aws::Vector<PutRecordsResultEntry>& GetRecords() const{ return m_records; }
72 
80  inline void SetRecords(const Aws::Vector<PutRecordsResultEntry>& value) { m_records = value; }
81 
89  inline void SetRecords(Aws::Vector<PutRecordsResultEntry>&& value) { m_records = value; }
90 
98  inline PutRecordsResult& WithRecords(const Aws::Vector<PutRecordsResultEntry>& value) { SetRecords(value); return *this;}
99 
107  inline PutRecordsResult& WithRecords(Aws::Vector<PutRecordsResultEntry>&& value) { SetRecords(value); return *this;}
108 
116  inline PutRecordsResult& AddRecords(const PutRecordsResultEntry& value) { m_records.push_back(value); return *this; }
117 
125  inline PutRecordsResult& AddRecords(PutRecordsResultEntry&& value) { m_records.push_back(value); return *this; }
126 
127  private:
128  long m_failedRecordCount;
130  };
131 
132 } // namespace Model
133 } // namespace Kinesis
134 } // namespace Aws
PutRecordsResult & WithFailedRecordCount(long value)
PutRecordsResult & WithRecords(const Aws::Vector< PutRecordsResultEntry > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetRecords(const Aws::Vector< PutRecordsResultEntry > &value)
const Aws::Vector< PutRecordsResultEntry > & GetRecords() const
#define AWS_KINESIS_API
PutRecordsResult & AddRecords(PutRecordsResultEntry &&value)
void SetRecords(Aws::Vector< PutRecordsResultEntry > &&value)
PutRecordsResult & AddRecords(const PutRecordsResultEntry &value)
PutRecordsResult & WithRecords(Aws::Vector< PutRecordsResultEntry > &&value)
JSON (JavaScript Object Notation).