pub struct Builder { /* private fields */ }
Expand description
A builder for ConditionBasedCollectionScheme
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn expression(self, input: impl Into<String>) -> Self
pub fn expression(self, input: impl Into<String>) -> Self
The logical expression used to recognize what data to collect. For example, $variable.Vehicle.OutsideAirTemperature >= 105.0
.
sourcepub fn set_expression(self, input: Option<String>) -> Self
pub fn set_expression(self, input: Option<String>) -> Self
The logical expression used to recognize what data to collect. For example, $variable.Vehicle.OutsideAirTemperature >= 105.0
.
sourcepub fn minimum_trigger_interval_ms(self, input: i64) -> Self
pub fn minimum_trigger_interval_ms(self, input: i64) -> Self
The minimum duration of time between two triggering events to collect data, in milliseconds.
If a signal changes often, you might want to collect data at a slower rate.
sourcepub fn set_minimum_trigger_interval_ms(self, input: Option<i64>) -> Self
pub fn set_minimum_trigger_interval_ms(self, input: Option<i64>) -> Self
The minimum duration of time between two triggering events to collect data, in milliseconds.
If a signal changes often, you might want to collect data at a slower rate.
sourcepub fn trigger_mode(self, input: TriggerMode) -> Self
pub fn trigger_mode(self, input: TriggerMode) -> Self
Whether to collect data for all triggering events (ALWAYS
). Specify (RISING_EDGE
), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
sourcepub fn set_trigger_mode(self, input: Option<TriggerMode>) -> Self
pub fn set_trigger_mode(self, input: Option<TriggerMode>) -> Self
Whether to collect data for all triggering events (ALWAYS
). Specify (RISING_EDGE
), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
sourcepub fn condition_language_version(self, input: i32) -> Self
pub fn condition_language_version(self, input: i32) -> Self
Specifies the version of the conditional expression language.
sourcepub fn set_condition_language_version(self, input: Option<i32>) -> Self
pub fn set_condition_language_version(self, input: Option<i32>) -> Self
Specifies the version of the conditional expression language.
sourcepub fn build(self) -> ConditionBasedCollectionScheme
pub fn build(self) -> ConditionBasedCollectionScheme
Consumes the builder and constructs a ConditionBasedCollectionScheme
.