#[non_exhaustive]pub struct ProvisionedThroughputBuilder { /* private fields */ }
Expand description
A builder for ProvisionedThroughput
.
Implementations§
source§impl ProvisionedThroughputBuilder
impl ProvisionedThroughputBuilder
sourcepub fn read_capacity_units(self, input: i64) -> Self
pub fn read_capacity_units(self, input: i64) -> Self
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
If read/write capacity mode is PAY_PER_REQUEST
the value is set to 0.
sourcepub fn set_read_capacity_units(self, input: Option<i64>) -> Self
pub fn set_read_capacity_units(self, input: Option<i64>) -> Self
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
If read/write capacity mode is PAY_PER_REQUEST
the value is set to 0.
sourcepub fn get_read_capacity_units(&self) -> &Option<i64>
pub fn get_read_capacity_units(&self) -> &Option<i64>
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
If read/write capacity mode is PAY_PER_REQUEST
the value is set to 0.
sourcepub fn write_capacity_units(self, input: i64) -> Self
pub fn write_capacity_units(self, input: i64) -> Self
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
If read/write capacity mode is PAY_PER_REQUEST
the value is set to 0.
sourcepub fn set_write_capacity_units(self, input: Option<i64>) -> Self
pub fn set_write_capacity_units(self, input: Option<i64>) -> Self
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
If read/write capacity mode is PAY_PER_REQUEST
the value is set to 0.
sourcepub fn get_write_capacity_units(&self) -> &Option<i64>
pub fn get_write_capacity_units(&self) -> &Option<i64>
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
If read/write capacity mode is PAY_PER_REQUEST
the value is set to 0.
sourcepub fn build(self) -> Result<ProvisionedThroughput, BuildError>
pub fn build(self) -> Result<ProvisionedThroughput, BuildError>
Consumes the builder and constructs a ProvisionedThroughput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ProvisionedThroughputBuilder
impl Clone for ProvisionedThroughputBuilder
source§fn clone(&self) -> ProvisionedThroughputBuilder
fn clone(&self) -> ProvisionedThroughputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProvisionedThroughputBuilder
impl Debug for ProvisionedThroughputBuilder
source§impl Default for ProvisionedThroughputBuilder
impl Default for ProvisionedThroughputBuilder
source§fn default() -> ProvisionedThroughputBuilder
fn default() -> ProvisionedThroughputBuilder
source§impl PartialEq for ProvisionedThroughputBuilder
impl PartialEq for ProvisionedThroughputBuilder
source§fn eq(&self, other: &ProvisionedThroughputBuilder) -> bool
fn eq(&self, other: &ProvisionedThroughputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProvisionedThroughputBuilder
Auto Trait Implementations§
impl Freeze for ProvisionedThroughputBuilder
impl RefUnwindSafe for ProvisionedThroughputBuilder
impl Send for ProvisionedThroughputBuilder
impl Sync for ProvisionedThroughputBuilder
impl Unpin for ProvisionedThroughputBuilder
impl UnwindSafe for ProvisionedThroughputBuilder
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