AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartingPosition.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/model/ShardIteratorType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kinesis
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_KINESIS_API StartingPosition() = default;
38 AWS_KINESIS_API StartingPosition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
57 inline ShardIteratorType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(ShardIteratorType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline StartingPosition& WithType(ShardIteratorType value) { SetType(value); return *this;}
62
64
69 inline const Aws::String& GetSequenceNumber() const { return m_sequenceNumber; }
70 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
71 template<typename SequenceNumberT = Aws::String>
72 void SetSequenceNumber(SequenceNumberT&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::forward<SequenceNumberT>(value); }
73 template<typename SequenceNumberT = Aws::String>
74 StartingPosition& WithSequenceNumber(SequenceNumberT&& value) { SetSequenceNumber(std::forward<SequenceNumberT>(value)); return *this;}
76
78
88 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
89 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
90 template<typename TimestampT = Aws::Utils::DateTime>
91 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
92 template<typename TimestampT = Aws::Utils::DateTime>
93 StartingPosition& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
95 private:
96
98 bool m_typeHasBeenSet = false;
99
100 Aws::String m_sequenceNumber;
101 bool m_sequenceNumberHasBeenSet = false;
102
103 Aws::Utils::DateTime m_timestamp{};
104 bool m_timestampHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Kinesis
109} // namespace Aws
const Aws::String & GetSequenceNumber() const
void SetType(ShardIteratorType value)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_KINESIS_API StartingPosition()=default
StartingPosition & WithType(ShardIteratorType value)
StartingPosition & WithSequenceNumber(SequenceNumberT &&value)
void SetSequenceNumber(SequenceNumberT &&value)
StartingPosition & WithTimestamp(TimestampT &&value)
AWS_KINESIS_API StartingPosition(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KINESIS_API StartingPosition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue