/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Kinesis { namespace Model { /** *

The range of possible hash key values for the shard, which is a set of * ordered contiguous positive integers.

See Also:

AWS * API Reference

*/ class AWS_KINESIS_API HashKeyRange { public: HashKeyRange(); HashKeyRange(Aws::Utils::Json::JsonView jsonValue); HashKeyRange& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The starting hash key of the hash key range.

*/ inline const Aws::String& GetStartingHashKey() const{ return m_startingHashKey; } /** *

The starting hash key of the hash key range.

*/ inline bool StartingHashKeyHasBeenSet() const { return m_startingHashKeyHasBeenSet; } /** *

The starting hash key of the hash key range.

*/ inline void SetStartingHashKey(const Aws::String& value) { m_startingHashKeyHasBeenSet = true; m_startingHashKey = value; } /** *

The starting hash key of the hash key range.

*/ inline void SetStartingHashKey(Aws::String&& value) { m_startingHashKeyHasBeenSet = true; m_startingHashKey = std::move(value); } /** *

The starting hash key of the hash key range.

*/ inline void SetStartingHashKey(const char* value) { m_startingHashKeyHasBeenSet = true; m_startingHashKey.assign(value); } /** *

The starting hash key of the hash key range.

*/ inline HashKeyRange& WithStartingHashKey(const Aws::String& value) { SetStartingHashKey(value); return *this;} /** *

The starting hash key of the hash key range.

*/ inline HashKeyRange& WithStartingHashKey(Aws::String&& value) { SetStartingHashKey(std::move(value)); return *this;} /** *

The starting hash key of the hash key range.

*/ inline HashKeyRange& WithStartingHashKey(const char* value) { SetStartingHashKey(value); return *this;} /** *

The ending hash key of the hash key range.

*/ inline const Aws::String& GetEndingHashKey() const{ return m_endingHashKey; } /** *

The ending hash key of the hash key range.

*/ inline bool EndingHashKeyHasBeenSet() const { return m_endingHashKeyHasBeenSet; } /** *

The ending hash key of the hash key range.

*/ inline void SetEndingHashKey(const Aws::String& value) { m_endingHashKeyHasBeenSet = true; m_endingHashKey = value; } /** *

The ending hash key of the hash key range.

*/ inline void SetEndingHashKey(Aws::String&& value) { m_endingHashKeyHasBeenSet = true; m_endingHashKey = std::move(value); } /** *

The ending hash key of the hash key range.

*/ inline void SetEndingHashKey(const char* value) { m_endingHashKeyHasBeenSet = true; m_endingHashKey.assign(value); } /** *

The ending hash key of the hash key range.

*/ inline HashKeyRange& WithEndingHashKey(const Aws::String& value) { SetEndingHashKey(value); return *this;} /** *

The ending hash key of the hash key range.

*/ inline HashKeyRange& WithEndingHashKey(Aws::String&& value) { SetEndingHashKey(std::move(value)); return *this;} /** *

The ending hash key of the hash key range.

*/ inline HashKeyRange& WithEndingHashKey(const char* value) { SetEndingHashKey(value); return *this;} private: Aws::String m_startingHashKey; bool m_startingHashKeyHasBeenSet; Aws::String m_endingHashKey; bool m_endingHashKeyHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws