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

Represents the input for SplitShard.

See Also:

* AWS * API Reference

*/ class AWS_KINESIS_API SplitShardRequest : public KinesisRequest { public: SplitShardRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SplitShard"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the stream for the shard split.

*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *

The name of the stream for the shard split.

*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *

The name of the stream for the shard split.

*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *

The name of the stream for the shard split.

*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *

The name of the stream for the shard split.

*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *

The name of the stream for the shard split.

*/ inline SplitShardRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *

The name of the stream for the shard split.

*/ inline SplitShardRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *

The name of the stream for the shard split.

*/ inline SplitShardRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;} /** *

The shard ID of the shard to split.

*/ inline const Aws::String& GetShardToSplit() const{ return m_shardToSplit; } /** *

The shard ID of the shard to split.

*/ inline bool ShardToSplitHasBeenSet() const { return m_shardToSplitHasBeenSet; } /** *

The shard ID of the shard to split.

*/ inline void SetShardToSplit(const Aws::String& value) { m_shardToSplitHasBeenSet = true; m_shardToSplit = value; } /** *

The shard ID of the shard to split.

*/ inline void SetShardToSplit(Aws::String&& value) { m_shardToSplitHasBeenSet = true; m_shardToSplit = std::move(value); } /** *

The shard ID of the shard to split.

*/ inline void SetShardToSplit(const char* value) { m_shardToSplitHasBeenSet = true; m_shardToSplit.assign(value); } /** *

The shard ID of the shard to split.

*/ inline SplitShardRequest& WithShardToSplit(const Aws::String& value) { SetShardToSplit(value); return *this;} /** *

The shard ID of the shard to split.

*/ inline SplitShardRequest& WithShardToSplit(Aws::String&& value) { SetShardToSplit(std::move(value)); return *this;} /** *

The shard ID of the shard to split.

*/ inline SplitShardRequest& WithShardToSplit(const char* value) { SetShardToSplit(value); return *this;} /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline const Aws::String& GetNewStartingHashKey() const{ return m_newStartingHashKey; } /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline bool NewStartingHashKeyHasBeenSet() const { return m_newStartingHashKeyHasBeenSet; } /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline void SetNewStartingHashKey(const Aws::String& value) { m_newStartingHashKeyHasBeenSet = true; m_newStartingHashKey = value; } /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline void SetNewStartingHashKey(Aws::String&& value) { m_newStartingHashKeyHasBeenSet = true; m_newStartingHashKey = std::move(value); } /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline void SetNewStartingHashKey(const char* value) { m_newStartingHashKeyHasBeenSet = true; m_newStartingHashKey.assign(value); } /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline SplitShardRequest& WithNewStartingHashKey(const Aws::String& value) { SetNewStartingHashKey(value); return *this;} /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline SplitShardRequest& WithNewStartingHashKey(Aws::String&& value) { SetNewStartingHashKey(std::move(value)); return *this;} /** *

A hash key value for the starting hash key of one of the child shards created * by the split. The hash key range for a given shard constitutes a set of ordered * contiguous positive integers. The value for NewStartingHashKey must * be in the range of hash keys being mapped into the shard. The * NewStartingHashKey hash key value and all higher hash key values in * hash key range are distributed to one of the child shards. All the lower hash * key values in the range are distributed to the other child shard.

*/ inline SplitShardRequest& WithNewStartingHashKey(const char* value) { SetNewStartingHashKey(value); return *this;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet; Aws::String m_shardToSplit; bool m_shardToSplitHasBeenSet; Aws::String m_newStartingHashKey; bool m_newStartingHashKeyHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws