AWS SDK for C++  1.9.154
AWS SDK for C++
PutRecordBatchResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Firehose
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
42  inline int GetFailedPutCount() const{ return m_failedPutCount; }
43 
50  inline void SetFailedPutCount(int value) { m_failedPutCount = value; }
51 
58  inline PutRecordBatchResult& WithFailedPutCount(int value) { SetFailedPutCount(value); return *this;}
59 
60 
65  inline bool GetEncrypted() const{ return m_encrypted; }
66 
71  inline void SetEncrypted(bool value) { m_encrypted = value; }
72 
77  inline PutRecordBatchResult& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
78 
79 
84  inline const Aws::Vector<PutRecordBatchResponseEntry>& GetRequestResponses() const{ return m_requestResponses; }
85 
90  inline void SetRequestResponses(const Aws::Vector<PutRecordBatchResponseEntry>& value) { m_requestResponses = value; }
91 
96  inline void SetRequestResponses(Aws::Vector<PutRecordBatchResponseEntry>&& value) { m_requestResponses = std::move(value); }
97 
102  inline PutRecordBatchResult& WithRequestResponses(const Aws::Vector<PutRecordBatchResponseEntry>& value) { SetRequestResponses(value); return *this;}
103 
108  inline PutRecordBatchResult& WithRequestResponses(Aws::Vector<PutRecordBatchResponseEntry>&& value) { SetRequestResponses(std::move(value)); return *this;}
109 
114  inline PutRecordBatchResult& AddRequestResponses(const PutRecordBatchResponseEntry& value) { m_requestResponses.push_back(value); return *this; }
115 
120  inline PutRecordBatchResult& AddRequestResponses(PutRecordBatchResponseEntry&& value) { m_requestResponses.push_back(std::move(value)); return *this; }
121 
122  private:
123 
124  int m_failedPutCount;
125 
126  bool m_encrypted;
127 
128  Aws::Vector<PutRecordBatchResponseEntry> m_requestResponses;
129  };
130 
131 } // namespace Model
132 } // namespace Firehose
133 } // namespace Aws
Aws::Firehose::Model::PutRecordBatchResult::operator=
PutRecordBatchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Firehose::Model::PutRecordBatchResult::WithRequestResponses
PutRecordBatchResult & WithRequestResponses(Aws::Vector< PutRecordBatchResponseEntry > &&value)
Definition: PutRecordBatchResult.h:108
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Firehose::Model::PutRecordBatchResult::PutRecordBatchResult
PutRecordBatchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Firehose::Model::PutRecordBatchResult::WithEncrypted
PutRecordBatchResult & WithEncrypted(bool value)
Definition: PutRecordBatchResult.h:77
Aws::Firehose::Model::PutRecordBatchResult::SetRequestResponses
void SetRequestResponses(const Aws::Vector< PutRecordBatchResponseEntry > &value)
Definition: PutRecordBatchResult.h:90
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Firehose::Model::PutRecordBatchResult::PutRecordBatchResult
PutRecordBatchResult()
Aws::Firehose::Model::PutRecordBatchResult::GetEncrypted
bool GetEncrypted() const
Definition: PutRecordBatchResult.h:65
AWSVector.h
Aws::Firehose::Model::PutRecordBatchResult::SetRequestResponses
void SetRequestResponses(Aws::Vector< PutRecordBatchResponseEntry > &&value)
Definition: PutRecordBatchResult.h:96
Aws::Firehose::Model::PutRecordBatchResult::AddRequestResponses
PutRecordBatchResult & AddRequestResponses(const PutRecordBatchResponseEntry &value)
Definition: PutRecordBatchResult.h:114
AWS_FIREHOSE_API
#define AWS_FIREHOSE_API
Definition: Firehose_EXPORTS.h:28
Aws::Firehose::Model::PutRecordBatchResult::GetFailedPutCount
int GetFailedPutCount() const
Definition: PutRecordBatchResult.h:42
Aws::Firehose::Model::PutRecordBatchResult::GetRequestResponses
const Aws::Vector< PutRecordBatchResponseEntry > & GetRequestResponses() const
Definition: PutRecordBatchResult.h:84
Firehose_EXPORTS.h
Aws::Firehose::Model::PutRecordBatchResponseEntry
Definition: PutRecordBatchResponseEntry.h:36
Aws::Firehose::Model::PutRecordBatchResult::WithFailedPutCount
PutRecordBatchResult & WithFailedPutCount(int value)
Definition: PutRecordBatchResult.h:58
Aws::Firehose::Model::PutRecordBatchResult::SetEncrypted
void SetEncrypted(bool value)
Definition: PutRecordBatchResult.h:71
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
PutRecordBatchResponseEntry.h
Aws
Definition: AccessManagementClient.h:15
Aws::Firehose::Model::PutRecordBatchResult::WithRequestResponses
PutRecordBatchResult & WithRequestResponses(const Aws::Vector< PutRecordBatchResponseEntry > &value)
Definition: PutRecordBatchResult.h:102
Aws::Firehose::Model::PutRecordBatchResult
Definition: PutRecordBatchResult.h:29
Aws::Firehose::Model::PutRecordBatchResult::SetFailedPutCount
void SetFailedPutCount(int value)
Definition: PutRecordBatchResult.h:50
Aws::Firehose::Model::PutRecordBatchResult::AddRequestResponses
PutRecordBatchResult & AddRequestResponses(PutRecordBatchResponseEntry &&value)
Definition: PutRecordBatchResult.h:120