#[non_exhaustive]pub struct AutoScalingSettingsBuilder { /* private fields */ }
Expand description
A builder for AutoScalingSettings
.
Implementations§
source§impl AutoScalingSettingsBuilder
impl AutoScalingSettingsBuilder
sourcepub fn auto_scaling_disabled(self, input: bool) -> Self
pub fn auto_scaling_disabled(self, input: bool) -> Self
This optional parameter enables auto scaling for the table if set to false
.
sourcepub fn set_auto_scaling_disabled(self, input: Option<bool>) -> Self
pub fn set_auto_scaling_disabled(self, input: Option<bool>) -> Self
This optional parameter enables auto scaling for the table if set to false
.
sourcepub fn get_auto_scaling_disabled(&self) -> &Option<bool>
pub fn get_auto_scaling_disabled(&self) -> &Option<bool>
This optional parameter enables auto scaling for the table if set to false
.
sourcepub fn minimum_units(self, input: i64) -> Self
pub fn minimum_units(self, input: i64) -> Self
The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn set_minimum_units(self, input: Option<i64>) -> Self
pub fn set_minimum_units(self, input: Option<i64>) -> Self
The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn get_minimum_units(&self) -> &Option<i64>
pub fn get_minimum_units(&self) -> &Option<i64>
The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn maximum_units(self, input: i64) -> Self
pub fn maximum_units(self, input: i64) -> Self
Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn set_maximum_units(self, input: Option<i64>) -> Self
pub fn set_maximum_units(self, input: Option<i64>) -> Self
Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn get_maximum_units(&self) -> &Option<i64>
pub fn get_maximum_units(&self) -> &Option<i64>
Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn scaling_policy(self, input: AutoScalingPolicy) -> Self
pub fn scaling_policy(self, input: AutoScalingPolicy) -> Self
Amazon Keyspaces supports the target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
sourcepub fn set_scaling_policy(self, input: Option<AutoScalingPolicy>) -> Self
pub fn set_scaling_policy(self, input: Option<AutoScalingPolicy>) -> Self
Amazon Keyspaces supports the target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
sourcepub fn get_scaling_policy(&self) -> &Option<AutoScalingPolicy>
pub fn get_scaling_policy(&self) -> &Option<AutoScalingPolicy>
Amazon Keyspaces supports the target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
sourcepub fn build(self) -> AutoScalingSettings
pub fn build(self) -> AutoScalingSettings
Consumes the builder and constructs a AutoScalingSettings
.
Trait Implementations§
source§impl Clone for AutoScalingSettingsBuilder
impl Clone for AutoScalingSettingsBuilder
source§fn clone(&self) -> AutoScalingSettingsBuilder
fn clone(&self) -> AutoScalingSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoScalingSettingsBuilder
impl Debug for AutoScalingSettingsBuilder
source§impl Default for AutoScalingSettingsBuilder
impl Default for AutoScalingSettingsBuilder
source§fn default() -> AutoScalingSettingsBuilder
fn default() -> AutoScalingSettingsBuilder
source§impl PartialEq for AutoScalingSettingsBuilder
impl PartialEq for AutoScalingSettingsBuilder
source§fn eq(&self, other: &AutoScalingSettingsBuilder) -> bool
fn eq(&self, other: &AutoScalingSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoScalingSettingsBuilder
Auto Trait Implementations§
impl Freeze for AutoScalingSettingsBuilder
impl RefUnwindSafe for AutoScalingSettingsBuilder
impl Send for AutoScalingSettingsBuilder
impl Sync for AutoScalingSettingsBuilder
impl Unpin for AutoScalingSettingsBuilder
impl UnwindSafe for AutoScalingSettingsBuilder
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