Struct aws_sdk_kinesis::output::get_records_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetRecordsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn records(self, input: Record) -> Self
pub fn records(self, input: Record) -> Self
Appends an item to records
.
To override the contents of this collection use set_records
.
The data records retrieved from the shard.
sourcepub fn set_records(self, input: Option<Vec<Record>>) -> Self
pub fn set_records(self, input: Option<Vec<Record>>) -> Self
The data records retrieved from the shard.
sourcepub fn next_shard_iterator(self, input: impl Into<String>) -> Self
pub fn next_shard_iterator(self, input: impl Into<String>) -> Self
The next position in the shard from which to start sequentially reading data records. If set to null
, the shard has been closed and the requested iterator does not return any more data.
sourcepub fn set_next_shard_iterator(self, input: Option<String>) -> Self
pub fn set_next_shard_iterator(self, input: Option<String>) -> Self
The next position in the shard from which to start sequentially reading data records. If set to null
, the shard has been closed and the requested iterator does not return any more data.
sourcepub fn millis_behind_latest(self, input: i64) -> Self
pub fn millis_behind_latest(self, input: i64) -> Self
The number of milliseconds the GetRecords
response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
sourcepub fn set_millis_behind_latest(self, input: Option<i64>) -> Self
pub fn set_millis_behind_latest(self, input: Option<i64>) -> Self
The number of milliseconds the GetRecords
response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
sourcepub fn child_shards(self, input: ChildShard) -> Self
pub fn child_shards(self, input: ChildShard) -> Self
Appends an item to child_shards
.
To override the contents of this collection use set_child_shards
.
The list of the current shard's child shards, returned in the GetRecords
API's response only when the end of the current shard is reached.
sourcepub fn set_child_shards(self, input: Option<Vec<ChildShard>>) -> Self
pub fn set_child_shards(self, input: Option<Vec<ChildShard>>) -> Self
The list of the current shard's child shards, returned in the GetRecords
API's response only when the end of the current shard is reached.
sourcepub fn build(self) -> GetRecordsOutput
pub fn build(self) -> GetRecordsOutput
Consumes the builder and constructs a GetRecordsOutput
.