AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
SubscribeToShardEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kinesis/Kinesis_EXPORTS.h>
10#include <aws/kinesis/model/ChildShard.h>
11#include <aws/kinesis/model/Record.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kinesis {
23namespace Model {
24
33 public:
34 AWS_KINESIS_API SubscribeToShardEvent() = default;
37 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<Record>& GetRecords() const { return m_records; }
44 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
45 template <typename RecordsT = Aws::Vector<Record>>
46 void SetRecords(RecordsT&& value) {
47 m_recordsHasBeenSet = true;
48 m_records = std::forward<RecordsT>(value);
49 }
50 template <typename RecordsT = Aws::Vector<Record>>
52 SetRecords(std::forward<RecordsT>(value));
53 return *this;
54 }
55 template <typename RecordsT = Record>
56 SubscribeToShardEvent& AddRecords(RecordsT&& value) {
57 m_recordsHasBeenSet = true;
58 m_records.emplace_back(std::forward<RecordsT>(value));
59 return *this;
60 }
62
64
71 inline const Aws::String& GetContinuationSequenceNumber() const { return m_continuationSequenceNumber; }
72 inline bool ContinuationSequenceNumberHasBeenSet() const { return m_continuationSequenceNumberHasBeenSet; }
73 template <typename ContinuationSequenceNumberT = Aws::String>
74 void SetContinuationSequenceNumber(ContinuationSequenceNumberT&& value) {
75 m_continuationSequenceNumberHasBeenSet = true;
76 m_continuationSequenceNumber = std::forward<ContinuationSequenceNumberT>(value);
77 }
78 template <typename ContinuationSequenceNumberT = Aws::String>
79 SubscribeToShardEvent& WithContinuationSequenceNumber(ContinuationSequenceNumberT&& value) {
80 SetContinuationSequenceNumber(std::forward<ContinuationSequenceNumberT>(value));
81 return *this;
82 }
84
86
92 inline long long GetMillisBehindLatest() const { return m_millisBehindLatest; }
93 inline bool MillisBehindLatestHasBeenSet() const { return m_millisBehindLatestHasBeenSet; }
94 inline void SetMillisBehindLatest(long long value) {
95 m_millisBehindLatestHasBeenSet = true;
96 m_millisBehindLatest = value;
97 }
100 return *this;
101 }
103
105
109 inline const Aws::Vector<ChildShard>& GetChildShards() const { return m_childShards; }
110 inline bool ChildShardsHasBeenSet() const { return m_childShardsHasBeenSet; }
111 template <typename ChildShardsT = Aws::Vector<ChildShard>>
112 void SetChildShards(ChildShardsT&& value) {
113 m_childShardsHasBeenSet = true;
114 m_childShards = std::forward<ChildShardsT>(value);
115 }
116 template <typename ChildShardsT = Aws::Vector<ChildShard>>
117 SubscribeToShardEvent& WithChildShards(ChildShardsT&& value) {
118 SetChildShards(std::forward<ChildShardsT>(value));
119 return *this;
120 }
121 template <typename ChildShardsT = ChildShard>
122 SubscribeToShardEvent& AddChildShards(ChildShardsT&& value) {
123 m_childShardsHasBeenSet = true;
124 m_childShards.emplace_back(std::forward<ChildShardsT>(value));
125 return *this;
126 }
128 private:
129 Aws::Vector<Record> m_records;
130
131 Aws::String m_continuationSequenceNumber;
132
133 long long m_millisBehindLatest{0};
134
135 Aws::Vector<ChildShard> m_childShards;
136 bool m_recordsHasBeenSet = false;
137 bool m_continuationSequenceNumberHasBeenSet = false;
138 bool m_millisBehindLatestHasBeenSet = false;
139 bool m_childShardsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Kinesis
144} // namespace Aws
SubscribeToShardEvent & WithContinuationSequenceNumber(ContinuationSequenceNumberT &&value)
const Aws::Vector< Record > & GetRecords() const
AWS_KINESIS_API SubscribeToShardEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESIS_API SubscribeToShardEvent()=default
AWS_KINESIS_API SubscribeToShardEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContinuationSequenceNumber(ContinuationSequenceNumberT &&value)
SubscribeToShardEvent & AddRecords(RecordsT &&value)
SubscribeToShardEvent & WithRecords(RecordsT &&value)
const Aws::Vector< ChildShard > & GetChildShards() const
SubscribeToShardEvent & WithChildShards(ChildShardsT &&value)
SubscribeToShardEvent & WithMillisBehindLatest(long long value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
SubscribeToShardEvent & AddChildShards(ChildShardsT &&value)
const Aws::String & GetContinuationSequenceNumber() 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