Struct aws_sdk_iot::types::builders::TimestreamTimestampBuilder
source · #[non_exhaustive]pub struct TimestreamTimestampBuilder { /* private fields */ }
Expand description
A builder for TimestreamTimestamp
.
Implementations§
source§impl TimestreamTimestampBuilder
impl TimestreamTimestampBuilder
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
An expression that returns a long epoch time value.
This field is required.sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
An expression that returns a long epoch time value.
sourcepub fn unit(self, input: impl Into<String>) -> Self
pub fn unit(self, input: impl Into<String>) -> Self
The precision of the timestamp value that results from the expression described in value
.
Valid values: SECONDS
| MILLISECONDS
| MICROSECONDS
| NANOSECONDS
. The default is MILLISECONDS
.
sourcepub fn set_unit(self, input: Option<String>) -> Self
pub fn set_unit(self, input: Option<String>) -> Self
The precision of the timestamp value that results from the expression described in value
.
Valid values: SECONDS
| MILLISECONDS
| MICROSECONDS
| NANOSECONDS
. The default is MILLISECONDS
.
sourcepub fn get_unit(&self) -> &Option<String>
pub fn get_unit(&self) -> &Option<String>
The precision of the timestamp value that results from the expression described in value
.
Valid values: SECONDS
| MILLISECONDS
| MICROSECONDS
| NANOSECONDS
. The default is MILLISECONDS
.
sourcepub fn build(self) -> Result<TimestreamTimestamp, BuildError>
pub fn build(self) -> Result<TimestreamTimestamp, BuildError>
Consumes the builder and constructs a TimestreamTimestamp
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TimestreamTimestampBuilder
impl Clone for TimestreamTimestampBuilder
source§fn clone(&self) -> TimestreamTimestampBuilder
fn clone(&self) -> TimestreamTimestampBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimestreamTimestampBuilder
impl Debug for TimestreamTimestampBuilder
source§impl Default for TimestreamTimestampBuilder
impl Default for TimestreamTimestampBuilder
source§fn default() -> TimestreamTimestampBuilder
fn default() -> TimestreamTimestampBuilder
impl StructuralPartialEq for TimestreamTimestampBuilder
Auto Trait Implementations§
impl Freeze for TimestreamTimestampBuilder
impl RefUnwindSafe for TimestreamTimestampBuilder
impl Send for TimestreamTimestampBuilder
impl Sync for TimestreamTimestampBuilder
impl Unpin for TimestreamTimestampBuilder
impl UnwindSafe for TimestreamTimestampBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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