Struct aws_sdk_iotsitewise::types::builders::PropertyTypeBuilder
source · #[non_exhaustive]pub struct PropertyTypeBuilder { /* private fields */ }Expand description
A builder for PropertyType.
Implementations§
source§impl PropertyTypeBuilder
impl PropertyTypeBuilder
sourcepub fn attribute(self, input: Attribute) -> Self
pub fn attribute(self, input: Attribute) -> Self
Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
sourcepub fn set_attribute(self, input: Option<Attribute>) -> Self
pub fn set_attribute(self, input: Option<Attribute>) -> Self
Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
sourcepub fn get_attribute(&self) -> &Option<Attribute>
pub fn get_attribute(&self) -> &Option<Attribute>
Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
sourcepub fn measurement(self, input: Measurement) -> Self
pub fn measurement(self, input: Measurement) -> Self
Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.
sourcepub fn set_measurement(self, input: Option<Measurement>) -> Self
pub fn set_measurement(self, input: Option<Measurement>) -> Self
Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.
sourcepub fn get_measurement(&self) -> &Option<Measurement>
pub fn get_measurement(&self) -> &Option<Measurement>
Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.
sourcepub fn transform(self, input: Transform) -> Self
pub fn transform(self, input: Transform) -> Self
Specifies an asset transform property. A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
sourcepub fn set_transform(self, input: Option<Transform>) -> Self
pub fn set_transform(self, input: Option<Transform>) -> Self
Specifies an asset transform property. A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
sourcepub fn get_transform(&self) -> &Option<Transform>
pub fn get_transform(&self) -> &Option<Transform>
Specifies an asset transform property. A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
sourcepub fn metric(self, input: Metric) -> Self
pub fn metric(self, input: Metric) -> Self
Specifies an asset metric property. A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
sourcepub fn set_metric(self, input: Option<Metric>) -> Self
pub fn set_metric(self, input: Option<Metric>) -> Self
Specifies an asset metric property. A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
sourcepub fn get_metric(&self) -> &Option<Metric>
pub fn get_metric(&self) -> &Option<Metric>
Specifies an asset metric property. A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
sourcepub fn build(self) -> PropertyType
pub fn build(self) -> PropertyType
Consumes the builder and constructs a PropertyType.
Trait Implementations§
source§impl Clone for PropertyTypeBuilder
impl Clone for PropertyTypeBuilder
source§fn clone(&self) -> PropertyTypeBuilder
fn clone(&self) -> PropertyTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PropertyTypeBuilder
impl Debug for PropertyTypeBuilder
source§impl Default for PropertyTypeBuilder
impl Default for PropertyTypeBuilder
source§fn default() -> PropertyTypeBuilder
fn default() -> PropertyTypeBuilder
source§impl PartialEq for PropertyTypeBuilder
impl PartialEq for PropertyTypeBuilder
source§fn eq(&self, other: &PropertyTypeBuilder) -> bool
fn eq(&self, other: &PropertyTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PropertyTypeBuilder
Auto Trait Implementations§
impl Freeze for PropertyTypeBuilder
impl RefUnwindSafe for PropertyTypeBuilder
impl Send for PropertyTypeBuilder
impl Sync for PropertyTypeBuilder
impl Unpin for PropertyTypeBuilder
impl UnwindSafe for PropertyTypeBuilder
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> 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