#[non_exhaustive]pub struct ListShardsOutputBuilder { /* private fields */ }
Expand description
A builder for ListShardsOutput
.
Implementations§
source§impl ListShardsOutputBuilder
impl ListShardsOutputBuilder
sourcepub fn shards(self, input: Shard) -> Self
pub fn shards(self, input: Shard) -> Self
Appends an item to shards
.
To override the contents of this collection use set_shards
.
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
sourcepub fn set_shards(self, input: Option<Vec<Shard>>) -> Self
pub fn set_shards(self, input: Option<Vec<Shard>>) -> Self
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
sourcepub fn get_shards(&self) -> &Option<Vec<Shard>>
pub fn get_shards(&self) -> &Option<Vec<Shard>>
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
When the number of shards in the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of shards in the data stream, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next set of shards. For more information about the use of this pagination token when calling the ListShards
operation, see ListShardsInput$NextToken
.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListShards
, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards
, you get ExpiredNextTokenException
.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
When the number of shards in the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of shards in the data stream, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next set of shards. For more information about the use of this pagination token when calling the ListShards
operation, see ListShardsInput$NextToken
.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListShards
, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards
, you get ExpiredNextTokenException
.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
When the number of shards in the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of shards in the data stream, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next set of shards. For more information about the use of this pagination token when calling the ListShards
operation, see ListShardsInput$NextToken
.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListShards
, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards
, you get ExpiredNextTokenException
.
sourcepub fn build(self) -> ListShardsOutput
pub fn build(self) -> ListShardsOutput
Consumes the builder and constructs a ListShardsOutput
.
Trait Implementations§
source§impl Clone for ListShardsOutputBuilder
impl Clone for ListShardsOutputBuilder
source§fn clone(&self) -> ListShardsOutputBuilder
fn clone(&self) -> ListShardsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListShardsOutputBuilder
impl Debug for ListShardsOutputBuilder
source§impl Default for ListShardsOutputBuilder
impl Default for ListShardsOutputBuilder
source§fn default() -> ListShardsOutputBuilder
fn default() -> ListShardsOutputBuilder
source§impl PartialEq for ListShardsOutputBuilder
impl PartialEq for ListShardsOutputBuilder
source§fn eq(&self, other: &ListShardsOutputBuilder) -> bool
fn eq(&self, other: &ListShardsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListShardsOutputBuilder
Auto Trait Implementations§
impl Freeze for ListShardsOutputBuilder
impl RefUnwindSafe for ListShardsOutputBuilder
impl Send for ListShardsOutputBuilder
impl Sync for ListShardsOutputBuilder
impl Unpin for ListShardsOutputBuilder
impl UnwindSafe for ListShardsOutputBuilder
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