#[non_exhaustive]pub struct GetRecordsInputBuilder { /* private fields */ }
Expand description
A builder for GetRecordsInput
.
Implementations§
source§impl GetRecordsInputBuilder
impl GetRecordsInputBuilder
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.
This field is required.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 get_shard_iterator(&self) -> &Option<String>
pub fn get_shard_iterator(&self) -> &Option<String>
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 get_limit(&self) -> &Option<i32>
pub fn get_limit(&self) -> &Option<i32>
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 get_stream_arn(&self) -> &Option<String>
pub fn get_stream_arn(&self) -> &Option<String>
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
.
source§impl GetRecordsInputBuilder
impl GetRecordsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetRecordsOutput, SdkError<GetRecordsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetRecordsOutput, SdkError<GetRecordsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetRecordsInputBuilder
impl Clone for GetRecordsInputBuilder
source§fn clone(&self) -> GetRecordsInputBuilder
fn clone(&self) -> GetRecordsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRecordsInputBuilder
impl Debug for GetRecordsInputBuilder
source§impl Default for GetRecordsInputBuilder
impl Default for GetRecordsInputBuilder
source§fn default() -> GetRecordsInputBuilder
fn default() -> GetRecordsInputBuilder
source§impl PartialEq for GetRecordsInputBuilder
impl PartialEq for GetRecordsInputBuilder
source§fn eq(&self, other: &GetRecordsInputBuilder) -> bool
fn eq(&self, other: &GetRecordsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetRecordsInputBuilder
Auto Trait Implementations§
impl Freeze for GetRecordsInputBuilder
impl RefUnwindSafe for GetRecordsInputBuilder
impl Send for GetRecordsInputBuilder
impl Sync for GetRecordsInputBuilder
impl Unpin for GetRecordsInputBuilder
impl UnwindSafe for GetRecordsInputBuilder
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