AWS SDK for C++  0.12.9
AWS SDK for C++
Shard.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Kinesis
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Shard();
42  Shard(const Aws::Utils::Json::JsonValue& jsonValue);
43  Shard& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetShardId() const{ return m_shardId; }
50 
54  inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
55 
59  inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
60 
64  inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
65 
69  inline Shard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
70 
74  inline Shard& WithShardId(Aws::String&& value) { SetShardId(value); return *this;}
75 
79  inline Shard& WithShardId(const char* value) { SetShardId(value); return *this;}
80 
84  inline const Aws::String& GetParentShardId() const{ return m_parentShardId; }
85 
89  inline void SetParentShardId(const Aws::String& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = value; }
90 
94  inline void SetParentShardId(Aws::String&& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = value; }
95 
99  inline void SetParentShardId(const char* value) { m_parentShardIdHasBeenSet = true; m_parentShardId.assign(value); }
100 
104  inline Shard& WithParentShardId(const Aws::String& value) { SetParentShardId(value); return *this;}
105 
109  inline Shard& WithParentShardId(Aws::String&& value) { SetParentShardId(value); return *this;}
110 
114  inline Shard& WithParentShardId(const char* value) { SetParentShardId(value); return *this;}
115 
119  inline const Aws::String& GetAdjacentParentShardId() const{ return m_adjacentParentShardId; }
120 
124  inline void SetAdjacentParentShardId(const Aws::String& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = value; }
125 
129  inline void SetAdjacentParentShardId(Aws::String&& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = value; }
130 
134  inline void SetAdjacentParentShardId(const char* value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId.assign(value); }
135 
139  inline Shard& WithAdjacentParentShardId(const Aws::String& value) { SetAdjacentParentShardId(value); return *this;}
140 
144  inline Shard& WithAdjacentParentShardId(Aws::String&& value) { SetAdjacentParentShardId(value); return *this;}
145 
149  inline Shard& WithAdjacentParentShardId(const char* value) { SetAdjacentParentShardId(value); return *this;}
150 
155  inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; }
156 
161  inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; }
162 
167  inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; }
168 
173  inline Shard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;}
174 
179  inline Shard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(value); return *this;}
180 
184  inline const SequenceNumberRange& GetSequenceNumberRange() const{ return m_sequenceNumberRange; }
185 
189  inline void SetSequenceNumberRange(const SequenceNumberRange& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = value; }
190 
194  inline void SetSequenceNumberRange(SequenceNumberRange&& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = value; }
195 
199  inline Shard& WithSequenceNumberRange(const SequenceNumberRange& value) { SetSequenceNumberRange(value); return *this;}
200 
204  inline Shard& WithSequenceNumberRange(SequenceNumberRange&& value) { SetSequenceNumberRange(value); return *this;}
205 
206  private:
207  Aws::String m_shardId;
208  bool m_shardIdHasBeenSet;
209  Aws::String m_parentShardId;
210  bool m_parentShardIdHasBeenSet;
211  Aws::String m_adjacentParentShardId;
212  bool m_adjacentParentShardIdHasBeenSet;
213  HashKeyRange m_hashKeyRange;
214  bool m_hashKeyRangeHasBeenSet;
215  SequenceNumberRange m_sequenceNumberRange;
216  bool m_sequenceNumberRangeHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace Kinesis
221 } // namespace Aws
Shard & WithHashKeyRange(HashKeyRange &&value)
Definition: Shard.h:179
void SetAdjacentParentShardId(const char *value)
Definition: Shard.h:134
void SetShardId(const char *value)
Definition: Shard.h:64
Shard & WithShardId(const Aws::String &value)
Definition: Shard.h:69
Shard & WithAdjacentParentShardId(Aws::String &&value)
Definition: Shard.h:144
const Aws::String & GetShardId() const
Definition: Shard.h:49
const Aws::String & GetParentShardId() const
Definition: Shard.h:84
void SetAdjacentParentShardId(const Aws::String &value)
Definition: Shard.h:124
Shard & WithParentShardId(const Aws::String &value)
Definition: Shard.h:104
void SetParentShardId(const char *value)
Definition: Shard.h:99
void SetSequenceNumberRange(SequenceNumberRange &&value)
Definition: Shard.h:194
Shard & WithSequenceNumberRange(SequenceNumberRange &&value)
Definition: Shard.h:204
const HashKeyRange & GetHashKeyRange() const
Definition: Shard.h:155
void SetShardId(Aws::String &&value)
Definition: Shard.h:59
void SetHashKeyRange(const HashKeyRange &value)
Definition: Shard.h:161
void SetSequenceNumberRange(const SequenceNumberRange &value)
Definition: Shard.h:189
Shard & WithSequenceNumberRange(const SequenceNumberRange &value)
Definition: Shard.h:199
void SetAdjacentParentShardId(Aws::String &&value)
Definition: Shard.h:129
Shard & WithAdjacentParentShardId(const char *value)
Definition: Shard.h:149
Shard & WithParentShardId(const char *value)
Definition: Shard.h:114
Shard & WithShardId(Aws::String &&value)
Definition: Shard.h:74
const Aws::String & GetAdjacentParentShardId() const
Definition: Shard.h:119
void SetParentShardId(Aws::String &&value)
Definition: Shard.h:94
Shard & WithShardId(const char *value)
Definition: Shard.h:79
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Shard & WithAdjacentParentShardId(const Aws::String &value)
Definition: Shard.h:139
void SetHashKeyRange(HashKeyRange &&value)
Definition: Shard.h:167
void SetShardId(const Aws::String &value)
Definition: Shard.h:54
Shard & WithHashKeyRange(const HashKeyRange &value)
Definition: Shard.h:173
void SetParentShardId(const Aws::String &value)
Definition: Shard.h:89
const SequenceNumberRange & GetSequenceNumberRange() const
Definition: Shard.h:184
JSON (JavaScript Object Notation).
Shard & WithParentShardId(Aws::String &&value)
Definition: Shard.h:109