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

Output parameter of the GetRecords API. The existing child shard of the * current shard.

See Also:

AWS * API Reference

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

The shard ID of the existing child shard of the current shard.

*/ inline const Aws::String& GetShardId() const{ return m_shardId; } /** *

The shard ID of the existing child shard of the current shard.

*/ inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; } /** *

The shard ID of the existing child shard of the current shard.

*/ inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; } /** *

The shard ID of the existing child shard of the current shard.

*/ inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); } /** *

The shard ID of the existing child shard of the current shard.

*/ inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); } /** *

The shard ID of the existing child shard of the current shard.

*/ inline ChildShard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;} /** *

The shard ID of the existing child shard of the current shard.

*/ inline ChildShard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;} /** *

The shard ID of the existing child shard of the current shard.

*/ inline ChildShard& WithShardId(const char* value) { SetShardId(value); return *this;} /** *

The current shard that is the parent of the existing child shard.

*/ inline const Aws::Vector& GetParentShards() const{ return m_parentShards; } /** *

The current shard that is the parent of the existing child shard.

*/ inline bool ParentShardsHasBeenSet() const { return m_parentShardsHasBeenSet; } /** *

The current shard that is the parent of the existing child shard.

*/ inline void SetParentShards(const Aws::Vector& value) { m_parentShardsHasBeenSet = true; m_parentShards = value; } /** *

The current shard that is the parent of the existing child shard.

*/ inline void SetParentShards(Aws::Vector&& value) { m_parentShardsHasBeenSet = true; m_parentShards = std::move(value); } /** *

The current shard that is the parent of the existing child shard.

*/ inline ChildShard& WithParentShards(const Aws::Vector& value) { SetParentShards(value); return *this;} /** *

The current shard that is the parent of the existing child shard.

*/ inline ChildShard& WithParentShards(Aws::Vector&& value) { SetParentShards(std::move(value)); return *this;} /** *

The current shard that is the parent of the existing child shard.

*/ inline ChildShard& AddParentShards(const Aws::String& value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(value); return *this; } /** *

The current shard that is the parent of the existing child shard.

*/ inline ChildShard& AddParentShards(Aws::String&& value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(std::move(value)); return *this; } /** *

The current shard that is the parent of the existing child shard.

*/ inline ChildShard& AddParentShards(const char* value) { m_parentShardsHasBeenSet = true; m_parentShards.push_back(value); return *this; } inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; } inline bool HashKeyRangeHasBeenSet() const { return m_hashKeyRangeHasBeenSet; } inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; } inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = std::move(value); } inline ChildShard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;} inline ChildShard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(std::move(value)); return *this;} private: Aws::String m_shardId; bool m_shardIdHasBeenSet = false; Aws::Vector m_parentShards; bool m_parentShardsHasBeenSet = false; HashKeyRange m_hashKeyRange; bool m_hashKeyRangeHasBeenSet = false; }; } // namespace Model } // namespace Kinesis } // namespace Aws