Struct aws_sdk_elasticsearch::types::builders::DurationBuilder
source · #[non_exhaustive]pub struct DurationBuilder { /* private fields */ }Expand description
A builder for Duration.
Implementations§
source§impl DurationBuilder
impl DurationBuilder
sourcepub fn value(self, input: i64) -> Self
pub fn value(self, input: i64) -> Self
Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.
sourcepub fn set_value(self, input: Option<i64>) -> Self
pub fn set_value(self, input: Option<i64>) -> Self
Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.
sourcepub fn unit(self, input: TimeUnit) -> Self
pub fn unit(self, input: TimeUnit) -> Self
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
sourcepub fn set_unit(self, input: Option<TimeUnit>) -> Self
pub fn set_unit(self, input: Option<TimeUnit>) -> Self
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
Trait Implementations§
source§impl Clone for DurationBuilder
impl Clone for DurationBuilder
source§fn clone(&self) -> DurationBuilder
fn clone(&self) -> DurationBuilder
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 Debug for DurationBuilder
impl Debug for DurationBuilder
source§impl Default for DurationBuilder
impl Default for DurationBuilder
source§fn default() -> DurationBuilder
fn default() -> DurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<DurationBuilder> for DurationBuilder
impl PartialEq<DurationBuilder> for DurationBuilder
source§fn eq(&self, other: &DurationBuilder) -> bool
fn eq(&self, other: &DurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.