@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PipeTargetKinesisStreamParameters extends Object implements Serializable, Cloneable, StructuredPojo
The parameters for using a Kinesis stream as a target.
Constructor and Description |
---|
PipeTargetKinesisStreamParameters() |
Modifier and Type | Method and Description |
---|---|
PipeTargetKinesisStreamParameters |
clone() |
boolean |
equals(Object obj) |
String |
getPartitionKey()
Determines which shard in the stream the data record is assigned to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPartitionKey(String partitionKey)
Determines which shard in the stream the data record is assigned to.
|
String |
toString()
Returns a string representation of this object.
|
PipeTargetKinesisStreamParameters |
withPartitionKey(String partitionKey)
Determines which shard in the stream the data record is assigned to.
|
public void setPartitionKey(String partitionKey)
Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
partitionKey
- Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings
with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition
key as input to a hash function that maps the partition key and associated data to a specific shard.
Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map
associated data records to shards. As a result of this hashing mechanism, all data records with the same
partition key map to the same shard within the stream.public String getPartitionKey()
Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
public PipeTargetKinesisStreamParameters withPartitionKey(String partitionKey)
Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
partitionKey
- Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings
with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition
key as input to a hash function that maps the partition key and associated data to a specific shard.
Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map
associated data records to shards. As a result of this hashing mechanism, all data records with the same
partition key map to the same shard within the stream.public String toString()
toString
in class Object
Object.toString()
public PipeTargetKinesisStreamParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.