Struct aws_sdk_iot::types::builders::LocationTimestampBuilder
source · #[non_exhaustive]pub struct LocationTimestampBuilder { /* private fields */ }
Expand description
A builder for LocationTimestamp
.
Implementations§
source§impl LocationTimestampBuilder
impl LocationTimestampBuilder
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<LocationTimestamp, BuildError>
pub fn build(self) -> Result<LocationTimestamp, BuildError>
Consumes the builder and constructs a LocationTimestamp
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LocationTimestampBuilder
impl Clone for LocationTimestampBuilder
source§fn clone(&self) -> LocationTimestampBuilder
fn clone(&self) -> LocationTimestampBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationTimestampBuilder
impl Debug for LocationTimestampBuilder
source§impl Default for LocationTimestampBuilder
impl Default for LocationTimestampBuilder
source§fn default() -> LocationTimestampBuilder
fn default() -> LocationTimestampBuilder
source§impl PartialEq for LocationTimestampBuilder
impl PartialEq for LocationTimestampBuilder
source§fn eq(&self, other: &LocationTimestampBuilder) -> bool
fn eq(&self, other: &LocationTimestampBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.