/** * 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 { /** *

A uniquely identified group of data records in a Kinesis data * stream.

See Also:

AWS API * Reference

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

The unique identifier of the shard within the stream.

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

The unique identifier of the shard within the stream.

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

The unique identifier of the shard within the stream.

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

The unique identifier of the shard within the stream.

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

The unique identifier of the shard within the stream.

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

The unique identifier of the shard within the stream.

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

The unique identifier of the shard within the stream.

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

The unique identifier of the shard within the stream.

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

The shard ID of the shard's parent.

*/ inline const Aws::String& GetParentShardId() const{ return m_parentShardId; } /** *

The shard ID of the shard's parent.

*/ inline bool ParentShardIdHasBeenSet() const { return m_parentShardIdHasBeenSet; } /** *

The shard ID of the shard's parent.

*/ inline void SetParentShardId(const Aws::String& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = value; } /** *

The shard ID of the shard's parent.

*/ inline void SetParentShardId(Aws::String&& value) { m_parentShardIdHasBeenSet = true; m_parentShardId = std::move(value); } /** *

The shard ID of the shard's parent.

*/ inline void SetParentShardId(const char* value) { m_parentShardIdHasBeenSet = true; m_parentShardId.assign(value); } /** *

The shard ID of the shard's parent.

*/ inline Shard& WithParentShardId(const Aws::String& value) { SetParentShardId(value); return *this;} /** *

The shard ID of the shard's parent.

*/ inline Shard& WithParentShardId(Aws::String&& value) { SetParentShardId(std::move(value)); return *this;} /** *

The shard ID of the shard's parent.

*/ inline Shard& WithParentShardId(const char* value) { SetParentShardId(value); return *this;} /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline const Aws::String& GetAdjacentParentShardId() const{ return m_adjacentParentShardId; } /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline bool AdjacentParentShardIdHasBeenSet() const { return m_adjacentParentShardIdHasBeenSet; } /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline void SetAdjacentParentShardId(const Aws::String& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = value; } /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline void SetAdjacentParentShardId(Aws::String&& value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId = std::move(value); } /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline void SetAdjacentParentShardId(const char* value) { m_adjacentParentShardIdHasBeenSet = true; m_adjacentParentShardId.assign(value); } /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline Shard& WithAdjacentParentShardId(const Aws::String& value) { SetAdjacentParentShardId(value); return *this;} /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline Shard& WithAdjacentParentShardId(Aws::String&& value) { SetAdjacentParentShardId(std::move(value)); return *this;} /** *

The shard ID of the shard adjacent to the shard's parent.

*/ inline Shard& WithAdjacentParentShardId(const char* value) { SetAdjacentParentShardId(value); return *this;} /** *

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

*/ inline const HashKeyRange& GetHashKeyRange() const{ return m_hashKeyRange; } /** *

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

*/ inline bool HashKeyRangeHasBeenSet() const { return m_hashKeyRangeHasBeenSet; } /** *

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

*/ inline void SetHashKeyRange(const HashKeyRange& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = value; } /** *

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

*/ inline void SetHashKeyRange(HashKeyRange&& value) { m_hashKeyRangeHasBeenSet = true; m_hashKeyRange = std::move(value); } /** *

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

*/ inline Shard& WithHashKeyRange(const HashKeyRange& value) { SetHashKeyRange(value); return *this;} /** *

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

*/ inline Shard& WithHashKeyRange(HashKeyRange&& value) { SetHashKeyRange(std::move(value)); return *this;} /** *

The range of possible sequence numbers for the shard.

*/ inline const SequenceNumberRange& GetSequenceNumberRange() const{ return m_sequenceNumberRange; } /** *

The range of possible sequence numbers for the shard.

*/ inline bool SequenceNumberRangeHasBeenSet() const { return m_sequenceNumberRangeHasBeenSet; } /** *

The range of possible sequence numbers for the shard.

*/ inline void SetSequenceNumberRange(const SequenceNumberRange& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = value; } /** *

The range of possible sequence numbers for the shard.

*/ inline void SetSequenceNumberRange(SequenceNumberRange&& value) { m_sequenceNumberRangeHasBeenSet = true; m_sequenceNumberRange = std::move(value); } /** *

The range of possible sequence numbers for the shard.

*/ inline Shard& WithSequenceNumberRange(const SequenceNumberRange& value) { SetSequenceNumberRange(value); return *this;} /** *

The range of possible sequence numbers for the shard.

*/ inline Shard& WithSequenceNumberRange(SequenceNumberRange&& value) { SetSequenceNumberRange(std::move(value)); return *this;} private: Aws::String m_shardId; bool m_shardIdHasBeenSet; Aws::String m_parentShardId; bool m_parentShardIdHasBeenSet; Aws::String m_adjacentParentShardId; bool m_adjacentParentShardIdHasBeenSet; HashKeyRange m_hashKeyRange; bool m_hashKeyRangeHasBeenSet; SequenceNumberRange m_sequenceNumberRange; bool m_sequenceNumberRangeHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws