AWS SDK for C++  0.12.9
AWS SDK for C++
HashKeyRange.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace Kinesis
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  HashKeyRange();
41  HashKeyRange(const Aws::Utils::Json::JsonValue& jsonValue);
42  HashKeyRange& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetStartingHashKey() const{ return m_startingHashKey; }
49 
53  inline void SetStartingHashKey(const Aws::String& value) { m_startingHashKeyHasBeenSet = true; m_startingHashKey = value; }
54 
58  inline void SetStartingHashKey(Aws::String&& value) { m_startingHashKeyHasBeenSet = true; m_startingHashKey = value; }
59 
63  inline void SetStartingHashKey(const char* value) { m_startingHashKeyHasBeenSet = true; m_startingHashKey.assign(value); }
64 
68  inline HashKeyRange& WithStartingHashKey(const Aws::String& value) { SetStartingHashKey(value); return *this;}
69 
73  inline HashKeyRange& WithStartingHashKey(Aws::String&& value) { SetStartingHashKey(value); return *this;}
74 
78  inline HashKeyRange& WithStartingHashKey(const char* value) { SetStartingHashKey(value); return *this;}
79 
83  inline const Aws::String& GetEndingHashKey() const{ return m_endingHashKey; }
84 
88  inline void SetEndingHashKey(const Aws::String& value) { m_endingHashKeyHasBeenSet = true; m_endingHashKey = value; }
89 
93  inline void SetEndingHashKey(Aws::String&& value) { m_endingHashKeyHasBeenSet = true; m_endingHashKey = value; }
94 
98  inline void SetEndingHashKey(const char* value) { m_endingHashKeyHasBeenSet = true; m_endingHashKey.assign(value); }
99 
103  inline HashKeyRange& WithEndingHashKey(const Aws::String& value) { SetEndingHashKey(value); return *this;}
104 
108  inline HashKeyRange& WithEndingHashKey(Aws::String&& value) { SetEndingHashKey(value); return *this;}
109 
113  inline HashKeyRange& WithEndingHashKey(const char* value) { SetEndingHashKey(value); return *this;}
114 
115  private:
116  Aws::String m_startingHashKey;
117  bool m_startingHashKeyHasBeenSet;
118  Aws::String m_endingHashKey;
119  bool m_endingHashKeyHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace Kinesis
124 } // namespace Aws
const Aws::String & GetEndingHashKey() const
Definition: HashKeyRange.h:83
HashKeyRange & WithStartingHashKey(Aws::String &&value)
Definition: HashKeyRange.h:73
void SetEndingHashKey(Aws::String &&value)
Definition: HashKeyRange.h:93
HashKeyRange & WithEndingHashKey(const char *value)
Definition: HashKeyRange.h:113
void SetStartingHashKey(const char *value)
Definition: HashKeyRange.h:63
void SetEndingHashKey(const char *value)
Definition: HashKeyRange.h:98
HashKeyRange & WithStartingHashKey(const char *value)
Definition: HashKeyRange.h:78
void SetStartingHashKey(const Aws::String &value)
Definition: HashKeyRange.h:53
HashKeyRange & WithEndingHashKey(Aws::String &&value)
Definition: HashKeyRange.h:108
HashKeyRange & WithEndingHashKey(const Aws::String &value)
Definition: HashKeyRange.h:103
HashKeyRange & WithStartingHashKey(const Aws::String &value)
Definition: HashKeyRange.h:68
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetStartingHashKey() const
Definition: HashKeyRange.h:48
void SetStartingHashKey(Aws::String &&value)
Definition: HashKeyRange.h:58
void SetEndingHashKey(const Aws::String &value)
Definition: HashKeyRange.h:88
JSON (JavaScript Object Notation).