AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Shard.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kinesis/model/HashKeyRange.h>
10#include <aws/kinesis/model/SequenceNumberRange.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
34 class Shard
35 {
36 public:
37 AWS_KINESIS_API Shard();
38 AWS_KINESIS_API Shard(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KINESIS_API Shard& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetShardId() const{ return m_shardId; }
48 inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
49 inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
50 inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
51 inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
52 inline Shard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
53 inline Shard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
54 inline Shard& WithShardId(const char* value) { SetShardId(value); return *this;}
56
58
61 inline const Aws::String& GetParentShardId() const{ return m_parentShardId; }
62 inline bool ParentShardIdHasBeenSet() const { return m_parentShardIdHasBeenSet; }
63 inline void SetParentShardId(const Aws::String& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = value; }
64 inline void SetParentShardId(Aws::String&& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = std::move(value); }
65 inline void SetParentShardId(const char* value) { m_parentShardIdHasBeenSet = true; m_parentShardId.assign(value); }
66 inline Shard& WithParentShardId(const Aws::String& value) { SetParentShardId(value); return *this;}
67 inline Shard& WithParentShardId(Aws::String&& value) { SetParentShardId(std::move(value)); return *this;}
68 inline Shard& WithParentShardId(const char* value) { SetParentShardId(value); return *this;}
70
72
75 inline const Aws::String& GetAdjacentParentShardId() const{ return m_adjacentParentShardId; }
76 inline bool AdjacentParentShardIdHasBeenSet() const { return m_adjacentParentShardIdHasBeenSet; }
77 inline void SetAdjacentParentShardId(const Aws::String& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = value; }
78 inline void SetAdjacentParentShardId(Aws::String&& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = std::move(value); }
79 inline void SetAdjacentParentShardId(const char* value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId.assign(value); }
80 inline Shard& WithAdjacentParentShardId(const Aws::String& value) { SetAdjacentParentShardId(value); return *this;}
81 inline Shard& WithAdjacentParentShardId(Aws::String&& value) { SetAdjacentParentShardId(std::move(value)); return *this;}
82 inline Shard& WithAdjacentParentShardId(const char* value) { SetAdjacentParentShardId(value); return *this;}
84
86
90 inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; }
91 inline bool HashKeyRangeHasBeenSet() const { return m_hashKeyRangeHasBeenSet; }
92 inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; }
93 inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = std::move(value); }
94 inline Shard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;}
95 inline Shard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(std::move(value)); return *this;}
97
99
102 inline const SequenceNumberRange& GetSequenceNumberRange() const{ return m_sequenceNumberRange; }
103 inline bool SequenceNumberRangeHasBeenSet() const { return m_sequenceNumberRangeHasBeenSet; }
104 inline void SetSequenceNumberRange(const SequenceNumberRange& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = value; }
105 inline void SetSequenceNumberRange(SequenceNumberRange&& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = std::move(value); }
106 inline Shard& WithSequenceNumberRange(const SequenceNumberRange& value) { SetSequenceNumberRange(value); return *this;}
107 inline Shard& WithSequenceNumberRange(SequenceNumberRange&& value) { SetSequenceNumberRange(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_shardId;
112 bool m_shardIdHasBeenSet = false;
113
114 Aws::String m_parentShardId;
115 bool m_parentShardIdHasBeenSet = false;
116
117 Aws::String m_adjacentParentShardId;
118 bool m_adjacentParentShardIdHasBeenSet = false;
119
120 HashKeyRange m_hashKeyRange;
121 bool m_hashKeyRangeHasBeenSet = false;
122
123 SequenceNumberRange m_sequenceNumberRange;
124 bool m_sequenceNumberRangeHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Kinesis
129} // namespace Aws
void SetAdjacentParentShardId(const Aws::String &value)
Definition Shard.h:77
void SetShardId(Aws::String &&value)
Definition Shard.h:50
Shard & WithSequenceNumberRange(SequenceNumberRange &&value)
Definition Shard.h:107
Shard & WithAdjacentParentShardId(const Aws::String &value)
Definition Shard.h:80
Shard & WithParentShardId(Aws::String &&value)
Definition Shard.h:67
bool AdjacentParentShardIdHasBeenSet() const
Definition Shard.h:76
const Aws::String & GetAdjacentParentShardId() const
Definition Shard.h:75
Shard & WithAdjacentParentShardId(Aws::String &&value)
Definition Shard.h:81
void SetAdjacentParentShardId(const char *value)
Definition Shard.h:79
AWS_KINESIS_API Shard & operator=(Aws::Utils::Json::JsonView jsonValue)
Shard & WithParentShardId(const char *value)
Definition Shard.h:68
Shard & WithSequenceNumberRange(const SequenceNumberRange &value)
Definition Shard.h:106
void SetHashKeyRange(const HashKeyRange &value)
Definition Shard.h:92
void SetAdjacentParentShardId(Aws::String &&value)
Definition Shard.h:78
AWS_KINESIS_API Shard()
Shard & WithHashKeyRange(const HashKeyRange &value)
Definition Shard.h:94
void SetHashKeyRange(HashKeyRange &&value)
Definition Shard.h:93
bool SequenceNumberRangeHasBeenSet() const
Definition Shard.h:103
void SetSequenceNumberRange(SequenceNumberRange &&value)
Definition Shard.h:105
Shard & WithParentShardId(const Aws::String &value)
Definition Shard.h:66
Shard & WithHashKeyRange(HashKeyRange &&value)
Definition Shard.h:95
const SequenceNumberRange & GetSequenceNumberRange() const
Definition Shard.h:102
Shard & WithShardId(const char *value)
Definition Shard.h:54
void SetParentShardId(const char *value)
Definition Shard.h:65
bool ShardIdHasBeenSet() const
Definition Shard.h:48
Shard & WithShardId(Aws::String &&value)
Definition Shard.h:53
void SetShardId(const Aws::String &value)
Definition Shard.h:49
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KINESIS_API Shard(Aws::Utils::Json::JsonView jsonValue)
void SetShardId(const char *value)
Definition Shard.h:51
const Aws::String & GetParentShardId() const
Definition Shard.h:61
const Aws::String & GetShardId() const
Definition Shard.h:47
void SetParentShardId(Aws::String &&value)
Definition Shard.h:64
bool HashKeyRangeHasBeenSet() const
Definition Shard.h:91
void SetParentShardId(const Aws::String &value)
Definition Shard.h:63
Shard & WithAdjacentParentShardId(const char *value)
Definition Shard.h:82
void SetSequenceNumberRange(const SequenceNumberRange &value)
Definition Shard.h:104
bool ParentShardIdHasBeenSet() const
Definition Shard.h:62
const HashKeyRange & GetHashKeyRange() const
Definition Shard.h:90
Shard & WithShardId(const Aws::String &value)
Definition Shard.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue