#[non_exhaustive]pub struct TimeToLiveSpecificationBuilder { /* private fields */ }
Expand description
A builder for TimeToLiveSpecification
.
Implementations§
source§impl TimeToLiveSpecificationBuilder
impl TimeToLiveSpecificationBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The name of the TTL attribute used to store the expiration time for items in the table.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of the TTL attribute used to store the expiration time for items in the table.
sourcepub fn build(self) -> TimeToLiveSpecification
pub fn build(self) -> TimeToLiveSpecification
Consumes the builder and constructs a TimeToLiveSpecification
.
Trait Implementations§
source§impl Clone for TimeToLiveSpecificationBuilder
impl Clone for TimeToLiveSpecificationBuilder
source§fn clone(&self) -> TimeToLiveSpecificationBuilder
fn clone(&self) -> TimeToLiveSpecificationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for TimeToLiveSpecificationBuilder
impl Default for TimeToLiveSpecificationBuilder
source§fn default() -> TimeToLiveSpecificationBuilder
fn default() -> TimeToLiveSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<TimeToLiveSpecificationBuilder> for TimeToLiveSpecificationBuilder
impl PartialEq<TimeToLiveSpecificationBuilder> for TimeToLiveSpecificationBuilder
source§fn eq(&self, other: &TimeToLiveSpecificationBuilder) -> bool
fn eq(&self, other: &TimeToLiveSpecificationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.