Struct aws_sdk_iot::model::timestream_timestamp::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TimestreamTimestamp
.
Implementations§
source§impl Builder
impl Builder
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.
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 build(self) -> TimestreamTimestamp
pub fn build(self) -> TimestreamTimestamp
Consumes the builder and constructs a TimestreamTimestamp
.