Struct aws_sdk_kinesis::input::put_records_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PutRecordsInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn records(self, input: PutRecordsRequestEntry) -> Self
pub fn records(self, input: PutRecordsRequestEntry) -> Self
Appends an item to records
.
To override the contents of this collection use set_records
.
The records associated with the request.
sourcepub fn set_records(self, input: Option<Vec<PutRecordsRequestEntry>>) -> Self
pub fn set_records(self, input: Option<Vec<PutRecordsRequestEntry>>) -> Self
The records associated with the request.
sourcepub fn stream_name(self, input: impl Into<String>) -> Self
pub fn stream_name(self, input: impl Into<String>) -> Self
The stream name associated with the request.
sourcepub fn set_stream_name(self, input: Option<String>) -> Self
pub fn set_stream_name(self, input: Option<String>) -> Self
The stream name associated with the request.
sourcepub fn stream_arn(self, input: impl Into<String>) -> Self
pub fn stream_arn(self, input: impl Into<String>) -> Self
The ARN of the stream.
sourcepub fn set_stream_arn(self, input: Option<String>) -> Self
pub fn set_stream_arn(self, input: Option<String>) -> Self
The ARN of the stream.
sourcepub fn build(self) -> Result<PutRecordsInput, BuildError>
pub fn build(self) -> Result<PutRecordsInput, BuildError>
Consumes the builder and constructs a PutRecordsInput
.