AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
52 inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
53 inline SubscribeToShardEvent& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
54 inline SubscribeToShardEvent& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
55 inline SubscribeToShardEvent& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
56 inline SubscribeToShardEvent& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
58
60
67 inline const Aws::String& GetContinuationSequenceNumber() const{ return m_continuationSequenceNumber; }
68 inline bool ContinuationSequenceNumberHasBeenSet() const { return m_continuationSequenceNumberHasBeenSet; }
69 inline void SetContinuationSequenceNumber(const Aws::String& value) { m_continuationSequenceNumberHasBeenSet = true; m_continuationSequenceNumber = value; }
70 inline void SetContinuationSequenceNumber(Aws::String&& value) { m_continuationSequenceNumberHasBeenSet = true; m_continuationSequenceNumber = std::move(value); }
71 inline void SetContinuationSequenceNumber(const char* value) { m_continuationSequenceNumberHasBeenSet = true; m_continuationSequenceNumber.assign(value); }
76
78
84 inline long long GetMillisBehindLatest() const{ return m_millisBehindLatest; }
85 inline bool MillisBehindLatestHasBeenSet() const { return m_millisBehindLatestHasBeenSet; }
86 inline void SetMillisBehindLatest(long long value) { m_millisBehindLatestHasBeenSet = true; m_millisBehindLatest = value; }
87 inline SubscribeToShardEvent& WithMillisBehindLatest(long long value) { SetMillisBehindLatest(value); return *this;}
89
91
95 inline const Aws::Vector<ChildShard>& GetChildShards() const{ return m_childShards; }
96 inline bool ChildShardsHasBeenSet() const { return m_childShardsHasBeenSet; }
97 inline void SetChildShards(const Aws::Vector<ChildShard>& value) { m_childShardsHasBeenSet = true; m_childShards = value; }
98 inline void SetChildShards(Aws::Vector<ChildShard>&& value) { m_childShardsHasBeenSet = true; m_childShards = std::move(value); }
99 inline SubscribeToShardEvent& WithChildShards(const Aws::Vector<ChildShard>& value) { SetChildShards(value); return *this;}
100 inline SubscribeToShardEvent& WithChildShards(Aws::Vector<ChildShard>&& value) { SetChildShards(std::move(value)); return *this;}
101 inline SubscribeToShardEvent& AddChildShards(const ChildShard& value) { m_childShardsHasBeenSet = true; m_childShards.push_back(value); return *this; }
102 inline SubscribeToShardEvent& AddChildShards(ChildShard&& value) { m_childShardsHasBeenSet = true; m_childShards.push_back(std::move(value)); return *this; }
104 private:
105
106 Aws::Vector<Record> m_records;
107 bool m_recordsHasBeenSet = false;
108
109 Aws::String m_continuationSequenceNumber;
110 bool m_continuationSequenceNumberHasBeenSet = false;
111
112 long long m_millisBehindLatest;
113 bool m_millisBehindLatestHasBeenSet = false;
114
115 Aws::Vector<ChildShard> m_childShards;
116 bool m_childShardsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Kinesis
121} // namespace Aws
SubscribeToShardEvent & WithChildShards(Aws::Vector< ChildShard > &&value)
const Aws::Vector< Record > & GetRecords() const
AWS_KINESIS_API SubscribeToShardEvent(Aws::Utils::Json::JsonView jsonValue)
void SetContinuationSequenceNumber(Aws::String &&value)
SubscribeToShardEvent & WithRecords(const Aws::Vector< Record > &value)
void SetContinuationSequenceNumber(const Aws::String &value)
AWS_KINESIS_API SubscribeToShardEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscribeToShardEvent & WithChildShards(const Aws::Vector< ChildShard > &value)
SubscribeToShardEvent & WithContinuationSequenceNumber(const Aws::String &value)
SubscribeToShardEvent & AddChildShards(const ChildShard &value)
SubscribeToShardEvent & WithRecords(Aws::Vector< Record > &&value)
SubscribeToShardEvent & AddRecords(Record &&value)
void SetRecords(Aws::Vector< Record > &&value)
SubscribeToShardEvent & AddChildShards(ChildShard &&value)
const Aws::Vector< ChildShard > & GetChildShards() const
SubscribeToShardEvent & WithContinuationSequenceNumber(const char *value)
void SetRecords(const Aws::Vector< Record > &value)
SubscribeToShardEvent & WithMillisBehindLatest(long long value)
SubscribeToShardEvent & AddRecords(const Record &value)
void SetChildShards(Aws::Vector< ChildShard > &&value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContinuationSequenceNumber() const
void SetChildShards(const Aws::Vector< ChildShard > &value)
SubscribeToShardEvent & WithContinuationSequenceNumber(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue