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/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodbstreams/model/SequenceNumberRange.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDBStreams
23{
24namespace Model
25{
26
33 class Shard
34 {
35 public:
36 AWS_DYNAMODBSTREAMS_API Shard();
37 AWS_DYNAMODBSTREAMS_API Shard(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DYNAMODBSTREAMS_API Shard& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetShardId() const{ return m_shardId; }
47 inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
48 inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
49 inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
50 inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
51 inline Shard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
52 inline Shard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
53 inline Shard& WithShardId(const char* value) { SetShardId(value); return *this;}
55
57
60 inline const SequenceNumberRange& GetSequenceNumberRange() const{ return m_sequenceNumberRange; }
61 inline bool SequenceNumberRangeHasBeenSet() const { return m_sequenceNumberRangeHasBeenSet; }
62 inline void SetSequenceNumberRange(const SequenceNumberRange& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = value; }
63 inline void SetSequenceNumberRange(SequenceNumberRange&& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = std::move(value); }
64 inline Shard& WithSequenceNumberRange(const SequenceNumberRange& value) { SetSequenceNumberRange(value); return *this;}
65 inline Shard& WithSequenceNumberRange(SequenceNumberRange&& value) { SetSequenceNumberRange(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetParentShardId() const{ return m_parentShardId; }
73 inline bool ParentShardIdHasBeenSet() const { return m_parentShardIdHasBeenSet; }
74 inline void SetParentShardId(const Aws::String& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = value; }
75 inline void SetParentShardId(Aws::String&& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = std::move(value); }
76 inline void SetParentShardId(const char* value) { m_parentShardIdHasBeenSet = true; m_parentShardId.assign(value); }
77 inline Shard& WithParentShardId(const Aws::String& value) { SetParentShardId(value); return *this;}
78 inline Shard& WithParentShardId(Aws::String&& value) { SetParentShardId(std::move(value)); return *this;}
79 inline Shard& WithParentShardId(const char* value) { SetParentShardId(value); return *this;}
81 private:
82
83 Aws::String m_shardId;
84 bool m_shardIdHasBeenSet = false;
85
86 SequenceNumberRange m_sequenceNumberRange;
87 bool m_sequenceNumberRangeHasBeenSet = false;
88
89 Aws::String m_parentShardId;
90 bool m_parentShardIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace DynamoDBStreams
95} // namespace Aws
const Aws::String & GetParentShardId() const
Definition Shard.h:72
Shard & WithShardId(const Aws::String &value)
Definition Shard.h:51
bool ParentShardIdHasBeenSet() const
Definition Shard.h:73
void SetShardId(const char *value)
Definition Shard.h:50
Shard & WithParentShardId(const char *value)
Definition Shard.h:79
const Aws::String & GetShardId() const
Definition Shard.h:46
Shard & WithParentShardId(const Aws::String &value)
Definition Shard.h:77
void SetParentShardId(const Aws::String &value)
Definition Shard.h:74
void SetShardId(const Aws::String &value)
Definition Shard.h:48
AWS_DYNAMODBSTREAMS_API Shard & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSequenceNumberRange(SequenceNumberRange &&value)
Definition Shard.h:63
void SetSequenceNumberRange(const SequenceNumberRange &value)
Definition Shard.h:62
bool SequenceNumberRangeHasBeenSet() const
Definition Shard.h:61
Shard & WithShardId(const char *value)
Definition Shard.h:53
void SetShardId(Aws::String &&value)
Definition Shard.h:49
Shard & WithShardId(Aws::String &&value)
Definition Shard.h:52
const SequenceNumberRange & GetSequenceNumberRange() const
Definition Shard.h:60
Shard & WithParentShardId(Aws::String &&value)
Definition Shard.h:78
Shard & WithSequenceNumberRange(SequenceNumberRange &&value)
Definition Shard.h:65
AWS_DYNAMODBSTREAMS_API Shard()
Shard & WithSequenceNumberRange(const SequenceNumberRange &value)
Definition Shard.h:64
void SetParentShardId(Aws::String &&value)
Definition Shard.h:75
AWS_DYNAMODBSTREAMS_API Shard(Aws::Utils::Json::JsonView jsonValue)
void SetParentShardId(const char *value)
Definition Shard.h:76
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue