#[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 ==.impl StructuralPartialEq for PipeTargetKinesisStreamParametersBuilder
Auto Trait Implementations§
impl Freeze for PipeTargetKinesisStreamParametersBuilder
impl RefUnwindSafe for PipeTargetKinesisStreamParametersBuilder
impl Send for PipeTargetKinesisStreamParametersBuilder
impl Sync for PipeTargetKinesisStreamParametersBuilder
impl Unpin for PipeTargetKinesisStreamParametersBuilder
impl UnwindSafe for PipeTargetKinesisStreamParametersBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more