Struct aws_sdk_iottwinmaker::types::builders::PropertyValueBuilder
source · #[non_exhaustive]pub struct PropertyValueBuilder { /* private fields */ }Expand description
A builder for PropertyValue.
Implementations§
source§impl PropertyValueBuilder
impl PropertyValueBuilder
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
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
The timestamp of a value for a time series property.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
👎Deprecated: This field is deprecated and will throw an error in the future. Use time instead.
pub fn get_timestamp(&self) -> &Option<DateTime>
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.
This field is required.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 get_value(&self) -> &Option<DataValue>
pub fn get_value(&self) -> &Option<DataValue>
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 get_time(&self) -> &Option<String>
pub fn get_time(&self) -> &Option<String>
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§
source§impl Clone for PropertyValueBuilder
impl Clone for PropertyValueBuilder
source§fn clone(&self) -> PropertyValueBuilder
fn clone(&self) -> PropertyValueBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PropertyValueBuilder
impl Debug for PropertyValueBuilder
source§impl Default for PropertyValueBuilder
impl Default for PropertyValueBuilder
source§fn default() -> PropertyValueBuilder
fn default() -> PropertyValueBuilder
source§impl PartialEq for PropertyValueBuilder
impl PartialEq for PropertyValueBuilder
impl StructuralPartialEq for PropertyValueBuilder
Auto Trait Implementations§
impl Freeze for PropertyValueBuilder
impl RefUnwindSafe for PropertyValueBuilder
impl Send for PropertyValueBuilder
impl Sync for PropertyValueBuilder
impl Unpin for PropertyValueBuilder
impl UnwindSafe for PropertyValueBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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