#[non_exhaustive]pub struct GetRecordsOutputBuilder { /* private fields */ }
Expand description
A builder for GetRecordsOutput
.
Implementations§
source§impl GetRecordsOutputBuilder
impl GetRecordsOutputBuilder
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 get_records(&self) -> &Option<Vec<Record>>
pub fn get_records(&self) -> &Option<Vec<Record>>
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 get_next_shard_iterator(&self) -> &Option<String>
pub fn get_next_shard_iterator(&self) -> &Option<String>
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 get_millis_behind_latest(&self) -> &Option<i64>
pub fn get_millis_behind_latest(&self) -> &Option<i64>
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 get_child_shards(&self) -> &Option<Vec<ChildShard>>
pub fn get_child_shards(&self) -> &Option<Vec<ChildShard>>
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) -> Result<GetRecordsOutput, BuildError>
pub fn build(self) -> Result<GetRecordsOutput, BuildError>
Consumes the builder and constructs a GetRecordsOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetRecordsOutputBuilder
impl Clone for GetRecordsOutputBuilder
source§fn clone(&self) -> GetRecordsOutputBuilder
fn clone(&self) -> GetRecordsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRecordsOutputBuilder
impl Debug for GetRecordsOutputBuilder
source§impl Default for GetRecordsOutputBuilder
impl Default for GetRecordsOutputBuilder
source§fn default() -> GetRecordsOutputBuilder
fn default() -> GetRecordsOutputBuilder
source§impl PartialEq for GetRecordsOutputBuilder
impl PartialEq for GetRecordsOutputBuilder
source§fn eq(&self, other: &GetRecordsOutputBuilder) -> bool
fn eq(&self, other: &GetRecordsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetRecordsOutputBuilder
Auto Trait Implementations§
impl Freeze for GetRecordsOutputBuilder
impl RefUnwindSafe for GetRecordsOutputBuilder
impl Send for GetRecordsOutputBuilder
impl Sync for GetRecordsOutputBuilder
impl Unpin for GetRecordsOutputBuilder
impl UnwindSafe for GetRecordsOutputBuilder
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> 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