AWS SDK for C++  1.9.103
AWS SDK for C++
ChildShard.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 
29  {
30  public:
35 
36 
37 
38  inline const Aws::String& GetShardId() const{ return m_shardId; }
39 
40 
41  inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
42 
43 
44  inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
45 
46 
47  inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
48 
49 
50  inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
51 
52 
53  inline ChildShard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
54 
55 
56  inline ChildShard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
57 
58 
59  inline ChildShard& WithShardId(const char* value) { SetShardId(value); return *this;}
60 
61 
62 
63  inline const Aws::Vector<Aws::String>& GetParentShards() const{ return m_parentShards; }
64 
65 
66  inline bool ParentShardsHasBeenSet() const { return m_parentShardsHasBeenSet; }
67 
68 
69  inline void SetParentShards(const Aws::Vector<Aws::String>& value) { m_parentShardsHasBeenSet = true; m_parentShards = value; }
70 
71 
72  inline void SetParentShards(Aws::Vector<Aws::String>&& value) { m_parentShardsHasBeenSet = true; m_parentShards = std::move(value); }
73 
74 
75  inline ChildShard& WithParentShards(const Aws::Vector<Aws::String>& value) { SetParentShards(value); return *this;}
76 
77 
78  inline ChildShard& WithParentShards(Aws::Vector<Aws::String>&& value) { SetParentShards(std::move(value)); return *this;}
79 
80 
81  inline ChildShard& AddParentShards(const Aws::String& value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(value); return *this; }
82 
83 
84  inline ChildShard& AddParentShards(Aws::String&& value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(std::move(value)); return *this; }
85 
86 
87  inline ChildShard& AddParentShards(const char* value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(value); return *this; }
88 
89 
90 
91  inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; }
92 
93 
94  inline bool HashKeyRangeHasBeenSet() const { return m_hashKeyRangeHasBeenSet; }
95 
96 
97  inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; }
98 
99 
100  inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = std::move(value); }
101 
102 
103  inline ChildShard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;}
104 
105 
106  inline ChildShard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(std::move(value)); return *this;}
107 
108  private:
109 
110  Aws::String m_shardId;
111  bool m_shardIdHasBeenSet;
112 
113  Aws::Vector<Aws::String> m_parentShards;
114  bool m_parentShardsHasBeenSet;
115 
116  HashKeyRange m_hashKeyRange;
117  bool m_hashKeyRangeHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace Kinesis
122 } // namespace Aws
Aws::Kinesis::Model::ChildShard::ParentShardsHasBeenSet
bool ParentShardsHasBeenSet() const
Definition: ChildShard.h:66
Aws::Kinesis::Model::ChildShard::WithParentShards
ChildShard & WithParentShards(Aws::Vector< Aws::String > &&value)
Definition: ChildShard.h:78
Aws::Kinesis::Model::ChildShard::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kinesis::Model::ChildShard::SetHashKeyRange
void SetHashKeyRange(const HashKeyRange &value)
Definition: ChildShard.h:97
Aws::Kinesis::Model::ChildShard::HashKeyRangeHasBeenSet
bool HashKeyRangeHasBeenSet() const
Definition: ChildShard.h:94
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kinesis::Model::ChildShard
Definition: ChildShard.h:29
Aws::Kinesis::Model::ChildShard::ShardIdHasBeenSet
bool ShardIdHasBeenSet() const
Definition: ChildShard.h:41
AWSVector.h
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::ChildShard::GetShardId
const Aws::String & GetShardId() const
Definition: ChildShard.h:38
Aws::Kinesis::Model::ChildShard::SetShardId
void SetShardId(const char *value)
Definition: ChildShard.h:50
HashKeyRange.h
Aws::Kinesis::Model::ChildShard::ChildShard
ChildShard(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::ChildShard::GetHashKeyRange
const HashKeyRange & GetHashKeyRange() const
Definition: ChildShard.h:91
Aws::Kinesis::Model::ChildShard::AddParentShards
ChildShard & AddParentShards(const Aws::String &value)
Definition: ChildShard.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::ChildShard::SetShardId
void SetShardId(const Aws::String &value)
Definition: ChildShard.h:44
Aws::Kinesis::Model::ChildShard::AddParentShards
ChildShard & AddParentShards(const char *value)
Definition: ChildShard.h:87
Kinesis_EXPORTS.h
Aws::Kinesis::Model::HashKeyRange
Definition: HashKeyRange.h:33
Aws::Kinesis::Model::ChildShard::WithHashKeyRange
ChildShard & WithHashKeyRange(const HashKeyRange &value)
Definition: ChildShard.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::ChildShard::SetParentShards
void SetParentShards(Aws::Vector< Aws::String > &&value)
Definition: ChildShard.h:72
Aws::Kinesis::Model::ChildShard::SetParentShards
void SetParentShards(const Aws::Vector< Aws::String > &value)
Definition: ChildShard.h:69
Aws::Kinesis::Model::ChildShard::WithParentShards
ChildShard & WithParentShards(const Aws::Vector< Aws::String > &value)
Definition: ChildShard.h:75
Aws::Kinesis::Model::ChildShard::operator=
ChildShard & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::ChildShard::SetShardId
void SetShardId(Aws::String &&value)
Definition: ChildShard.h:47
Aws::Kinesis::Model::ChildShard::ChildShard
ChildShard()
Aws::Kinesis::Model::ChildShard::GetParentShards
const Aws::Vector< Aws::String > & GetParentShards() const
Definition: ChildShard.h:63
Aws::Kinesis::Model::ChildShard::WithHashKeyRange
ChildShard & WithHashKeyRange(HashKeyRange &&value)
Definition: ChildShard.h:106
Aws::Kinesis::Model::ChildShard::WithShardId
ChildShard & WithShardId(const char *value)
Definition: ChildShard.h:59
Aws::Kinesis::Model::ChildShard::AddParentShards
ChildShard & AddParentShards(Aws::String &&value)
Definition: ChildShard.h:84
Aws::Kinesis::Model::ChildShard::WithShardId
ChildShard & WithShardId(const Aws::String &value)
Definition: ChildShard.h:53
Aws::Kinesis::Model::ChildShard::WithShardId
ChildShard & WithShardId(Aws::String &&value)
Definition: ChildShard.h:56
Aws::Kinesis::Model::ChildShard::SetHashKeyRange
void SetHashKeyRange(HashKeyRange &&value)
Definition: ChildShard.h:100