Struct aws_sdk_kinesis::input::get_records_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetRecordsInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn shard_iterator(self, input: impl Into<String>) -> Self
pub fn shard_iterator(self, input: impl Into<String>) -> Self
The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.
sourcepub fn set_shard_iterator(self, input: Option<String>) -> Self
pub fn set_shard_iterator(self, input: Option<String>) -> Self
The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.
sourcepub fn limit(self, input: i32) -> Self
pub fn limit(self, input: i32) -> Self
The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, GetRecords
throws InvalidArgumentException
. The default value is 10,000.
sourcepub fn set_limit(self, input: Option<i32>) -> Self
pub fn set_limit(self, input: Option<i32>) -> Self
The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, GetRecords
throws InvalidArgumentException
. The default value is 10,000.
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<GetRecordsInput, BuildError>
pub fn build(self) -> Result<GetRecordsInput, BuildError>
Consumes the builder and constructs a GetRecordsInput
.