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 get_value(&self) -> &Option<i64>
pub fn get_value(&self) -> &Option<i64>
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.
sourcepub fn get_unit(&self) -> &Option<TimeUnit>
pub fn get_unit(&self) -> &Option<TimeUnit>
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 for DurationBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for DurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DurationBuilder
impl Send for DurationBuilder
impl Sync for DurationBuilder
impl Unpin for DurationBuilder
impl UnwindSafe for DurationBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.