AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ShardIteratorType& GetType() const{ return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(const ShardIteratorType& value) { m_typeHasBeenSet = true; m_type = value; }
60 inline void SetType(ShardIteratorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 inline StartingPosition& WithType(const ShardIteratorType& value) { SetType(value); return *this;}
62 inline StartingPosition& WithType(ShardIteratorType&& value) { SetType(std::move(value)); return *this;}
64
66
71 inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
72 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
73 inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
74 inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
75 inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
76 inline StartingPosition& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
77 inline StartingPosition& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
78 inline StartingPosition& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
80
82
92 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
93 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
94 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
95 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
96 inline StartingPosition& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
97 inline StartingPosition& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
99 private:
100
101 ShardIteratorType m_type;
102 bool m_typeHasBeenSet = false;
103
104 Aws::String m_sequenceNumber;
105 bool m_sequenceNumberHasBeenSet = false;
106
107 Aws::Utils::DateTime m_timestamp;
108 bool m_timestampHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Kinesis
113} // namespace Aws
void SetSequenceNumber(const Aws::String &value)
void SetType(const ShardIteratorType &value)
StartingPosition & WithTimestamp(Aws::Utils::DateTime &&value)
void SetTimestamp(Aws::Utils::DateTime &&value)
const Aws::String & GetSequenceNumber() const
const ShardIteratorType & GetType() const
const Aws::Utils::DateTime & GetTimestamp() const
void SetTimestamp(const Aws::Utils::DateTime &value)
void SetType(ShardIteratorType &&value)
StartingPosition & WithSequenceNumber(Aws::String &&value)
void SetSequenceNumber(Aws::String &&value)
AWS_KINESIS_API StartingPosition(Aws::Utils::Json::JsonView jsonValue)
StartingPosition & WithType(ShardIteratorType &&value)
StartingPosition & WithSequenceNumber(const char *value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
StartingPosition & WithTimestamp(const Aws::Utils::DateTime &value)
StartingPosition & WithSequenceNumber(const Aws::String &value)
void SetSequenceNumber(const char *value)
AWS_KINESIS_API StartingPosition & operator=(Aws::Utils::Json::JsonView jsonValue)
StartingPosition & WithType(const ShardIteratorType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue