@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KinesisParameters extends Object implements Serializable, Cloneable, StructuredPojo
This object enables you to specify a JSON path to extract from the event and use as the partition key for the Amazon
Kinesis 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.
Constructor and Description |
---|
KinesisParameters() |
Modifier and Type | Method and Description |
---|---|
KinesisParameters |
clone() |
boolean |
equals(Object obj) |
String |
getPartitionKeyPath()
The JSON path to be extracted from the event and used as the partition key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPartitionKeyPath(String partitionKeyPath)
The JSON path to be extracted from the event and used as the partition key.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
KinesisParameters |
withPartitionKeyPath(String partitionKeyPath)
The JSON path to be extracted from the event and used as the partition key.
|
public void setPartitionKeyPath(String 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.
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.public String getPartitionKeyPath()
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.
public KinesisParameters withPartitionKeyPath(String 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.
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.public String toString()
toString
in class Object
Object.toString()
public KinesisParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.