AWS SDK for C++  1.9.104
AWS SDK for C++
Shard.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 
35  {
36  public:
37  Shard();
41 
42 
46  inline const Aws::String& GetShardId() const{ return m_shardId; }
47 
51  inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
52 
56  inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
57 
61  inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
62 
66  inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
67 
71  inline Shard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
72 
76  inline Shard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
77 
81  inline Shard& WithShardId(const char* value) { SetShardId(value); return *this;}
82 
83 
87  inline const Aws::String& GetParentShardId() const{ return m_parentShardId; }
88 
92  inline bool ParentShardIdHasBeenSet() const { return m_parentShardIdHasBeenSet; }
93 
97  inline void SetParentShardId(const Aws::String& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = value; }
98 
102  inline void SetParentShardId(Aws::String&& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = std::move(value); }
103 
107  inline void SetParentShardId(const char* value) { m_parentShardIdHasBeenSet = true; m_parentShardId.assign(value); }
108 
112  inline Shard& WithParentShardId(const Aws::String& value) { SetParentShardId(value); return *this;}
113 
117  inline Shard& WithParentShardId(Aws::String&& value) { SetParentShardId(std::move(value)); return *this;}
118 
122  inline Shard& WithParentShardId(const char* value) { SetParentShardId(value); return *this;}
123 
124 
128  inline const Aws::String& GetAdjacentParentShardId() const{ return m_adjacentParentShardId; }
129 
133  inline bool AdjacentParentShardIdHasBeenSet() const { return m_adjacentParentShardIdHasBeenSet; }
134 
138  inline void SetAdjacentParentShardId(const Aws::String& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = value; }
139 
143  inline void SetAdjacentParentShardId(Aws::String&& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = std::move(value); }
144 
148  inline void SetAdjacentParentShardId(const char* value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId.assign(value); }
149 
153  inline Shard& WithAdjacentParentShardId(const Aws::String& value) { SetAdjacentParentShardId(value); return *this;}
154 
158  inline Shard& WithAdjacentParentShardId(Aws::String&& value) { SetAdjacentParentShardId(std::move(value)); return *this;}
159 
163  inline Shard& WithAdjacentParentShardId(const char* value) { SetAdjacentParentShardId(value); return *this;}
164 
165 
170  inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; }
171 
176  inline bool HashKeyRangeHasBeenSet() const { return m_hashKeyRangeHasBeenSet; }
177 
182  inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; }
183 
188  inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = std::move(value); }
189 
194  inline Shard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;}
195 
200  inline Shard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(std::move(value)); return *this;}
201 
202 
206  inline const SequenceNumberRange& GetSequenceNumberRange() const{ return m_sequenceNumberRange; }
207 
211  inline bool SequenceNumberRangeHasBeenSet() const { return m_sequenceNumberRangeHasBeenSet; }
212 
216  inline void SetSequenceNumberRange(const SequenceNumberRange& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = value; }
217 
221  inline void SetSequenceNumberRange(SequenceNumberRange&& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = std::move(value); }
222 
226  inline Shard& WithSequenceNumberRange(const SequenceNumberRange& value) { SetSequenceNumberRange(value); return *this;}
227 
231  inline Shard& WithSequenceNumberRange(SequenceNumberRange&& value) { SetSequenceNumberRange(std::move(value)); return *this;}
232 
233  private:
234 
235  Aws::String m_shardId;
236  bool m_shardIdHasBeenSet;
237 
238  Aws::String m_parentShardId;
239  bool m_parentShardIdHasBeenSet;
240 
241  Aws::String m_adjacentParentShardId;
242  bool m_adjacentParentShardIdHasBeenSet;
243 
244  HashKeyRange m_hashKeyRange;
245  bool m_hashKeyRangeHasBeenSet;
246 
247  SequenceNumberRange m_sequenceNumberRange;
248  bool m_sequenceNumberRangeHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace Kinesis
253 } // namespace Aws
Aws::Kinesis::Model::Shard::GetShardId
const Aws::String & GetShardId() const
Definition: Shard.h:46
Aws::Kinesis::Model::Shard::SetHashKeyRange
void SetHashKeyRange(const HashKeyRange &value)
Definition: Shard.h:182
Aws::Kinesis::Model::Shard::SetAdjacentParentShardId
void SetAdjacentParentShardId(const char *value)
Definition: Shard.h:148
Aws::Kinesis::Model::Shard::SetShardId
void SetShardId(const Aws::String &value)
Definition: Shard.h:56
Aws::Kinesis::Model::Shard::SetAdjacentParentShardId
void SetAdjacentParentShardId(Aws::String &&value)
Definition: Shard.h:143
Aws::Kinesis::Model::Shard::WithParentShardId
Shard & WithParentShardId(Aws::String &&value)
Definition: Shard.h:117
Aws::Kinesis::Model::Shard::SetParentShardId
void SetParentShardId(const Aws::String &value)
Definition: Shard.h:97
Aws::Kinesis::Model::Shard::WithAdjacentParentShardId
Shard & WithAdjacentParentShardId(Aws::String &&value)
Definition: Shard.h:158
Aws::Kinesis::Model::Shard::WithShardId
Shard & WithShardId(const char *value)
Definition: Shard.h:81
Aws::Kinesis::Model::Shard::SetHashKeyRange
void SetHashKeyRange(HashKeyRange &&value)
Definition: Shard.h:188
Aws::Kinesis::Model::Shard::GetAdjacentParentShardId
const Aws::String & GetAdjacentParentShardId() const
Definition: Shard.h:128
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::Shard::SequenceNumberRangeHasBeenSet
bool SequenceNumberRangeHasBeenSet() const
Definition: Shard.h:211
Aws::Kinesis::Model::Shard::AdjacentParentShardIdHasBeenSet
bool AdjacentParentShardIdHasBeenSet() const
Definition: Shard.h:133
Aws::Kinesis::Model::Shard::WithParentShardId
Shard & WithParentShardId(const char *value)
Definition: Shard.h:122
Aws::Kinesis::Model::Shard::SetSequenceNumberRange
void SetSequenceNumberRange(const SequenceNumberRange &value)
Definition: Shard.h:216
Aws::Kinesis::Model::Shard::SetSequenceNumberRange
void SetSequenceNumberRange(SequenceNumberRange &&value)
Definition: Shard.h:221
Aws::Kinesis::Model::Shard::ShardIdHasBeenSet
bool ShardIdHasBeenSet() const
Definition: Shard.h:51
Aws::Kinesis::Model::Shard::SetShardId
void SetShardId(const char *value)
Definition: Shard.h:66
HashKeyRange.h
Aws::Kinesis::Model::Shard::WithParentShardId
Shard & WithParentShardId(const Aws::String &value)
Definition: Shard.h:112
Aws::Kinesis::Model::Shard::WithSequenceNumberRange
Shard & WithSequenceNumberRange(const SequenceNumberRange &value)
Definition: Shard.h:226
Aws::Kinesis::Model::Shard::HashKeyRangeHasBeenSet
bool HashKeyRangeHasBeenSet() const
Definition: Shard.h:176
Aws::Kinesis::Model::Shard::WithShardId
Shard & WithShardId(Aws::String &&value)
Definition: Shard.h:76
Aws::Kinesis::Model::Shard::GetParentShardId
const Aws::String & GetParentShardId() const
Definition: Shard.h:87
Aws::Kinesis::Model::Shard::SetParentShardId
void SetParentShardId(const char *value)
Definition: Shard.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::Shard::SetAdjacentParentShardId
void SetAdjacentParentShardId(const Aws::String &value)
Definition: Shard.h:138
Aws::Kinesis::Model::SequenceNumberRange
Definition: SequenceNumberRange.h:33
Aws::Kinesis::Model::Shard::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Kinesis_EXPORTS.h
Aws::Kinesis::Model::HashKeyRange
Definition: HashKeyRange.h:33
Aws::Kinesis::Model::Shard::WithSequenceNumberRange
Shard & WithSequenceNumberRange(SequenceNumberRange &&value)
Definition: Shard.h:231
Aws::Kinesis::Model::Shard::WithAdjacentParentShardId
Shard & WithAdjacentParentShardId(const char *value)
Definition: Shard.h:163
Aws::Kinesis::Model::Shard
Definition: Shard.h:35
Aws::Kinesis::Model::Shard::GetHashKeyRange
const HashKeyRange & GetHashKeyRange() const
Definition: Shard.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::Shard::Shard
Shard()
Aws::Kinesis::Model::Shard::operator=
Shard & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::Shard::SetShardId
void SetShardId(Aws::String &&value)
Definition: Shard.h:61
Aws::Kinesis::Model::Shard::WithHashKeyRange
Shard & WithHashKeyRange(const HashKeyRange &value)
Definition: Shard.h:194
Aws::Kinesis::Model::Shard::ParentShardIdHasBeenSet
bool ParentShardIdHasBeenSet() const
Definition: Shard.h:92
Aws::Kinesis::Model::Shard::WithHashKeyRange
Shard & WithHashKeyRange(HashKeyRange &&value)
Definition: Shard.h:200
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::Shard::WithAdjacentParentShardId
Shard & WithAdjacentParentShardId(const Aws::String &value)
Definition: Shard.h:153
Aws::Kinesis::Model::Shard::GetSequenceNumberRange
const SequenceNumberRange & GetSequenceNumberRange() const
Definition: Shard.h:206
Aws::Kinesis::Model::Shard::SetParentShardId
void SetParentShardId(Aws::String &&value)
Definition: Shard.h:102
Aws::Kinesis::Model::Shard::WithShardId
Shard & WithShardId(const Aws::String &value)
Definition: Shard.h:71
SequenceNumberRange.h
Aws::Kinesis::Model::Shard::Shard
Shard(Aws::Utils::Json::JsonView jsonValue)