AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
41
42
44
47 inline const Aws::Vector<Record>& GetRecords() const { return m_records; }
48 template<typename RecordsT = Aws::Vector<Record>>
49 void SetRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records = std::forward<RecordsT>(value); }
50 template<typename RecordsT = Aws::Vector<Record>>
51 GetRecordsResult& WithRecords(RecordsT&& value) { SetRecords(std::forward<RecordsT>(value)); return *this;}
52 template<typename RecordsT = Record>
53 GetRecordsResult& AddRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records.emplace_back(std::forward<RecordsT>(value)); return *this; }
55
57
62 inline const Aws::String& GetNextShardIterator() const { return m_nextShardIterator; }
63 template<typename NextShardIteratorT = Aws::String>
64 void SetNextShardIterator(NextShardIteratorT&& value) { m_nextShardIteratorHasBeenSet = true; m_nextShardIterator = std::forward<NextShardIteratorT>(value); }
65 template<typename NextShardIteratorT = Aws::String>
66 GetRecordsResult& WithNextShardIterator(NextShardIteratorT&& value) { SetNextShardIterator(std::forward<NextShardIteratorT>(value)); return *this;}
68
70
76 inline long long GetMillisBehindLatest() const { return m_millisBehindLatest; }
77 inline void SetMillisBehindLatest(long long value) { m_millisBehindLatestHasBeenSet = true; m_millisBehindLatest = value; }
78 inline GetRecordsResult& WithMillisBehindLatest(long long value) { SetMillisBehindLatest(value); return *this;}
80
82
87 inline const Aws::Vector<ChildShard>& GetChildShards() const { return m_childShards; }
88 template<typename ChildShardsT = Aws::Vector<ChildShard>>
89 void SetChildShards(ChildShardsT&& value) { m_childShardsHasBeenSet = true; m_childShards = std::forward<ChildShardsT>(value); }
90 template<typename ChildShardsT = Aws::Vector<ChildShard>>
91 GetRecordsResult& WithChildShards(ChildShardsT&& value) { SetChildShards(std::forward<ChildShardsT>(value)); return *this;}
92 template<typename ChildShardsT = ChildShard>
93 GetRecordsResult& AddChildShards(ChildShardsT&& value) { m_childShardsHasBeenSet = true; m_childShards.emplace_back(std::forward<ChildShardsT>(value)); return *this; }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template<typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
101 template<typename RequestIdT = Aws::String>
102 GetRecordsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
104 private:
105
106 Aws::Vector<Record> m_records;
107 bool m_recordsHasBeenSet = false;
108
109 Aws::String m_nextShardIterator;
110 bool m_nextShardIteratorHasBeenSet = false;
111
112 long long m_millisBehindLatest{0};
113 bool m_millisBehindLatestHasBeenSet = false;
114
115 Aws::Vector<ChildShard> m_childShards;
116 bool m_childShardsHasBeenSet = false;
117
118 Aws::String m_requestId;
119 bool m_requestIdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Kinesis
124} // namespace Aws
const Aws::Vector< Record > & GetRecords() const
GetRecordsResult & WithRequestId(RequestIdT &&value)
GetRecordsResult & WithMillisBehindLatest(long long value)
void SetNextShardIterator(NextShardIteratorT &&value)
GetRecordsResult & WithNextShardIterator(NextShardIteratorT &&value)
GetRecordsResult & AddRecords(RecordsT &&value)
GetRecordsResult & WithRecords(RecordsT &&value)
AWS_KINESIS_API GetRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecordsResult & AddChildShards(ChildShardsT &&value)
AWS_KINESIS_API GetRecordsResult()=default
const Aws::Vector< ChildShard > & GetChildShards() const
const Aws::String & GetNextShardIterator() const
GetRecordsResult & WithChildShards(ChildShardsT &&value)
void SetChildShards(ChildShardsT &&value)
void SetMillisBehindLatest(long long value)
AWS_KINESIS_API GetRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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