/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This object enables you to specify a JSON path to extract from the event and
* use as the partition key for the Amazon Kinesis data stream, so that you can
* control the shard to which the event goes. If you do not include this parameter,
* the default is to use the eventId
as the partition
* key.See Also:
AWS
* API Reference
The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline const Aws::String& GetPartitionKeyPath() const{ return m_partitionKeyPath; } /** *The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline bool PartitionKeyPathHasBeenSet() const { return m_partitionKeyPathHasBeenSet; } /** *The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline void SetPartitionKeyPath(const Aws::String& value) { m_partitionKeyPathHasBeenSet = true; m_partitionKeyPath = value; } /** *The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline void SetPartitionKeyPath(Aws::String&& value) { m_partitionKeyPathHasBeenSet = true; m_partitionKeyPath = std::move(value); } /** *The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline void SetPartitionKeyPath(const char* value) { m_partitionKeyPathHasBeenSet = true; m_partitionKeyPath.assign(value); } /** *The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline KinesisParameters& WithPartitionKeyPath(const Aws::String& value) { SetPartitionKeyPath(value); return *this;} /** *The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline KinesisParameters& WithPartitionKeyPath(Aws::String&& value) { SetPartitionKeyPath(std::move(value)); return *this;} /** *The JSON path to be extracted from the event and used as the partition key. * For more information, see Amazon * Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer * Guide.
*/ inline KinesisParameters& WithPartitionKeyPath(const char* value) { SetPartitionKeyPath(value); return *this;} private: Aws::String m_partitionKeyPath; bool m_partitionKeyPathHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws