AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRecordsResult.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kinesis/model/EncryptionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/kinesis/model/PutRecordsResultEntry.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Kinesis
27{
28namespace Model
29{
36 {
37 public:
38 AWS_KINESIS_API PutRecordsResult();
41
42
44
48 inline int GetFailedRecordCount() const{ return m_failedRecordCount; }
49 inline void SetFailedRecordCount(int value) { m_failedRecordCount = value; }
50 inline PutRecordsResult& WithFailedRecordCount(int value) { SetFailedRecordCount(value); return *this;}
52
54
61 inline const Aws::Vector<PutRecordsResultEntry>& GetRecords() const{ return m_records; }
62 inline void SetRecords(const Aws::Vector<PutRecordsResultEntry>& value) { m_records = value; }
63 inline void SetRecords(Aws::Vector<PutRecordsResultEntry>&& value) { m_records = std::move(value); }
64 inline PutRecordsResult& WithRecords(const Aws::Vector<PutRecordsResultEntry>& value) { SetRecords(value); return *this;}
65 inline PutRecordsResult& WithRecords(Aws::Vector<PutRecordsResultEntry>&& value) { SetRecords(std::move(value)); return *this;}
66 inline PutRecordsResult& AddRecords(const PutRecordsResultEntry& value) { m_records.push_back(value); return *this; }
67 inline PutRecordsResult& AddRecords(PutRecordsResultEntry&& value) { m_records.push_back(std::move(value)); return *this; }
69
71
77 inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
78 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionType = value; }
79 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionType = std::move(value); }
80 inline PutRecordsResult& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
81 inline PutRecordsResult& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
83
85
86 inline const Aws::String& GetRequestId() const{ return m_requestId; }
87 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
88 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
89 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
90 inline PutRecordsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
91 inline PutRecordsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
92 inline PutRecordsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
94 private:
95
96 int m_failedRecordCount;
97
99
100 EncryptionType m_encryptionType;
101
102 Aws::String m_requestId;
103 };
104
105} // namespace Model
106} // namespace Kinesis
107} // namespace Aws
PutRecordsResult & WithRequestId(const char *value)
void SetEncryptionType(const EncryptionType &value)
PutRecordsResult & WithRequestId(Aws::String &&value)
PutRecordsResult & AddRecords(const PutRecordsResultEntry &value)
PutRecordsResult & WithRecords(Aws::Vector< PutRecordsResultEntry > &&value)
void SetEncryptionType(EncryptionType &&value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
AWS_KINESIS_API PutRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KINESIS_API PutRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< PutRecordsResultEntry > & GetRecords() const
void SetRecords(const Aws::Vector< PutRecordsResultEntry > &value)
PutRecordsResult & WithRecords(const Aws::Vector< PutRecordsResultEntry > &value)
PutRecordsResult & WithEncryptionType(const EncryptionType &value)
PutRecordsResult & WithEncryptionType(EncryptionType &&value)
PutRecordsResult & WithFailedRecordCount(int value)
void SetRecords(Aws::Vector< PutRecordsResultEntry > &&value)
PutRecordsResult & AddRecords(PutRecordsResultEntry &&value)
const EncryptionType & GetEncryptionType() const
void SetRequestId(Aws::String &&value)
PutRecordsResult & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue