AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetRecordsResult.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesis/model/Record.h>
11#include <aws/kinesis/model/ChildShard.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 GetRecordsResult();
41
42
44
47 inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
48 inline void SetRecords(const Aws::Vector<Record>& value) { m_records = value; }
49 inline void SetRecords(Aws::Vector<Record>&& value) { m_records = std::move(value); }
50 inline GetRecordsResult& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
51 inline GetRecordsResult& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
52 inline GetRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; }
53 inline GetRecordsResult& AddRecords(Record&& value) { m_records.push_back(std::move(value)); return *this; }
55
57
62 inline const Aws::String& GetNextShardIterator() const{ return m_nextShardIterator; }
63 inline void SetNextShardIterator(const Aws::String& value) { m_nextShardIterator = value; }
64 inline void SetNextShardIterator(Aws::String&& value) { m_nextShardIterator = std::move(value); }
65 inline void SetNextShardIterator(const char* value) { m_nextShardIterator.assign(value); }
66 inline GetRecordsResult& WithNextShardIterator(const Aws::String& value) { SetNextShardIterator(value); return *this;}
67 inline GetRecordsResult& WithNextShardIterator(Aws::String&& value) { SetNextShardIterator(std::move(value)); return *this;}
68 inline GetRecordsResult& WithNextShardIterator(const char* value) { SetNextShardIterator(value); return *this;}
70
72
78 inline long long GetMillisBehindLatest() const{ return m_millisBehindLatest; }
79 inline void SetMillisBehindLatest(long long value) { m_millisBehindLatest = value; }
80 inline GetRecordsResult& WithMillisBehindLatest(long long value) { SetMillisBehindLatest(value); return *this;}
82
84
89 inline const Aws::Vector<ChildShard>& GetChildShards() const{ return m_childShards; }
90 inline void SetChildShards(const Aws::Vector<ChildShard>& value) { m_childShards = value; }
91 inline void SetChildShards(Aws::Vector<ChildShard>&& value) { m_childShards = std::move(value); }
92 inline GetRecordsResult& WithChildShards(const Aws::Vector<ChildShard>& value) { SetChildShards(value); return *this;}
93 inline GetRecordsResult& WithChildShards(Aws::Vector<ChildShard>&& value) { SetChildShards(std::move(value)); return *this;}
94 inline GetRecordsResult& AddChildShards(const ChildShard& value) { m_childShards.push_back(value); return *this; }
95 inline GetRecordsResult& AddChildShards(ChildShard&& value) { m_childShards.push_back(std::move(value)); return *this; }
97
99
100 inline const Aws::String& GetRequestId() const{ return m_requestId; }
101 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
102 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
103 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
104 inline GetRecordsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
105 inline GetRecordsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
106 inline GetRecordsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
108 private:
109
110 Aws::Vector<Record> m_records;
111
112 Aws::String m_nextShardIterator;
113
114 long long m_millisBehindLatest;
115
116 Aws::Vector<ChildShard> m_childShards;
117
118 Aws::String m_requestId;
119 };
120
121} // namespace Model
122} // namespace Kinesis
123} // namespace Aws
GetRecordsResult & WithRequestId(Aws::String &&value)
GetRecordsResult & AddRecords(const Record &value)
const Aws::Vector< Record > & GetRecords() const
GetRecordsResult & WithMillisBehindLatest(long long value)
GetRecordsResult & WithRequestId(const char *value)
void SetChildShards(const Aws::Vector< ChildShard > &value)
GetRecordsResult & WithRequestId(const Aws::String &value)
AWS_KINESIS_API GetRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNextShardIterator(const char *value)
const Aws::Vector< ChildShard > & GetChildShards() const
const Aws::String & GetNextShardIterator() const
GetRecordsResult & WithNextShardIterator(const Aws::String &value)
void SetNextShardIterator(const Aws::String &value)
GetRecordsResult & AddChildShards(const ChildShard &value)
void SetRequestId(Aws::String &&value)
GetRecordsResult & WithRecords(const Aws::Vector< Record > &value)
void SetChildShards(Aws::Vector< ChildShard > &&value)
GetRecordsResult & WithChildShards(const Aws::Vector< ChildShard > &value)
GetRecordsResult & WithChildShards(Aws::Vector< ChildShard > &&value)
void SetNextShardIterator(Aws::String &&value)
void SetRecords(const Aws::Vector< Record > &value)
void SetRecords(Aws::Vector< Record > &&value)
GetRecordsResult & WithNextShardIterator(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetMillisBehindLatest(long long value)
GetRecordsResult & WithRecords(Aws::Vector< Record > &&value)
AWS_KINESIS_API GetRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecordsResult & AddChildShards(ChildShard &&value)
GetRecordsResult & WithNextShardIterator(const char *value)
GetRecordsResult & AddRecords(Record &&value)
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue