#[non_exhaustive]pub struct ItemCollectionMetricsBuilder { /* private fields */ }
Expand description
A builder for ItemCollectionMetrics
.
Implementations§
source§impl ItemCollectionMetricsBuilder
impl ItemCollectionMetricsBuilder
sourcepub fn item_collection_key(
self,
k: impl Into<String>,
v: AttributeValue,
) -> Self
pub fn item_collection_key( self, k: impl Into<String>, v: AttributeValue, ) -> Self
Adds a key-value pair to item_collection_key
.
To override the contents of this collection use set_item_collection_key
.
The partition key value of the item collection. This value is the same as the partition key value of the item.
sourcepub fn set_item_collection_key(
self,
input: Option<HashMap<String, AttributeValue>>,
) -> Self
pub fn set_item_collection_key( self, input: Option<HashMap<String, AttributeValue>>, ) -> Self
The partition key value of the item collection. This value is the same as the partition key value of the item.
sourcepub fn get_item_collection_key(
&self,
) -> &Option<HashMap<String, AttributeValue>>
pub fn get_item_collection_key( &self, ) -> &Option<HashMap<String, AttributeValue>>
The partition key value of the item collection. This value is the same as the partition key value of the item.
sourcepub fn size_estimate_range_gb(self, input: f64) -> Self
pub fn size_estimate_range_gb(self, input: f64) -> Self
Appends an item to size_estimate_range_gb
.
To override the contents of this collection use set_size_estimate_range_gb
.
An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
sourcepub fn set_size_estimate_range_gb(self, input: Option<Vec<f64>>) -> Self
pub fn set_size_estimate_range_gb(self, input: Option<Vec<f64>>) -> Self
An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
sourcepub fn get_size_estimate_range_gb(&self) -> &Option<Vec<f64>>
pub fn get_size_estimate_range_gb(&self) -> &Option<Vec<f64>>
An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
sourcepub fn build(self) -> ItemCollectionMetrics
pub fn build(self) -> ItemCollectionMetrics
Consumes the builder and constructs a ItemCollectionMetrics
.
Trait Implementations§
source§impl Clone for ItemCollectionMetricsBuilder
impl Clone for ItemCollectionMetricsBuilder
source§fn clone(&self) -> ItemCollectionMetricsBuilder
fn clone(&self) -> ItemCollectionMetricsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ItemCollectionMetricsBuilder
impl Debug for ItemCollectionMetricsBuilder
source§impl Default for ItemCollectionMetricsBuilder
impl Default for ItemCollectionMetricsBuilder
source§fn default() -> ItemCollectionMetricsBuilder
fn default() -> ItemCollectionMetricsBuilder
source§impl PartialEq for ItemCollectionMetricsBuilder
impl PartialEq for ItemCollectionMetricsBuilder
source§fn eq(&self, other: &ItemCollectionMetricsBuilder) -> bool
fn eq(&self, other: &ItemCollectionMetricsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ItemCollectionMetricsBuilder
Auto Trait Implementations§
impl Freeze for ItemCollectionMetricsBuilder
impl RefUnwindSafe for ItemCollectionMetricsBuilder
impl Send for ItemCollectionMetricsBuilder
impl Sync for ItemCollectionMetricsBuilder
impl Unpin for ItemCollectionMetricsBuilder
impl UnwindSafe for ItemCollectionMetricsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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