AWS SDK for C++  1.9.160
AWS SDK for C++
SubscribeToShardEvent.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Kinesis
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
48  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
49 
53  inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
54 
58  inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
59 
63  inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
64 
68  inline SubscribeToShardEvent& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
69 
73  inline SubscribeToShardEvent& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
74 
78  inline SubscribeToShardEvent& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
79 
83  inline SubscribeToShardEvent& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
84 
85 
93  inline const Aws::String& GetContinuationSequenceNumber() const{ return m_continuationSequenceNumber; }
94 
102  inline bool ContinuationSequenceNumberHasBeenSet() const { return m_continuationSequenceNumberHasBeenSet; }
103 
111  inline void SetContinuationSequenceNumber(const Aws::String& value) { m_continuationSequenceNumberHasBeenSet = true; m_continuationSequenceNumber = value; }
112 
120  inline void SetContinuationSequenceNumber(Aws::String&& value) { m_continuationSequenceNumberHasBeenSet = true; m_continuationSequenceNumber = std::move(value); }
121 
129  inline void SetContinuationSequenceNumber(const char* value) { m_continuationSequenceNumberHasBeenSet = true; m_continuationSequenceNumber.assign(value); }
130 
138  inline SubscribeToShardEvent& WithContinuationSequenceNumber(const Aws::String& value) { SetContinuationSequenceNumber(value); return *this;}
139 
147  inline SubscribeToShardEvent& WithContinuationSequenceNumber(Aws::String&& value) { SetContinuationSequenceNumber(std::move(value)); return *this;}
148 
156  inline SubscribeToShardEvent& WithContinuationSequenceNumber(const char* value) { SetContinuationSequenceNumber(value); return *this;}
157 
158 
165  inline long long GetMillisBehindLatest() const{ return m_millisBehindLatest; }
166 
173  inline bool MillisBehindLatestHasBeenSet() const { return m_millisBehindLatestHasBeenSet; }
174 
181  inline void SetMillisBehindLatest(long long value) { m_millisBehindLatestHasBeenSet = true; m_millisBehindLatest = value; }
182 
189  inline SubscribeToShardEvent& WithMillisBehindLatest(long long value) { SetMillisBehindLatest(value); return *this;}
190 
191 
196  inline const Aws::Vector<ChildShard>& GetChildShards() const{ return m_childShards; }
197 
202  inline bool ChildShardsHasBeenSet() const { return m_childShardsHasBeenSet; }
203 
208  inline void SetChildShards(const Aws::Vector<ChildShard>& value) { m_childShardsHasBeenSet = true; m_childShards = value; }
209 
214  inline void SetChildShards(Aws::Vector<ChildShard>&& value) { m_childShardsHasBeenSet = true; m_childShards = std::move(value); }
215 
220  inline SubscribeToShardEvent& WithChildShards(const Aws::Vector<ChildShard>& value) { SetChildShards(value); return *this;}
221 
226  inline SubscribeToShardEvent& WithChildShards(Aws::Vector<ChildShard>&& value) { SetChildShards(std::move(value)); return *this;}
227 
232  inline SubscribeToShardEvent& AddChildShards(const ChildShard& value) { m_childShardsHasBeenSet = true; m_childShards.push_back(value); return *this; }
233 
238  inline SubscribeToShardEvent& AddChildShards(ChildShard&& value) { m_childShardsHasBeenSet = true; m_childShards.push_back(std::move(value)); return *this; }
239 
240  private:
241 
242  Aws::Vector<Record> m_records;
243  bool m_recordsHasBeenSet;
244 
245  Aws::String m_continuationSequenceNumber;
246  bool m_continuationSequenceNumberHasBeenSet;
247 
248  long long m_millisBehindLatest;
249  bool m_millisBehindLatestHasBeenSet;
250 
251  Aws::Vector<ChildShard> m_childShards;
252  bool m_childShardsHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace Kinesis
257 } // namespace Aws
Aws::Kinesis::Model::SubscribeToShardEvent::WithContinuationSequenceNumber
SubscribeToShardEvent & WithContinuationSequenceNumber(const char *value)
Definition: SubscribeToShardEvent.h:156
Aws::Kinesis::Model::SubscribeToShardEvent::AddChildShards
SubscribeToShardEvent & AddChildShards(ChildShard &&value)
Definition: SubscribeToShardEvent.h:238
Aws::Kinesis::Model::SubscribeToShardEvent::WithContinuationSequenceNumber
SubscribeToShardEvent & WithContinuationSequenceNumber(Aws::String &&value)
Definition: SubscribeToShardEvent.h:147
Aws::Kinesis::Model::SubscribeToShardEvent
Definition: SubscribeToShardEvent.h:37
Aws::Kinesis::Model::Record
Definition: Record.h:36
Aws::Kinesis::Model::SubscribeToShardEvent::AddChildShards
SubscribeToShardEvent & AddChildShards(const ChildShard &value)
Definition: SubscribeToShardEvent.h:232
Aws::Kinesis::Model::SubscribeToShardEvent::ContinuationSequenceNumberHasBeenSet
bool ContinuationSequenceNumberHasBeenSet() const
Definition: SubscribeToShardEvent.h:102
Aws::Kinesis::Model::SubscribeToShardEvent::operator=
SubscribeToShardEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::SubscribeToShardEvent::GetContinuationSequenceNumber
const Aws::String & GetContinuationSequenceNumber() const
Definition: SubscribeToShardEvent.h:93
Aws::Kinesis::Model::SubscribeToShardEvent::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: SubscribeToShardEvent.h:48
Record.h
Aws::Kinesis::Model::SubscribeToShardEvent::GetChildShards
const Aws::Vector< ChildShard > & GetChildShards() const
Definition: SubscribeToShardEvent.h:196
Aws::Kinesis::Model::SubscribeToShardEvent::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: SubscribeToShardEvent.h:63
Aws::Kinesis::Model::SubscribeToShardEvent::AddRecords
SubscribeToShardEvent & AddRecords(const Record &value)
Definition: SubscribeToShardEvent.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kinesis::Model::ChildShard
Definition: ChildShard.h:35
Aws::Kinesis::Model::SubscribeToShardEvent::SetContinuationSequenceNumber
void SetContinuationSequenceNumber(const char *value)
Definition: SubscribeToShardEvent.h:129
AWSVector.h
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::SubscribeToShardEvent::SetChildShards
void SetChildShards(const Aws::Vector< ChildShard > &value)
Definition: SubscribeToShardEvent.h:208
Aws::Kinesis::Model::SubscribeToShardEvent::AddRecords
SubscribeToShardEvent & AddRecords(Record &&value)
Definition: SubscribeToShardEvent.h:83
Aws::Kinesis::Model::SubscribeToShardEvent::SubscribeToShardEvent
SubscribeToShardEvent()
Aws::Kinesis::Model::SubscribeToShardEvent::ChildShardsHasBeenSet
bool ChildShardsHasBeenSet() const
Definition: SubscribeToShardEvent.h:202
Aws::Kinesis::Model::SubscribeToShardEvent::SetContinuationSequenceNumber
void SetContinuationSequenceNumber(Aws::String &&value)
Definition: SubscribeToShardEvent.h:120
Aws::Kinesis::Model::SubscribeToShardEvent::WithChildShards
SubscribeToShardEvent & WithChildShards(const Aws::Vector< ChildShard > &value)
Definition: SubscribeToShardEvent.h:220
Aws::Kinesis::Model::SubscribeToShardEvent::RecordsHasBeenSet
bool RecordsHasBeenSet() const
Definition: SubscribeToShardEvent.h:53
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Kinesis::Model::SubscribeToShardEvent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ChildShard.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::SubscribeToShardEvent::SetContinuationSequenceNumber
void SetContinuationSequenceNumber(const Aws::String &value)
Definition: SubscribeToShardEvent.h:111
Aws::Kinesis::Model::SubscribeToShardEvent::SubscribeToShardEvent
SubscribeToShardEvent(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::SubscribeToShardEvent::GetMillisBehindLatest
long long GetMillisBehindLatest() const
Definition: SubscribeToShardEvent.h:165
Aws::Kinesis::Model::SubscribeToShardEvent::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: SubscribeToShardEvent.h:58
Kinesis_EXPORTS.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::SubscribeToShardEvent::SetChildShards
void SetChildShards(Aws::Vector< ChildShard > &&value)
Definition: SubscribeToShardEvent.h:214
Aws::Kinesis::Model::SubscribeToShardEvent::WithMillisBehindLatest
SubscribeToShardEvent & WithMillisBehindLatest(long long value)
Definition: SubscribeToShardEvent.h:189
Aws::Kinesis::Model::SubscribeToShardEvent::WithRecords
SubscribeToShardEvent & WithRecords(const Aws::Vector< Record > &value)
Definition: SubscribeToShardEvent.h:68
Aws::Kinesis::Model::SubscribeToShardEvent::SetMillisBehindLatest
void SetMillisBehindLatest(long long value)
Definition: SubscribeToShardEvent.h:181
Aws::Kinesis::Model::SubscribeToShardEvent::WithContinuationSequenceNumber
SubscribeToShardEvent & WithContinuationSequenceNumber(const Aws::String &value)
Definition: SubscribeToShardEvent.h:138
Aws::Kinesis::Model::SubscribeToShardEvent::MillisBehindLatestHasBeenSet
bool MillisBehindLatestHasBeenSet() const
Definition: SubscribeToShardEvent.h:173
Aws::Kinesis::Model::SubscribeToShardEvent::WithChildShards
SubscribeToShardEvent & WithChildShards(Aws::Vector< ChildShard > &&value)
Definition: SubscribeToShardEvent.h:226
Aws::Kinesis::Model::SubscribeToShardEvent::WithRecords
SubscribeToShardEvent & WithRecords(Aws::Vector< Record > &&value)
Definition: SubscribeToShardEvent.h:73