AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SubscribeToShardEvent.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{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Kinesis
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_KINESIS_API SubscribeToShardEvent() = default;
42 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<Record>& GetRecords() const { return m_records; }
50 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
51 template<typename RecordsT = Aws::Vector<Record>>
52 void SetRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records = std::forward<RecordsT>(value); }
53 template<typename RecordsT = Aws::Vector<Record>>
54 SubscribeToShardEvent& WithRecords(RecordsT&& value) { SetRecords(std::forward<RecordsT>(value)); return *this;}
55 template<typename RecordsT = Record>
56 SubscribeToShardEvent& AddRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records.emplace_back(std::forward<RecordsT>(value)); return *this; }
58
60
67 inline const Aws::String& GetContinuationSequenceNumber() const { return m_continuationSequenceNumber; }
68 inline bool ContinuationSequenceNumberHasBeenSet() const { return m_continuationSequenceNumberHasBeenSet; }
69 template<typename ContinuationSequenceNumberT = Aws::String>
70 void SetContinuationSequenceNumber(ContinuationSequenceNumberT&& value) { m_continuationSequenceNumberHasBeenSet = true; m_continuationSequenceNumber = std::forward<ContinuationSequenceNumberT>(value); }
71 template<typename ContinuationSequenceNumberT = Aws::String>
72 SubscribeToShardEvent& WithContinuationSequenceNumber(ContinuationSequenceNumberT&& value) { SetContinuationSequenceNumber(std::forward<ContinuationSequenceNumberT>(value)); return *this;}
74
76
82 inline long long GetMillisBehindLatest() const { return m_millisBehindLatest; }
83 inline bool MillisBehindLatestHasBeenSet() const { return m_millisBehindLatestHasBeenSet; }
84 inline void SetMillisBehindLatest(long long value) { m_millisBehindLatestHasBeenSet = true; m_millisBehindLatest = value; }
85 inline SubscribeToShardEvent& WithMillisBehindLatest(long long value) { SetMillisBehindLatest(value); return *this;}
87
89
93 inline const Aws::Vector<ChildShard>& GetChildShards() const { return m_childShards; }
94 inline bool ChildShardsHasBeenSet() const { return m_childShardsHasBeenSet; }
95 template<typename ChildShardsT = Aws::Vector<ChildShard>>
96 void SetChildShards(ChildShardsT&& value) { m_childShardsHasBeenSet = true; m_childShards = std::forward<ChildShardsT>(value); }
97 template<typename ChildShardsT = Aws::Vector<ChildShard>>
98 SubscribeToShardEvent& WithChildShards(ChildShardsT&& value) { SetChildShards(std::forward<ChildShardsT>(value)); return *this;}
99 template<typename ChildShardsT = ChildShard>
100 SubscribeToShardEvent& AddChildShards(ChildShardsT&& value) { m_childShardsHasBeenSet = true; m_childShards.emplace_back(std::forward<ChildShardsT>(value)); return *this; }
102 private:
103
104 Aws::Vector<Record> m_records;
105 bool m_recordsHasBeenSet = false;
106
107 Aws::String m_continuationSequenceNumber;
108 bool m_continuationSequenceNumberHasBeenSet = false;
109
110 long long m_millisBehindLatest{0};
111 bool m_millisBehindLatestHasBeenSet = false;
112
113 Aws::Vector<ChildShard> m_childShards;
114 bool m_childShardsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Kinesis
119} // 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