AWS SDK for C++  1.9.103
AWS SDK for C++
PutRecordsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Kinesis
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
46  inline int GetFailedRecordCount() const{ return m_failedRecordCount; }
47 
52  inline void SetFailedRecordCount(int value) { m_failedRecordCount = value; }
53 
58  inline PutRecordsResult& WithFailedRecordCount(int value) { SetFailedRecordCount(value); return *this;}
59 
60 
68  inline const Aws::Vector<PutRecordsResultEntry>& GetRecords() const{ return m_records; }
69 
77  inline void SetRecords(const Aws::Vector<PutRecordsResultEntry>& value) { m_records = value; }
78 
86  inline void SetRecords(Aws::Vector<PutRecordsResultEntry>&& value) { m_records = std::move(value); }
87 
95  inline PutRecordsResult& WithRecords(const Aws::Vector<PutRecordsResultEntry>& value) { SetRecords(value); return *this;}
96 
104  inline PutRecordsResult& WithRecords(Aws::Vector<PutRecordsResultEntry>&& value) { SetRecords(std::move(value)); return *this;}
105 
113  inline PutRecordsResult& AddRecords(const PutRecordsResultEntry& value) { m_records.push_back(value); return *this; }
114 
122  inline PutRecordsResult& AddRecords(PutRecordsResultEntry&& value) { m_records.push_back(std::move(value)); return *this; }
123 
124 
131  inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
132 
139  inline void SetEncryptionType(const EncryptionType& value) { m_encryptionType = value; }
140 
147  inline void SetEncryptionType(EncryptionType&& value) { m_encryptionType = std::move(value); }
148 
155  inline PutRecordsResult& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
156 
163  inline PutRecordsResult& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
164 
165  private:
166 
167  int m_failedRecordCount;
168 
170 
171  EncryptionType m_encryptionType;
172  };
173 
174 } // namespace Model
175 } // namespace Kinesis
176 } // namespace Aws
Aws::Kinesis::Model::PutRecordsResult::WithFailedRecordCount
PutRecordsResult & WithFailedRecordCount(int value)
Definition: PutRecordsResult.h:58
Aws::Kinesis::Model::PutRecordsResult::SetRecords
void SetRecords(const Aws::Vector< PutRecordsResultEntry > &value)
Definition: PutRecordsResult.h:77
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Kinesis::Model::PutRecordsResultEntry
Definition: PutRecordsResultEntry.h:36
Aws::Kinesis::Model::PutRecordsResult::GetFailedRecordCount
int GetFailedRecordCount() const
Definition: PutRecordsResult.h:46
Aws::Kinesis::Model::PutRecordsResult::WithEncryptionType
PutRecordsResult & WithEncryptionType(EncryptionType &&value)
Definition: PutRecordsResult.h:163
EncryptionType.h
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::PutRecordsResult::GetRecords
const Aws::Vector< PutRecordsResultEntry > & GetRecords() const
Definition: PutRecordsResult.h:68
Aws::Kinesis::Model::PutRecordsResult::SetRecords
void SetRecords(Aws::Vector< PutRecordsResultEntry > &&value)
Definition: PutRecordsResult.h:86
PutRecordsResultEntry.h
Aws::Kinesis::Model::PutRecordsResult::SetEncryptionType
void SetEncryptionType(EncryptionType &&value)
Definition: PutRecordsResult.h:147
Aws::Kinesis::Model::PutRecordsResult::PutRecordsResult
PutRecordsResult()
Aws::Kinesis::Model::PutRecordsResult
Definition: PutRecordsResult.h:35
Aws::Kinesis::Model::PutRecordsResult::SetFailedRecordCount
void SetFailedRecordCount(int value)
Definition: PutRecordsResult.h:52
Kinesis_EXPORTS.h
Aws::Kinesis::Model::EncryptionType
EncryptionType
Definition: EncryptionType.h:17
Aws::Kinesis::Model::PutRecordsResult::AddRecords
PutRecordsResult & AddRecords(const PutRecordsResultEntry &value)
Definition: PutRecordsResult.h:113
Aws::Kinesis::Model::PutRecordsResult::WithEncryptionType
PutRecordsResult & WithEncryptionType(const EncryptionType &value)
Definition: PutRecordsResult.h:155
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::PutRecordsResult::GetEncryptionType
const EncryptionType & GetEncryptionType() const
Definition: PutRecordsResult.h:131
Aws::Kinesis::Model::PutRecordsResult::AddRecords
PutRecordsResult & AddRecords(PutRecordsResultEntry &&value)
Definition: PutRecordsResult.h:122
Aws::Kinesis::Model::PutRecordsResult::WithRecords
PutRecordsResult & WithRecords(Aws::Vector< PutRecordsResultEntry > &&value)
Definition: PutRecordsResult.h:104
Aws::Kinesis::Model::PutRecordsResult::operator=
PutRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Kinesis::Model::PutRecordsResult::WithRecords
PutRecordsResult & WithRecords(const Aws::Vector< PutRecordsResultEntry > &value)
Definition: PutRecordsResult.h:95
Aws::Kinesis::Model::PutRecordsResult::SetEncryptionType
void SetEncryptionType(const EncryptionType &value)
Definition: PutRecordsResult.h:139
Aws::Kinesis::Model::PutRecordsResult::PutRecordsResult
PutRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)