AWS SDK for C++  1.9.103
AWS SDK for C++
GetRecordsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace Kinesis
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
47 
51  inline void SetRecords(const Aws::Vector<Record>& value) { m_records = value; }
52 
56  inline void SetRecords(Aws::Vector<Record>&& value) { m_records = std::move(value); }
57 
61  inline GetRecordsResult& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
62 
66  inline GetRecordsResult& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
67 
71  inline GetRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; }
72 
76  inline GetRecordsResult& AddRecords(Record&& value) { m_records.push_back(std::move(value)); return *this; }
77 
78 
84  inline const Aws::String& GetNextShardIterator() const{ return m_nextShardIterator; }
85 
91  inline void SetNextShardIterator(const Aws::String& value) { m_nextShardIterator = value; }
92 
98  inline void SetNextShardIterator(Aws::String&& value) { m_nextShardIterator = std::move(value); }
99 
105  inline void SetNextShardIterator(const char* value) { m_nextShardIterator.assign(value); }
106 
112  inline GetRecordsResult& WithNextShardIterator(const Aws::String& value) { SetNextShardIterator(value); return *this;}
113 
119  inline GetRecordsResult& WithNextShardIterator(Aws::String&& value) { SetNextShardIterator(std::move(value)); return *this;}
120 
126  inline GetRecordsResult& WithNextShardIterator(const char* value) { SetNextShardIterator(value); return *this;}
127 
128 
135  inline long long GetMillisBehindLatest() const{ return m_millisBehindLatest; }
136 
143  inline void SetMillisBehindLatest(long long value) { m_millisBehindLatest = value; }
144 
151  inline GetRecordsResult& WithMillisBehindLatest(long long value) { SetMillisBehindLatest(value); return *this;}
152 
153 
154 
155  inline const Aws::Vector<ChildShard>& GetChildShards() const{ return m_childShards; }
156 
157 
158  inline void SetChildShards(const Aws::Vector<ChildShard>& value) { m_childShards = value; }
159 
160 
161  inline void SetChildShards(Aws::Vector<ChildShard>&& value) { m_childShards = std::move(value); }
162 
163 
164  inline GetRecordsResult& WithChildShards(const Aws::Vector<ChildShard>& value) { SetChildShards(value); return *this;}
165 
166 
167  inline GetRecordsResult& WithChildShards(Aws::Vector<ChildShard>&& value) { SetChildShards(std::move(value)); return *this;}
168 
169 
170  inline GetRecordsResult& AddChildShards(const ChildShard& value) { m_childShards.push_back(value); return *this; }
171 
172 
173  inline GetRecordsResult& AddChildShards(ChildShard&& value) { m_childShards.push_back(std::move(value)); return *this; }
174 
175  private:
176 
177  Aws::Vector<Record> m_records;
178 
179  Aws::String m_nextShardIterator;
180 
181  long long m_millisBehindLatest;
182 
183  Aws::Vector<ChildShard> m_childShards;
184  };
185 
186 } // namespace Model
187 } // namespace Kinesis
188 } // namespace Aws
Aws::Kinesis::Model::GetRecordsResult::operator=
GetRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Kinesis::Model::GetRecordsResult::WithNextShardIterator
GetRecordsResult & WithNextShardIterator(const Aws::String &value)
Definition: GetRecordsResult.h:112
Aws::Kinesis::Model::GetRecordsResult::WithChildShards
GetRecordsResult & WithChildShards(Aws::Vector< ChildShard > &&value)
Definition: GetRecordsResult.h:167
Aws::Kinesis::Model::Record
Definition: Record.h:36
Aws::Kinesis::Model::GetRecordsResult::SetMillisBehindLatest
void SetMillisBehindLatest(long long value)
Definition: GetRecordsResult.h:143
Aws::Kinesis::Model::GetRecordsResult::WithMillisBehindLatest
GetRecordsResult & WithMillisBehindLatest(long long value)
Definition: GetRecordsResult.h:151
Aws::Kinesis::Model::GetRecordsResult::AddRecords
GetRecordsResult & AddRecords(Record &&value)
Definition: GetRecordsResult.h:76
Aws::Kinesis::Model::GetRecordsResult::GetRecordsResult
GetRecordsResult()
Aws::Kinesis::Model::GetRecordsResult::AddChildShards
GetRecordsResult & AddChildShards(ChildShard &&value)
Definition: GetRecordsResult.h:173
Aws::Kinesis::Model::GetRecordsResult::SetChildShards
void SetChildShards(const Aws::Vector< ChildShard > &value)
Definition: GetRecordsResult.h:158
Aws::Kinesis::Model::GetRecordsResult::AddRecords
GetRecordsResult & AddRecords(const Record &value)
Definition: GetRecordsResult.h:71
Record.h
Aws::Kinesis::Model::GetRecordsResult::SetChildShards
void SetChildShards(Aws::Vector< ChildShard > &&value)
Definition: GetRecordsResult.h:161
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kinesis::Model::GetRecordsResult::WithNextShardIterator
GetRecordsResult & WithNextShardIterator(const char *value)
Definition: GetRecordsResult.h:126
Aws::Kinesis::Model::ChildShard
Definition: ChildShard.h:29
AWSVector.h
Aws::Kinesis::Model::GetRecordsResult::SetNextShardIterator
void SetNextShardIterator(const Aws::String &value)
Definition: GetRecordsResult.h:91
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::GetRecordsResult::WithChildShards
GetRecordsResult & WithChildShards(const Aws::Vector< ChildShard > &value)
Definition: GetRecordsResult.h:164
Aws::Kinesis::Model::GetRecordsResult::WithRecords
GetRecordsResult & WithRecords(const Aws::Vector< Record > &value)
Definition: GetRecordsResult.h:61
Aws::Kinesis::Model::GetRecordsResult::SetNextShardIterator
void SetNextShardIterator(Aws::String &&value)
Definition: GetRecordsResult.h:98
Aws::Kinesis::Model::GetRecordsResult::GetNextShardIterator
const Aws::String & GetNextShardIterator() const
Definition: GetRecordsResult.h:84
Aws::Kinesis::Model::GetRecordsResult::GetRecordsResult
GetRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Kinesis::Model::GetRecordsResult::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: GetRecordsResult.h:56
AWSString.h
ChildShard.h
Aws::Kinesis::Model::GetRecordsResult::AddChildShards
GetRecordsResult & AddChildShards(const ChildShard &value)
Definition: GetRecordsResult.h:170
Kinesis_EXPORTS.h
Aws::Kinesis::Model::GetRecordsResult::GetChildShards
const Aws::Vector< ChildShard > & GetChildShards() const
Definition: GetRecordsResult.h:155
Aws::Kinesis::Model::GetRecordsResult::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: GetRecordsResult.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::GetRecordsResult::GetMillisBehindLatest
long long GetMillisBehindLatest() const
Definition: GetRecordsResult.h:135
Aws::Kinesis::Model::GetRecordsResult::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: GetRecordsResult.h:51
Aws::Kinesis::Model::GetRecordsResult::SetNextShardIterator
void SetNextShardIterator(const char *value)
Definition: GetRecordsResult.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::GetRecordsResult
Definition: GetRecordsResult.h:36
Aws::Kinesis::Model::GetRecordsResult::WithRecords
GetRecordsResult & WithRecords(Aws::Vector< Record > &&value)
Definition: GetRecordsResult.h:66
Aws::Kinesis::Model::GetRecordsResult::WithNextShardIterator
GetRecordsResult & WithNextShardIterator(Aws::String &&value)
Definition: GetRecordsResult.h:119