#[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 ==
.