AWS SDK for C++  1.9.103
AWS SDK for C++
StartingPosition.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Kinesis
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
55  inline const ShardIteratorType& GetType() const{ return m_type; }
56 
70  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 
85  inline void SetType(const ShardIteratorType& value) { m_typeHasBeenSet = true; m_type = value; }
86 
100  inline void SetType(ShardIteratorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
101 
115  inline StartingPosition& WithType(const ShardIteratorType& value) { SetType(value); return *this;}
116 
130  inline StartingPosition& WithType(ShardIteratorType&& value) { SetType(std::move(value)); return *this;}
131 
132 
138  inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
139 
145  inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
146 
152  inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
153 
159  inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
160 
166  inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
167 
173  inline StartingPosition& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
174 
180  inline StartingPosition& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
181 
187  inline StartingPosition& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
188 
189 
200  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
201 
212  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
213 
224  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
225 
236  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
237 
248  inline StartingPosition& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
249 
260  inline StartingPosition& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
261 
262  private:
263 
264  ShardIteratorType m_type;
265  bool m_typeHasBeenSet;
266 
267  Aws::String m_sequenceNumber;
268  bool m_sequenceNumberHasBeenSet;
269 
270  Aws::Utils::DateTime m_timestamp;
271  bool m_timestampHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace Kinesis
276 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Kinesis::Model::StartingPosition::StartingPosition
StartingPosition()
Aws::Kinesis::Model::StartingPosition::WithSequenceNumber
StartingPosition & WithSequenceNumber(const Aws::String &value)
Definition: StartingPosition.h:173
Aws::Kinesis::Model::StartingPosition::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: StartingPosition.h:236
Aws::Kinesis::Model::StartingPosition::StartingPosition
StartingPosition(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::StartingPosition::operator=
StartingPosition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::StartingPosition::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: StartingPosition.h:70
ShardIteratorType.h
DateTime.h
Aws::Kinesis::Model::StartingPosition::WithSequenceNumber
StartingPosition & WithSequenceNumber(const char *value)
Definition: StartingPosition.h:187
Aws::Kinesis::Model::StartingPosition::WithTimestamp
StartingPosition & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: StartingPosition.h:248
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::StartingPosition::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: StartingPosition.h:200
Aws::Kinesis::Model::StartingPosition::WithType
StartingPosition & WithType(const ShardIteratorType &value)
Definition: StartingPosition.h:115
Aws::Kinesis::Model::StartingPosition::SetSequenceNumber
void SetSequenceNumber(const Aws::String &value)
Definition: StartingPosition.h:152
Aws::Kinesis::Model::StartingPosition::WithSequenceNumber
StartingPosition & WithSequenceNumber(Aws::String &&value)
Definition: StartingPosition.h:180
Aws::Kinesis::Model::StartingPosition::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: StartingPosition.h:224
Aws::Kinesis::Model::StartingPosition::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: StartingPosition.h:212
Aws::Kinesis::Model::StartingPosition::SetType
void SetType(ShardIteratorType &&value)
Definition: StartingPosition.h:100
Aws::Kinesis::Model::StartingPosition::WithTimestamp
StartingPosition & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: StartingPosition.h:260
Aws::Kinesis::Model::StartingPosition::GetSequenceNumber
const Aws::String & GetSequenceNumber() const
Definition: StartingPosition.h:138
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::StartingPosition::SetType
void SetType(const ShardIteratorType &value)
Definition: StartingPosition.h:85
Kinesis_EXPORTS.h
Aws::Kinesis::Model::StartingPosition::SetSequenceNumber
void SetSequenceNumber(const char *value)
Definition: StartingPosition.h:166
Aws::Kinesis::Model::StartingPosition::SequenceNumberHasBeenSet
bool SequenceNumberHasBeenSet() const
Definition: StartingPosition.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::StartingPosition::GetType
const ShardIteratorType & GetType() const
Definition: StartingPosition.h:55
Aws::Kinesis::Model::ShardIteratorType
ShardIteratorType
Definition: ShardIteratorType.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::StartingPosition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kinesis::Model::StartingPosition
Definition: StartingPosition.h:34
Aws::Kinesis::Model::StartingPosition::WithType
StartingPosition & WithType(ShardIteratorType &&value)
Definition: StartingPosition.h:130
Aws::Kinesis::Model::StartingPosition::SetSequenceNumber
void SetSequenceNumber(Aws::String &&value)
Definition: StartingPosition.h:159