Struct aws_sdk_iotfleetwise::model::sensor::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Sensor
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn fully_qualified_name(self, input: impl Into<String>) -> Self
pub fn fully_qualified_name(self, input: impl Into<String>) -> Self
The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be Vehicle.Body.Engine.Battery
.
sourcepub fn set_fully_qualified_name(self, input: Option<String>) -> Self
pub fn set_fully_qualified_name(self, input: Option<String>) -> Self
The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be Vehicle.Body.Engine.Battery
.
sourcepub fn data_type(self, input: NodeDataType) -> Self
pub fn data_type(self, input: NodeDataType) -> Self
The specified data type of the sensor.
sourcepub fn set_data_type(self, input: Option<NodeDataType>) -> Self
pub fn set_data_type(self, input: Option<NodeDataType>) -> Self
The specified data type of the sensor.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of a sensor.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of a sensor.
sourcepub fn unit(self, input: impl Into<String>) -> Self
pub fn unit(self, input: impl Into<String>) -> Self
The scientific unit of measurement for data collected by the sensor.
sourcepub fn set_unit(self, input: Option<String>) -> Self
pub fn set_unit(self, input: Option<String>) -> Self
The scientific unit of measurement for data collected by the sensor.
sourcepub fn allowed_values(self, input: impl Into<String>) -> Self
pub fn allowed_values(self, input: impl Into<String>) -> Self
Appends an item to allowed_values
.
To override the contents of this collection use set_allowed_values
.
A list of possible values a sensor can take.
sourcepub fn set_allowed_values(self, input: Option<Vec<String>>) -> Self
pub fn set_allowed_values(self, input: Option<Vec<String>>) -> Self
A list of possible values a sensor can take.
sourcepub fn set_min(self, input: Option<f64>) -> Self
pub fn set_min(self, input: Option<f64>) -> Self
The specified possible minimum value of the sensor.