Struct aws_sdk_iottwinmaker::model::property_value::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for PropertyValue.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn timestamp(self, input: DateTime) -> Self
👎Deprecated: This field is deprecated and will throw an error in the future. Use time instead.
pub fn timestamp(self, input: DateTime) -> Self
This field is deprecated and will throw an error in the future. Use time instead.
The timestamp of a value for a time series property.
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
👎Deprecated: This field is deprecated and will throw an error in the future. Use time instead.
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
This field is deprecated and will throw an error in the future. Use time instead.
The timestamp of a value for a time series property.
sourcepub fn value(self, input: DataValue) -> Self
pub fn value(self, input: DataValue) -> Self
An object that specifies a value for a time series property.
sourcepub fn set_value(self, input: Option<DataValue>) -> Self
pub fn set_value(self, input: Option<DataValue>) -> Self
An object that specifies a value for a time series property.
sourcepub fn time(self, input: impl Into<String>) -> Self
pub fn time(self, input: impl Into<String>) -> Self
ISO8601 DateTime of a value for a time series property.
The time for when the property value was recorded in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.SSSSSSSSS][Z/±HH:mm].
-
[YYYY]: year
-
[MM]: month
-
[DD]: day
-
[hh]: hour
-
[mm]: minute
-
[ss]: seconds
-
[.SSSSSSSSS]: additional precision, where precedence is maintained. For example: [.573123] is equal to 573123000 nanoseconds.
-
Z: default timezone UTC
-
± HH:mm: time zone offset in Hours and Minutes.
Required sub-fields: YYYY-MM-DDThh:mm:ss and [Z/±HH:mm]
sourcepub fn set_time(self, input: Option<String>) -> Self
pub fn set_time(self, input: Option<String>) -> Self
ISO8601 DateTime of a value for a time series property.
The time for when the property value was recorded in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.SSSSSSSSS][Z/±HH:mm].
-
[YYYY]: year
-
[MM]: month
-
[DD]: day
-
[hh]: hour
-
[mm]: minute
-
[ss]: seconds
-
[.SSSSSSSSS]: additional precision, where precedence is maintained. For example: [.573123] is equal to 573123000 nanoseconds.
-
Z: default timezone UTC
-
± HH:mm: time zone offset in Hours and Minutes.
Required sub-fields: YYYY-MM-DDThh:mm:ss and [Z/±HH:mm]
sourcepub fn build(self) -> PropertyValue
pub fn build(self) -> PropertyValue
Consumes the builder and constructs a PropertyValue.
Trait Implementations
sourceimpl PartialEq<Builder> for Builder
impl PartialEq<Builder> for Builder
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more