#[non_exhaustive]pub struct PipeTargetKinesisStreamParametersBuilder { /* private fields */ }
Expand description
A builder for PipeTargetKinesisStreamParameters
.
Implementations§
source§impl PipeTargetKinesisStreamParametersBuilder
impl PipeTargetKinesisStreamParametersBuilder
sourcepub fn partition_key(self, input: impl Into<String>) -> Self
pub fn partition_key(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_partition_key(self, input: Option<String>) -> Self
pub fn set_partition_key(self, input: Option<String>) -> Self
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.
sourcepub fn get_partition_key(&self) -> &Option<String>
pub fn get_partition_key(&self) -> &Option<String>
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.
sourcepub fn build(self) -> Result<PipeTargetKinesisStreamParameters, BuildError>
pub fn build(self) -> Result<PipeTargetKinesisStreamParameters, BuildError>
Consumes the builder and constructs a PipeTargetKinesisStreamParameters
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PipeTargetKinesisStreamParametersBuilder
impl Clone for PipeTargetKinesisStreamParametersBuilder
source§fn clone(&self) -> PipeTargetKinesisStreamParametersBuilder
fn clone(&self) -> PipeTargetKinesisStreamParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PipeTargetKinesisStreamParametersBuilder
impl Default for PipeTargetKinesisStreamParametersBuilder
source§fn default() -> PipeTargetKinesisStreamParametersBuilder
fn default() -> PipeTargetKinesisStreamParametersBuilder
source§impl PartialEq for PipeTargetKinesisStreamParametersBuilder
impl PartialEq for PipeTargetKinesisStreamParametersBuilder
source§fn eq(&self, other: &PipeTargetKinesisStreamParametersBuilder) -> bool
fn eq(&self, other: &PipeTargetKinesisStreamParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.