AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChildShard.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kinesis/model/HashKeyRange.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 ChildShard();
38 AWS_KINESIS_API ChildShard(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KINESIS_API ChildShard& 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 ChildShard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
53 inline ChildShard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
54 inline ChildShard& WithShardId(const char* value) { SetShardId(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetParentShards() const{ return m_parentShards; }
62 inline bool ParentShardsHasBeenSet() const { return m_parentShardsHasBeenSet; }
63 inline void SetParentShards(const Aws::Vector<Aws::String>& value) { m_parentShardsHasBeenSet = true; m_parentShards = value; }
64 inline void SetParentShards(Aws::Vector<Aws::String>&& value) { m_parentShardsHasBeenSet = true; m_parentShards = std::move(value); }
65 inline ChildShard& WithParentShards(const Aws::Vector<Aws::String>& value) { SetParentShards(value); return *this;}
66 inline ChildShard& WithParentShards(Aws::Vector<Aws::String>&& value) { SetParentShards(std::move(value)); return *this;}
67 inline ChildShard& AddParentShards(const Aws::String& value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(value); return *this; }
68 inline ChildShard& AddParentShards(Aws::String&& value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(std::move(value)); return *this; }
69 inline ChildShard& AddParentShards(const char* value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(value); return *this; }
71
73
74 inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; }
75 inline bool HashKeyRangeHasBeenSet() const { return m_hashKeyRangeHasBeenSet; }
76 inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; }
77 inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = std::move(value); }
78 inline ChildShard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;}
79 inline ChildShard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_shardId;
84 bool m_shardIdHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_parentShards;
87 bool m_parentShardsHasBeenSet = false;
88
89 HashKeyRange m_hashKeyRange;
90 bool m_hashKeyRangeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Kinesis
95} // namespace Aws
AWS_KINESIS_API ChildShard & operator=(Aws::Utils::Json::JsonView jsonValue)
ChildShard & WithHashKeyRange(const HashKeyRange &value)
Definition ChildShard.h:78
void SetShardId(Aws::String &&value)
Definition ChildShard.h:50
ChildShard & WithParentShards(const Aws::Vector< Aws::String > &value)
Definition ChildShard.h:65
void SetParentShards(const Aws::Vector< Aws::String > &value)
Definition ChildShard.h:63
AWS_KINESIS_API ChildShard(Aws::Utils::Json::JsonView jsonValue)
ChildShard & AddParentShards(const char *value)
Definition ChildShard.h:69
void SetShardId(const Aws::String &value)
Definition ChildShard.h:49
const Aws::String & GetShardId() const
Definition ChildShard.h:47
const HashKeyRange & GetHashKeyRange() const
Definition ChildShard.h:74
const Aws::Vector< Aws::String > & GetParentShards() const
Definition ChildShard.h:61
ChildShard & WithShardId(const char *value)
Definition ChildShard.h:54
ChildShard & WithShardId(Aws::String &&value)
Definition ChildShard.h:53
ChildShard & WithParentShards(Aws::Vector< Aws::String > &&value)
Definition ChildShard.h:66
ChildShard & WithHashKeyRange(HashKeyRange &&value)
Definition ChildShard.h:79
void SetParentShards(Aws::Vector< Aws::String > &&value)
Definition ChildShard.h:64
void SetHashKeyRange(HashKeyRange &&value)
Definition ChildShard.h:77
ChildShard & AddParentShards(Aws::String &&value)
Definition ChildShard.h:68
ChildShard & AddParentShards(const Aws::String &value)
Definition ChildShard.h:67
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetShardId(const char *value)
Definition ChildShard.h:51
void SetHashKeyRange(const HashKeyRange &value)
Definition ChildShard.h:76
ChildShard & WithShardId(const Aws::String &value)
Definition ChildShard.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue