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
source§fn eq(&self, other: &PropertyValueBuilder) -> bool
fn eq(&self, other: &PropertyValueBuilder) -> bool
self and other values to be equal, and is used
by ==.